diff options
Diffstat (limited to 'dev-java/commons-betwixt/commons-betwixt-0.6-r1.ebuild')
-rw-r--r-- | dev-java/commons-betwixt/commons-betwixt-0.6-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-java/commons-betwixt/commons-betwixt-0.6-r1.ebuild b/dev-java/commons-betwixt/commons-betwixt-0.6-r1.ebuild new file mode 100644 index 000000000000..8e0cd4773b26 --- /dev/null +++ b/dev-java/commons-betwixt/commons-betwixt-0.6-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-betwixt/commons-betwixt-0.6-r1.ebuild,v 1.1 2005/05/14 16:10:36 luckyduck Exp $ + +inherit java-pkg eutils + +DESCRIPTION="Introspective Bean to XML mapper" +HOMEPAGE="http://jakarta.apache.org/commons/betwixt/" +SRC_URI="mirror://apache/jakarta/commons/betwixt/source/${PN}-${PV}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86 ~ppc" +IUSE="doc jikes source" + +DEPEND=">=dev-java/commons-logging-1.0.2 + =dev-java/commons-beanutils-1.7* + >=dev-java/commons-digester-1.6 + >=dev-java/ant-core-1.4 + jikes? ( >=dev-java/jikes-1.21 ) + source? ( app-arch/zip )" +RDEPEND=">=virtual/jdk-1.3" + +S="${WORKDIR}/${P}-src/" + +src_unpack() { + unpack ${A} && cd $S + echo "commons-logging.jar=`java-config -p commons-logging`" \ + > build.properties + echo "commons-beanutils.jar=`java-config -p commons-beanutils-1.7`" \ + >> build.properties + echo "commons-digester.jar=`java-config -p commons-digester`" \ + >> build.properties + + epatch ${FILESDIR}/${P}-noget.patch +} + +src_compile() { + local antflags="jar" + use doc && antflags="${antflags} javadoc" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + ant ${antflags} || die "compile failed" +} + +src_install() { + java-pkg_dojar target/${PN}.jar + + if use doc; then + dodoc RELEASE-NOTES.txt + java-pkg_dohtml PROPOSAL.html STATUS.html userguide.html + java-pkg_dohtml -r dist/docs/ + fi + use source && java-pkg_dosrc src/java/* +} |