|
|
LICENSE="Apache-1.1" | LICENSE="Apache-1.1" |
SLOT="0" | SLOT="0" |
KEYWORDS="x86 ~amd64 ~ppc ~sparc" | KEYWORDS="x86 ~amd64 ~ppc ~sparc" |
IUSE="doc" |
IUSE="doc jai jimi" |
DEPEND=">=virtual/jdk-1.4 | DEPEND=">=virtual/jdk-1.4 |
>=dev-java/ant-1.5.4 | >=dev-java/ant-1.5.4 |
!dev-java/fop-bin" |
!dev-java/fop-bin |
|
jai? ( dev-java/jai-bin ) |
|
jimi? ( dev-java/jimi )" |
| |
S=${WORKDIR}/${P/_/} | S=${WORKDIR}/${P/_/} |
| |
src_unpack() { | src_unpack() { |
unpack ${A} | unpack ${A} |
|
if use jai; then |
|
# Find where portage have installed jai |
|
JAIPATH=$(java-config -l | grep jai | cut -d\( -f2 | cut -d\) -f1) |
|
JAIPATH=${JAIPATH/package.env/lib/} |
|
|
|
# Unfortunately it seems like the build process of fop require us to have these files present in the build-three |
|
ln -s ${JAIPATH}/jai_codec.jar ${S}/lib/ |
|
ln -s ${JAIPATH}/jai_core.jar ${S}/lib/ |
|
fi |
|
if use jimi; then |
|
# Find where portage have installed jai |
|
JIMIPATH=$(java-config -l | grep jimi | cut -d\( -f2 | cut -d\) -f1) |
|
JIMIPATH=${JIMIPATH/package.env/lib/} |
|
|
|
# Unfortunately it seems like the build process of fop require us to have these files present in the build-three |
|
ln -s ${JIMIPATH}/jimi.jar ${S}/lib/ |
|
fi |
} | } |
| |
src_compile() { | src_compile() { |