Lines 17-40
Link Here
|
17 |
nls? ( >=sys-devel/gettext-0.11.4 ) |
17 |
nls? ( >=sys-devel/gettext-0.11.4 ) |
18 |
~dev-java/antlr-2.7.7 |
18 |
~dev-java/antlr-2.7.7 |
19 |
>=dev-libs/libxslt-1.0.7" |
19 |
>=dev-libs/libxslt-1.0.7" |
20 |
|
20 |
|
21 |
pkg_setup() { |
21 |
pkg_setup() { |
22 |
if built_with_use dev-java/antlr nocxx; then |
22 |
if ! built_with_use dev-java/antlr cxx; then |
23 |
eerror "dev-java/antlr can't be compiled with nocxx." |
23 |
eerror "dev-java/antlr must be compiled with cxx." |
24 |
eerror "recompile it without that use flag set." |
24 |
eerror "recompile it with that use flag set." |
25 |
die "Need dev-java/antlr compiled without the nocxx use flag set" |
25 |
die "Need dev-java/antlr compiled with the cxx use flag set" |
26 |
fi |
26 |
fi |
27 |
} |
27 |
} |
28 |
|
28 |
|
29 |
src_compile() { |
29 |
src_compile() { |
30 |
# we'll use our eqmake instead of bundled script to process qmake files |
30 |
# we'll use our eqmake instead of bundled script to process qmake files |
31 |
sed -i -e 's:^. ./runqmake.sh$:echo:' configure \ |
31 |
sed -i -e 's:^. ./runqmake.sh$:echo:' configure \ |
32 |
|| die "sed configure failed" |
32 |
|| die "sed configure failed" |
|
|
33 |
|
33 |
# prevent install script from automatically stripping binaries - let portage do that |
34 |
# prevent install script from automatically stripping binaries - let portage do that |
34 |
sed -i -e 's/s) stripcmd="$stripprog"$/s)/' install.sh \ |
35 |
sed -i -e 's/ -m 0755 -s/ -m 0755/' $(find . -name '*.pro') \ |
35 |
|| die "sed install.sh failed" |
36 |
|| die "sed for strip failed" |
|
|
37 |
|
36 |
# documentation will be installed manually using dodoc & doman |
38 |
# documentation will be installed manually using dodoc & doman |
37 |
rm -f doc/doc.pro |
39 |
rm -f doc/doc.pro |
38 |
sed -i -e '/^SUBDIRS = po src doc/s/ doc//' fwbuilder2.pro \ |
40 |
sed -i -e '/^SUBDIRS = po src doc/s/ doc//' fwbuilder2.pro \ |
39 |
|| die "sed fwbuilder2.pro failed" |
41 |
|| die "sed fwbuilder2.pro failed" |
40 |
|
42 |
|