diff options
Diffstat (limited to 'app-i18n/kcc/kcc-1.0.ebuild')
-rw-r--r-- | app-i18n/kcc/kcc-1.0.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app-i18n/kcc/kcc-1.0.ebuild b/app-i18n/kcc/kcc-1.0.ebuild new file mode 100644 index 000000000000..bcb220713949 --- /dev/null +++ b/app-i18n/kcc/kcc-1.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A Kanji code converter" +HOMEPAGE="http://www2s.biglobe.ne.jp/~Nori/ruby/" +SRC_URI="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${PN}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-gcc3-gentoo.diff" + epatch "${FILESDIR}/${PN}-exit.diff" + sed -i "s:\(-o kcc\):\$(LDFLAGS) \1:" Makefile +} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin kcc + dodoc README + cp -f kcc.jman kcc.1 || die + doman -i18n=ja kcc.1 +} |