blob: 660ecc759cfb11152504ce14426e8e20c399fe14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/kcc/kcc-1.0.ebuild,v 1.16 2012/07/15 04:27:20 hattya Exp $
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="x86"
IUSE=""
S="${WORKDIR}/${PN}"
src_prepare() {
epatch "${FILESDIR}/${PN}-gcc3-gentoo.diff"
sed -i "s:\(-o kcc\):\$(LDFLAGS) \1:"
}
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
}
|