canfep-1.0.ebuild 914 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="Canna Japanese kana-kanji frontend processor on console"
  6. HOMEPAGE="http://www.geocities.co.jp/SiliconValley-Bay/7584/canfep/"
  7. SRC_URI="http://www.geocities.co.jp/SiliconValley-Bay/7584/canfep/${P}.tar.gz
  8. unicode? ( http://hp.vector.co.jp/authors/VA020411/patches/canfep_utf8.diff )"
  9. LICENSE="canfep"
  10. SLOT="0"
  11. KEYWORDS="-alpha ~amd64 ppc ~sparc x86"
  12. IUSE="unicode"
  13. DEPEND="app-i18n/canna
  14. sys-libs/ncurses"
  15. RDEPEND="app-i18n/canna"
  16. src_prepare() {
  17. use unicode && epatch "${DISTDIR}"/canfep_utf8.diff
  18. sed -i "s:\$(CFLAGS):\$(CFLAGS) \$(LDFLAGS):" Makefile || die
  19. }
  20. src_compile() {
  21. emake \
  22. CC="$(tc-getCXX)" \
  23. CFLAGS="${CFLAGS}" \
  24. LDFLAGS="${LDFLAGS}" \
  25. LIBS="-lcanna -lncurses"
  26. }
  27. src_install() {
  28. dobin canfep
  29. dodoc 00changes 00readme
  30. }