Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/sl/sl-3.03.ebuild,v 1.15 2005/07/07 11:51:26 agriffis Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/sl/sl-3.03.ebuild,v 1.15 2005/07/07 11:51:26 agriffis Exp $ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils toolchain-funcs flag-o-matic |
6 |
|
6 |
|
7 |
SL_PATCH="sl5-1.patch" |
7 |
SL_PATCH="sl5-1.patch" |
8 |
|
8 |
|
Lines 15-41
Link Here
|
15 |
LICENSE="freedist" |
15 |
LICENSE="freedist" |
16 |
SLOT="0" |
16 |
SLOT="0" |
17 |
KEYWORDS="x86 alpha sparc ppc64 ppc ppc-macos ~amd64 hppa" |
17 |
KEYWORDS="x86 alpha sparc ppc64 ppc ppc-macos ~amd64 hppa" |
18 |
IUSE="cjk" |
18 |
IUSE="linguas_ja debug" |
19 |
|
19 |
|
20 |
DEPEND="virtual/libc |
20 |
DEPEND="sys-libs/ncurses |
21 |
sys-libs/ncurses |
21 |
linguas_ja? ( app-i18n/nkf )" |
22 |
!ppc-macos? ( cjk? ( app-i18n/nkf ) )" |
22 |
RDEPEND="sys-libs/ncurses" |
23 |
RDEPEND="virtual/libc |
|
|
24 |
sys-libs/ncurses" |
25 |
|
23 |
|
26 |
S=${WORKDIR}/${PN} |
24 |
S=${WORKDIR}/${PN} |
27 |
|
25 |
|
28 |
src_unpack() { |
26 |
src_unpack() { |
29 |
unpack ${PN}.tar |
27 |
unpack ${PN}.tar |
30 |
cd ${S} |
28 |
cd "${S}" |
31 |
epatch ${DISTDIR}/${SL_PATCH} |
29 |
epatch "${DISTDIR}/${SL_PATCH}" |
32 |
epatch ${FILESDIR}/${P}-gentoo.diff |
30 |
epatch "${FILESDIR}/${P}-gentoo.diff" |
33 |
unpack ${PN}.en.1.gz |
31 |
unpack ${PN}.en.1.gz |
34 |
} |
32 |
} |
35 |
|
33 |
|
|
|
34 |
doecho() { |
35 |
echo "$@" |
36 |
"$@" |
37 |
} |
38 |
|
36 |
src_compile() { |
39 |
src_compile() { |
37 |
emake CFLAGS="${CFLAGS}" LDFLAGS="-lncurses" || die |
40 |
use debug && append-flags -DDEBUG |
38 |
if use cjk; then |
41 |
|
|
|
42 |
doecho "$(tc-getCC)" ${CFLAGS} ${LDFLAGS} sl.c -lncurses -o sl |
43 |
|
44 |
if use linguas_ja; then |
39 |
nkf -e sl.1 > sl.ja.1 |
45 |
nkf -e sl.1 > sl.ja.1 |
40 |
fi |
46 |
fi |
41 |
} |
47 |
} |
Lines 44-50
Link Here
|
44 |
dobin sl || die |
50 |
dobin sl || die |
45 |
newman sl.en.1 sl.1 |
51 |
newman sl.en.1 sl.1 |
46 |
dodoc README* sl.txt |
52 |
dodoc README* sl.txt |
47 |
if use cjk ; then |
53 |
if use linguas_ja ; then |
48 |
insinto /usr/share/man/ja/man1 |
54 |
insinto /usr/share/man/ja/man1 |
49 |
newins sl.ja.1 sl.1 |
55 |
newins sl.ja.1 sl.1 |
50 |
fi |
56 |
fi |