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-vcs/rcsi/rcsi-0.5.ebuild,v 1.1 2011/02/10 21:36:09 ulm Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/rcsi/rcsi-0.5.ebuild,v 1.1 2011/02/10 21:36:09 ulm Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI=4 |
5 |
inherit toolchain-funcs |
6 |
inherit toolchain-funcs |
6 |
|
7 |
|
7 |
DESCRIPTION="A program to give information about RCS files" |
8 |
DESCRIPTION="A program to give information about RCS files" |
Lines 18-35
Link Here
|
18 |
|
19 |
|
19 |
S=${WORKDIR}/${PN} |
20 |
S=${WORKDIR}/${PN} |
20 |
|
21 |
|
21 |
src_unpack() { |
|
|
22 |
unpack ${A} |
23 |
CC="$(tc-getCC)" |
24 |
sed -e "s^gcc -Wall -O2 -Xlinker -s^${CC} -Wall ${CFLAGS}^g" -i "${S}"/Makefile |
25 |
} |
26 |
|
27 |
src_compile() { |
22 |
src_compile() { |
28 |
emake -j1 rcsi || die |
23 |
$(tc-getCC) $CFLAGS $LDFLAGS rcsi.c -o rcsi || die "Compile failed" |
29 |
} |
24 |
} |
30 |
|
25 |
|
31 |
src_install() { |
26 |
src_install() { |
32 |
dobin rcsi || die |
27 |
dobin rcsi |
33 |
doman rcsi.1 |
28 |
doman rcsi.1 |
34 |
dodoc README |
29 |
dodoc README |
35 |
dohtml README.html example{1,2}.png |
30 |
dohtml README.html example{1,2}.png |