xcalendar-4.0-r1.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils multilib
  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. src_prepare() {
  24. use motif && epatch "${FILESDIR}"/${P}-motif-gentoo.diff
  25. epatch "${FILESDIR}"/${P}-implicits.patch
  26. sed -e "s:%%XCALENDAR_LIBDIR%%:/usr/$(get_libdir)/xcalendar:" \
  27. -e "s:/usr/local/X11R5/lib/X11/:/usr/$(get_libdir)/:" \
  28. -i XCalendar.sed || die
  29. }
  30. src_compile() {
  31. xmkmf -a
  32. emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}"
  33. }
  34. src_install() {
  35. dobin xcalendar
  36. newman xcalendar.man xcalendar.1
  37. insinto /usr/share/X11/app-defaults
  38. newins XCalendar.sed XCalendar
  39. insinto /usr/$(get_libdir)/xcalendar
  40. doins *.xbm *.hlp
  41. dodoc README
  42. }