summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-02-11 15:27:56 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-02-11 15:27:56 +0000
commitf39639943658ffdd0e7fc544c3d3e2c3cd0b46a0 (patch)
tree2dad6152f6aa6a952c1b13ce70f199b585682a28 /dev-java/wstx
parentInstall a jaxp.jar symlink to jaxp-ri.jar. (diff)
downloadgentoo-2-f39639943658ffdd0e7fc544c3d3e2c3cd0b46a0.tar.gz
gentoo-2-f39639943658ffdd0e7fc544c3d3e2c3cd0b46a0.tar.bz2
gentoo-2-f39639943658ffdd0e7fc544c3d3e2c3cd0b46a0.zip
Moved from java-experimental to main tree. Fixes bug #257831. Thanks to Mike Weissman <mike@weisso.com> for the ebuild.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28-gentoo-r1 i686)
Diffstat (limited to 'dev-java/wstx')
-rw-r--r--dev-java/wstx/ChangeLog11
-rw-r--r--dev-java/wstx/metadata.xml14
-rw-r--r--dev-java/wstx/wstx-3.2.8.ebuild61
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-java/wstx/ChangeLog b/dev-java/wstx/ChangeLog
new file mode 100644
index 000000000000..f03b1d4cc8a4
--- /dev/null
+++ b/dev-java/wstx/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/wstx
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/wstx/ChangeLog,v 1.1 2009/02/11 15:27:56 betelgeuse Exp $
+
+*wstx-3.2.8 (11 Feb 2009)
+
+ 11 Feb 2009; Petteri Räty <betelgeuse@gentoo.org> +metadata.xml,
+ +wstx-3.2.8.ebuild:
+ Moved from java-experimental to main tree. Fixes bug #257831. Thanks to
+ Mike Weissman <mike@weisso.com> for the ebuild.
+
diff --git a/dev-java/wstx/metadata.xml b/dev-java/wstx/metadata.xml
new file mode 100644
index 000000000000..95bae8fdf7bd
--- /dev/null
+++ b/dev-java/wstx/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <maintainer>
+ <email>mike@weisso.com</email>
+ <name>Mike Weissman</name>
+ </maintainer>
+ <longdescription lang="en">
+ Woodstox is a high-performance validating namespace-aware StAX-compliant
+ (JSR-173) Open Source XML-processor written in Java.
+ </longdescription>
+</pkgmetadata>
+
diff --git a/dev-java/wstx/wstx-3.2.8.ebuild b/dev-java/wstx/wstx-3.2.8.ebuild
new file mode 100644
index 000000000000..6bc4d06334b9
--- /dev/null
+++ b/dev-java/wstx/wstx-3.2.8.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/wstx/wstx-3.2.8.ebuild,v 1.1 2009/02/11 15:27:56 betelgeuse Exp $
+
+EAPI=1
+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="~x86"
+IUSE=""
+
+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"
+
+src_unpack(){
+ unpack ${A}
+ rm -v "${S}"/lib/msv/*.jar || die
+ rm -v "${S}"/lib/*.jar || die
+}
+
+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
+}