Lines 8-27
Link Here
|
8 |
|
8 |
|
9 |
SLOT="0" |
9 |
SLOT="0" |
10 |
LICENSE="GPL-2" |
10 |
LICENSE="GPL-2" |
11 |
KEYWORDS="~x86 ~sparc ~ppc ~amd64" |
11 |
KEYWORDS="~x86 ~sparc ~ppc ~amd64 ~hppa" |
12 |
IUSE="" |
12 |
IUSE="diet" |
13 |
DEPEND=">=dev-libs/dietlibc-0.23 |
13 |
DEPEND="diet? (>=dev-libs/dietlibc-0.23) |
14 |
>=sys-apps/sed-4" |
14 |
>=sys-apps/sed-4" |
15 |
|
15 |
|
16 |
RDEPEND=">=dev-libs/dietlibc-0.23" |
16 |
RDEPEND="diet? (>=dev-libs/dietlibc-0.23)" |
17 |
|
17 |
|
18 |
src_unpack() { |
18 |
src_unpack() { |
19 |
unpack ${A} ; cd ${S} |
19 |
unpack ${A} ; cd ${S} |
20 |
sed -i -e "s:^CFLAGS.*:CFLAGS=-I. ${CFLAGS}:" \ |
20 |
sed -i -e "s:^CFLAGS.*:CFLAGS=-I. ${CFLAGS}:" \ |
21 |
-e "s:^DIET.*:DIET=/usr/bin/diet -Os:" \ |
|
|
22 |
-e "s:^prefix.*:prefix=/usr:" \ |
21 |
-e "s:^prefix.*:prefix=/usr:" \ |
23 |
-e "s:^INCLUDEDIR.*:INCLUDEDIR=\${prefix}/include/libowfat:" \ |
22 |
-e "s:^INCLUDEDIR.*:INCLUDEDIR=\${prefix}/include/libowfat:" \ |
24 |
GNUmakefile |
23 |
GNUmakefile |
|
|
24 |
if use diet; then |
25 |
einfo "Enabling dietlibc build" |
26 |
sed -i -e "s:^DIET=.*:DIET=/usr/bin/diet -Os:" GNUmakefile |
27 |
else |
28 |
einfo "Disabling dietlibc build" |
29 |
sed -i -e "s:^DIET=.*:DIET=:" GNUmakefile |
30 |
fi |
25 |
} |
31 |
} |
26 |
|
32 |
|
27 |
src_compile() { |
33 |
src_compile() { |