freewnn-1.1.1_alpha22.ebuild 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils
  5. MY_P="FreeWnn-${PV/_alpha/-a0}"
  6. DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System"
  7. HOMEPAGE="http://freewnn.sourceforge.jp/
  8. http://www.freewnn.org/"
  9. SRC_URI="mirror://sourceforge.jp/freewnn/59257/${MY_P}.tar.bz2"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
  13. IUSE="X ipv6"
  14. DEPEND="X? ( x11-libs/libX11 x11-libs/libXmu x11-libs/libXt )"
  15. RDEPEND="${DEPEND}"
  16. S="${WORKDIR}/${MY_P}"
  17. src_prepare() {
  18. #Change WNNOWNER to root so we don't need to add wnn user
  19. # and disable stripping of binary files
  20. sed -i -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
  21. -e "s/@INSTPGMFLAGS@//" makerule.mk.in \
  22. -e "s/@LN_S@/ln -sf/" || die
  23. #bug #318593
  24. epatch "${FILESDIR}"/${P}-parallel-build.patch #517916
  25. # 542534
  26. sed -i -e "s/egrep -v/egrep -av/" kWnn/kdic/Makefile.in \
  27. cWnn/tdic/Makefile.in cWnn/cdic/Makefile.in \
  28. Wnn/pubdicplus/Makefile.in || die
  29. }
  30. src_configure() {
  31. econf \
  32. --disable-cWnn \
  33. --disable-kWnn \
  34. --without-termcap \
  35. $(use_with X x) \
  36. $(use_with ipv6)
  37. }
  38. src_install() {
  39. # install executables, libs ,dictionaries
  40. emake DESTDIR="${ED}" install || die
  41. # install man pages
  42. emake DESTDIR="${ED}" install.man || die
  43. # install docs
  44. dodoc ChangeLog* CONTRIBUTORS
  45. # install rc script
  46. newinitd "${FILESDIR}"/freewnn.initd freewnn
  47. }