--- fop-0.20.5.ebuild 2004-09-19 17:37:00.000000000 +0200 +++ /root/fop-0.20.5.ebuild 2004-10-12 22:14:10.000000000 +0200 @@ -11,15 +11,34 @@ LICENSE="Apache-1.1" SLOT="0" KEYWORDS="x86 ~amd64 ~ppc ~sparc" -IUSE="doc" +IUSE="doc jai jimi" DEPEND=">=virtual/jdk-1.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/_/} src_unpack() { 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() {