summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/wstx')
-rw-r--r--dev-java/wstx/ChangeLog8
-rw-r--r--dev-java/wstx/files/wstx-3.2.9-build.xml.patch13
-rw-r--r--dev-java/wstx/wstx-3.2.9.ebuild64
3 files changed, 84 insertions, 1 deletions
diff --git a/dev-java/wstx/ChangeLog b/dev-java/wstx/ChangeLog
index 846a13468462..9b50b27bdc01 100644
--- a/dev-java/wstx/ChangeLog
+++ b/dev-java/wstx/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/wstx
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/wstx/ChangeLog,v 1.6 2013/03/17 15:26:12 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/wstx/ChangeLog,v 1.7 2013/07/09 15:34:03 tomwij Exp $
+
+*wstx-3.2.9 (09 Jul 2013)
+
+ 09 Jul 2013; Tom Wijsman <TomWij@gentoo.org>
+ +files/wstx-3.2.9-build.xml.patch, +wstx-3.2.9.ebuild:
+ Version bump to 3.2.9.
17 Mar 2013; Markos Chandras <hwoarang@gentoo.org> metadata.xml:
Add proxy-maintainers to metadata.xml
diff --git a/dev-java/wstx/files/wstx-3.2.9-build.xml.patch b/dev-java/wstx/files/wstx-3.2.9-build.xml.patch
new file mode 100644
index 000000000000..58f689039cf6
--- /dev/null
+++ b/dev-java/wstx/files/wstx-3.2.9-build.xml.patch
@@ -0,0 +1,13 @@
+--- a/build.xml
++++ b/build.xml
+@@ -104,10 +104,6 @@
+ <include name="org/codehaus/stax2/**/*.class" />
+ </patternset>
+
+- <!-- 02-Mar-2009, TSa: Let's try automating Maven builds
+- -->
+- <import file="build-maven-deploy.xml" />
+-
+ <!-- And then something nifty, for creating minimal jars! -->
+
+ <classfileset id="j2meInputMinimal" dir="${BuildClassesDir}">
diff --git a/dev-java/wstx/wstx-3.2.9.ebuild b/dev-java/wstx/wstx-3.2.9.ebuild
new file mode 100644
index 000000000000..1071e3c4a2ea
--- /dev/null
+++ b/dev-java/wstx/wstx-3.2.9.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/wstx/wstx-3.2.9.ebuild,v 1.1 2013/07/09 15:34:03 tomwij Exp $
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source test"
+WANT_ANT_TASKS="ant-nodeps"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Woodstox is a high-performance validating namespace-aware XML-processor"
+HOMEPAGE="http://woodstox.codehaus.org/"
+SRC_URI="http://woodstox.codehaus.org/${PV}/${PN}-src-${PV}.zip"
+
+LICENSE="Apache-2.0"
+SLOT="3.2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+COMMON_DEP="
+ dev-java/emma:0
+ dev-java/sax:0
+ java-virtuals/jaxp-virtual
+ dev-java/stax:0
+ dev-java/msv:0
+ dev-java/xsdlib:0
+ dev-java/relaxng-datatype:0
+ dev-java/junit:0"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+EANT_BUILD_TARGET="jars"
+EANT_DOC_TARGET="javadoc"
+
+# Don't need to make a folder
+S="${WORKDIR}"
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+java_prepare() {
+ rm -v lib/msv/*.jar || die
+ rm -v lib/*.jar || die
+
+ # Get rid of a missing include.
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+}
+
+EANT_GENTOO_CLASSPATH="emma,sax,jaxp-virtual,msv,xsdlib,relaxng-datatype,junit"
+
+src_test(){
+ ANT_TASKS="ant-junit ant-nodeps ant-trax" eant test || die "Tests failed"
+}
+
+src_install() {
+ java-pkg_newjar build/"${PN}"-api-"${PV}".jar "${PN}"-api.jar
+ java-pkg_newjar build/"${PN}"-asl-"${PV}".jar "${PN}".jar
+ use doc && java-pkg_dojavadoc build/javadoc
+ use source && java-pkg_dosrc src
+}