diff options
Diffstat (limited to 'dev-java/poi/poi-2.5-r2.ebuild')
-rw-r--r-- | dev-java/poi/poi-2.5-r2.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-java/poi/poi-2.5-r2.ebuild b/dev-java/poi/poi-2.5-r2.ebuild new file mode 100644 index 000000000000..3451eb88c8b1 --- /dev/null +++ b/dev-java/poi/poi-2.5-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/poi/poi-2.5-r2.ebuild,v 1.1 2005/05/14 16:09:34 luckyduck Exp $ + +inherit java-pkg eutils + +DESCRIPTION="Java API To Access Microsoft Format Files" +HOMEPAGE="http://jakarta.apache.org/poi/" +SRC_URI="mirror://apache/jakarta/poi/release/src/${PN}-src-${PV}-final-20040302.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="x86 ppc amd64" +IUSE="jikes" + +DEPEND=">=virtual/jdk-1.2 + >=dev-java/ant-1.4 + jikes? ( dev-java/jikes )" +RDEPEND=">=virtual/jre-1.2 + >=dev-java/commons-logging-1.0 + >=dev-java/log4j-1.2.8 + =dev-java/commons-beanutils-1.6* + >=dev-java/commons-collections-2.1 + >=dev-java/commons-lang-1.0 + =dev-java/xerces-2.6*" +S=${WORKDIR} + +src_unpack() { + unpack ${A} + cd ${S} + rm -f src/contrib/lib/*.jar lib/*.jar + + epatch ${FILESDIR}/${P}-jikes-fix.patch + sed -e 's:<target name="init" depends="check-jars,fetch-jars">:<target name="init" depends="check-jars">:' -i build.xml + + cd ${S}/lib + java-pkg_jar-from log4j log4j.jar log4j-1.2.8.jar + java-pkg_jar-from commons-logging commons-logging.jar commons-logging-1.0.1.jar + cd ${S}/src/contrib/lib + java-pkg_jar-from commons-beanutils-1.6 commons-beanutils.jar commons-beanutils-1.6.jar + java-pkg_jar-from commons-collections commons-collections.jar commons-collections-2.1.jar + java-pkg_jar-from commons-lang commons-lang.jar commons-lang-1.0-b1.jar + java-pkg_jar-from xerces-2 xmlParserAPIs.jar xmlParserAPIs-2.2.1.jar + java-pkg_jar-from xerces-2 xercesImpl.jar xercesImpl-2.4.0.jar +} + +src_compile() { + local antflags="jar" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + ant ${antflags} || die "compile problem" +} + +src_install() { + cd build/dist/ + mv poi-scratchpad-${PV}* ${PN}-scratchpad.jar + mv poi-contrib-${PV}* ${PN}-contrib.jar + mv poi-${PV}* ${PN}.jar + java-pkg_dojar *.jar +} |