kcc-1.0.ebuild 719 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="A Kanji code converter"
  6. HOMEPAGE="http://www2s.biglobe.ne.jp/~Nori/ruby/"
  7. SRC_URI="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${PN}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 x86"
  11. IUSE=""
  12. S="${WORKDIR}/${PN}"
  13. src_prepare() {
  14. epatch "${FILESDIR}/${PN}-gcc3-gentoo.diff"
  15. epatch "${FILESDIR}/${PN}-exit.diff"
  16. sed -i "s:\(-o kcc\):\$(LDFLAGS) \1:" Makefile
  17. }
  18. src_compile() {
  19. emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
  20. }
  21. src_install() {
  22. dobin kcc
  23. dodoc README
  24. cp -f kcc.jman kcc.1 || die
  25. doman -i18n=ja kcc.1
  26. }