zhcon-0.2.6-r2.ebuild 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="3"
  4. WANT_AUTOMAKE="1.9"
  5. inherit autotools eutils
  6. MY_P="${P/6/5}"
  7. DESCRIPTION="A Fast CJK (Chinese/Japanese/Korean) Console Environment"
  8. HOMEPAGE="http://zhcon.sourceforge.net/"
  9. SRC_URI="mirror://sourceforge/zhcon/${MY_P}.tar.gz
  10. mirror://sourceforge/zhcon/zhcon-0.2.5-to-0.2.6.diff.gz"
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE="ggi gpm"
  15. DEPEND="ggi? ( media-libs/libggi[X] )
  16. gpm? ( sys-libs/gpm )"
  17. RDEPEND="${DEPEND}"
  18. S="${WORKDIR}/${MY_P}"
  19. src_prepare() {
  20. epatch "${DISTDIR}"/zhcon-0.2.5-to-0.2.6.diff.gz
  21. epatch "${FILESDIR}"/${P}.sysconfdir.patch
  22. epatch "${FILESDIR}"/${P}.configure.in.patch
  23. epatch "${FILESDIR}"/${P}+gcc-4.3.patch
  24. epatch "${FILESDIR}"/${P}+linux-headers-2.6.26.patch
  25. epatch "${FILESDIR}"/${P}-curses.patch
  26. epatch "${FILESDIR}"/${P}-amd64.patch
  27. epatch "${FILESDIR}"/${P}-automagic-fix.patch
  28. epatch "${FILESDIR}"/${P}.make-fix.patch
  29. for f in $(grep -lir HAVE_GGI_LIB *); do
  30. sed -i -e "s/HAVE_GGI_LIB/HAVE_LIBGGI/" "${f}" || die "sed failed"
  31. done
  32. eautoreconf
  33. }
  34. src_configure() {
  35. econf $(use_with ggi) \
  36. $(use_with gpm) || die
  37. }
  38. src_install() {
  39. emake DESTDIR="${D}" install || die
  40. dodoc AUTHORS ChangeLog README NEWS TODO THANKS || die
  41. dodoc README.BSD README.gpm README.utf8 || die
  42. }