diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-07-04 22:04:03 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-07-04 22:04:03 +0000 |
commit | acd2bc8b69dbb81205247012a75d731eb2d78b28 (patch) | |
tree | e49c3ebf434406616da04b3e3d5283c55e93b8b1 /dev-java/stax/stax-1.2.0.ebuild | |
parent | version bump (diff) | |
download | historical-acd2bc8b69dbb81205247012a75d731eb2d78b28.tar.gz historical-acd2bc8b69dbb81205247012a75d731eb2d78b28.tar.bz2 historical-acd2bc8b69dbb81205247012a75d731eb2d78b28.zip |
Initial addition for bug #92763. Initial ebuild done by kiorky <kiorky@cryptelium.net> and then improved by me.
Package-Manager: portage-2.1.3_rc6
Diffstat (limited to 'dev-java/stax/stax-1.2.0.ebuild')
-rw-r--r-- | dev-java/stax/stax-1.2.0.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-java/stax/stax-1.2.0.ebuild b/dev-java/stax/stax-1.2.0.ebuild new file mode 100644 index 000000000000..47f2adf5ae12 --- /dev/null +++ b/dev-java/stax/stax-1.2.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/stax/stax-1.2.0.ebuild,v 1.1 2007/07/04 22:04:03 betelgeuse Exp $ + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A standard XML processing API that allows you to stream XML data from and to your application." +HOMEPAGE="http://stax.codehaus.org/" +SRC_URI="http://dist.codehaus.org/${PN}/distributions/${PN}-src-${PV}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.4" + +# test? ( dev-java/ant-junit dev-java/ant-trax dev-java/xerces ) +DEPEND=" + >=virtual/jdk-1.4 + app-arch/unzip" + +S="${WORKDIR}" + +src_unpack(){ + unpack ${A} + cd "${S}" || die "cd failed" + epatch "${FILESDIR}/1.2.0-build-version.patch" +} + +EANT_BUILD_TARGET="ri_bin_dist" + +# A lot of these fail and that seems expected based on upstream +# svn logs +RESTRICT="test" + +src_test() { + mkdir lib + java-ant_rewrite-classpath build.xml + ANT_TASKS="ant-junit ant-trax" \ + EANT_GENTOO_CLASSPATH="junit,xerces-2" eant test +} + +src_install() { + java-pkg_newjar ${S}/build/stax-api-${PV}.jar stax-api.jar + java-pkg_newjar ${S}/build/stax-${PV}-dev.jar stax-dev.jar + + if use doc; then + java-pkg_dojavadoc "${S}/build/javadoc" + fi + use source && java-pkg_dosrc src/* +} |