Lines 2-7
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/dev-util/sel/sel-0.08.4.ebuild,v 1.11 2012/10/29 07:16:32 pinkbyte Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/sel/sel-0.08.4.ebuild,v 1.11 2012/10/29 07:16:32 pinkbyte Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI=4 |
5 |
inherit toolchain-funcs |
6 |
inherit toolchain-funcs |
6 |
|
7 |
|
7 |
DESCRIPTION="A filemanager for shell scripts" |
8 |
DESCRIPTION="A filemanager for shell scripts" |
Lines 16-45
Link Here
|
16 |
RDEPEND=">=sys-libs/ncurses-5.1" |
17 |
RDEPEND=">=sys-libs/ncurses-5.1" |
17 |
DEPEND="${RDEPEND}" |
18 |
DEPEND="${RDEPEND}" |
18 |
|
19 |
|
19 |
src_unpack () { |
|
|
20 |
unpack ${A} |
21 |
cd "${S}" |
22 |
|
23 |
sed -i -e "s:/usr/local/share/sel/help\.txt:/usr/share/sel/help\.txt:" \ |
24 |
sel.c || die 'sed failed' |
25 |
} |
26 |
|
27 |
doecho() { |
28 |
echo "$@" |
29 |
"$@" |
30 |
} |
31 |
|
32 |
src_compile() { |
20 |
src_compile() { |
33 |
doecho $(tc-getCC) -o ${PN} \ |
21 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDLIBS="-lncurses" |
34 |
${CFLAGS} ${LDFLAGS} \ |
|
|
35 |
${PN}.c -lncurses \ |
36 |
|| die "build failed" |
37 |
} |
22 |
} |
38 |
|
23 |
|
39 |
src_install () { |
24 |
src_install () { |
40 |
dobin sel || die |
25 |
dobin sel |
41 |
doman sel.1 || die |
26 |
doman sel.1 |
42 |
insinto /usr/share/sel |
27 |
insinto /usr/share/sel |
43 |
doins help.txt || die |
28 |
doins help.txt |
44 |
dodoc README.GER || die |
29 |
dodoc README.GER |
45 |
} |
30 |
} |