freewnn-1.1.1_alpha21-r1.ebuild 1.3 KB

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