xcalendar-4.0-r2.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit toolchain-funcs
  5. DESCRIPTION="A simple interactive calendar program with a notebook capability"
  6. HOMEPAGE="http://www.freebsd.org/"
  7. SRC_URI="ftp://daemon.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/${P}+i18n.tar.gz"
  8. LICENSE="HPND"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 ppc ppc64 x86 ~x86-fbsd"
  11. IUSE="motif"
  12. RDEPEND="x11-libs/libX11
  13. x11-libs/libXmu
  14. x11-libs/libXt
  15. x11-libs/libXaw
  16. x11-libs/libXext"
  17. DEPEND="${RDEPEND}
  18. x11-misc/imake
  19. x11-proto/xproto
  20. x11-misc/gccmakedep
  21. motif? ( >=x11-libs/motif-2.3:0 )"
  22. S=${WORKDIR}/${PN}
  23. PATCHES=( "${FILESDIR}"/${P}-implicits.patch )
  24. src_prepare() {
  25. use motif && PATCHES+=( "${FILESDIR}"/${P}-motif-gentoo.diff )
  26. default
  27. sed -e "s:%%XCALENDAR_LIBDIR%%:/usr/$(get_libdir)/xcalendar:" \
  28. -e "s:/usr/local/X11R5/lib/X11/:/usr/$(get_libdir)/:" \
  29. -i XCalendar.sed || die
  30. }
  31. src_compile() {
  32. xmkmf -a || die
  33. emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}"
  34. }
  35. src_install() {
  36. dobin xcalendar
  37. newman xcalendar.man xcalendar.1
  38. insinto /usr/share/X11/app-defaults
  39. newins XCalendar.sed XCalendar
  40. insinto /usr/$(get_libdir)/xcalendar
  41. doins *.xbm *.hlp
  42. einstalldocs
  43. }