summaryrefslogtreecommitdiff
path: root/dev-java/xpp2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/xpp2
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/xpp2')
-rw-r--r--dev-java/xpp2/Manifest3
-rw-r--r--dev-java/xpp2/metadata.xml11
-rw-r--r--dev-java/xpp2/xpp2-2.1.10-r2.ebuild65
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-java/xpp2/Manifest b/dev-java/xpp2/Manifest
new file mode 100644
index 000000000000..62eb2ae0b361
--- /dev/null
+++ b/dev-java/xpp2/Manifest
@@ -0,0 +1,3 @@
+DIST PullParser2.1.10.tgz 2310288 BLAKE2B 0c1f3aedf88aae18e7cab40b04055fa7a20f6bfe05973e6cbe3b459b408dfa193834d22a6d77b3d1ba3802e115d89f73e3f423efc7571efc8f09bb73625950d6 SHA512 87a091e415a31cde27ca1193735743b60f516feb336a9a3577792636e54ab8d671a22e74eb8aa41268f6251c688c68fe92a28f735ec78b96b919909f80c59590
+EBUILD xpp2-2.1.10-r2.ebuild 1718 BLAKE2B 8ea25c2ad23d66eb7ab261fe261a16eff8c6aba449b3fc23cdae9b74124b3956e90f00d570a8cd3f82d85311f74ddfdaad1608b3db26981f885080aef8568ff5 SHA512 2e65db2bf9cb673d9a920ff2f51560a0ef54b4648c70db28bb56f5f3e406d2ca81d8c9d46e9aad30f87efcbf4ba9e147b1cea00ba2c136a5c15fe926852c9006
+MISC metadata.xml 458 BLAKE2B 5a23e3b43da0a680538428c1cbd29dc6555459408a7d9520410a5da0f904cd9bfc1864e27b7f3aae2a94afca4c0f276c5cdaf09612a77759a64b7fb0c2f345ed SHA512 9004485c7ad032ec1f11aa89e7bc286f52d45f3886cca36912d12891f409d6d70cff063cf3790b7e05f4e280e1a953987dab155feecea461d5a3ff5cea0a430a
diff --git a/dev-java/xpp2/metadata.xml b/dev-java/xpp2/metadata.xml
new file mode 100644
index 000000000000..a901ec9b3fac
--- /dev/null
+++ b/dev-java/xpp2/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+<longdescription>
+Xml Pull Parser (in short XPP) is a streaming pull XML parser and should be used when there is a need to process quickly and efficiently all input elements (for example in SOAP processors)
+</longdescription>
+</pkgmetadata>
diff --git a/dev-java/xpp2/xpp2-2.1.10-r2.ebuild b/dev-java/xpp2/xpp2-2.1.10-r2.ebuild
new file mode 100644
index 000000000000..540d963e8527
--- /dev/null
+++ b/dev-java/xpp2/xpp2-2.1.10-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="PullParser"
+MY_P="${MY_PN}${PV}"
+
+DESCRIPTION="A streaming pull XML parser used to quickly process input elements"
+HOMEPAGE="http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html"
+SRC_URI="http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/${MY_PN}2/${MY_P}.tgz"
+
+LICENSE="Apache-1.1 IBM"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="test"
+
+# Some failures, partly because we haven't patched Xerces but probably
+# also because this software is ancient. :(
+RESTRICT="test"
+
+CDEPEND="dev-java/xerces:2"
+DEPEND=">=virtual/jdk-1.3
+ test? ( dev-java/junit:4 )
+ ${CDEPEND}"
+RDEPEND=">=virtual/jre-1.3
+ ${CDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+EANT_GENTOO_CLASSPATH="xerces-2"
+EANT_EXTRA_ARGS="-Dx2_present=true -Djunit.present=true"
+EANT_BUILD_TARGET="intf intf_jar impl x2impl"
+EANT_DOC_TARGET="api"
+EANT_TEST_TARGET="junit"
+
+java_prepare() {
+ rm -r build/ lib/ || die
+
+ # Our usual rewriting stomps over the existing classpath, which
+ # isn't helpful here.
+ sed -i -r \
+ -e 's/\bclasspath="/\0${gentoo.classpath}:/g' \
+ -e 's/\$\{java\.class\.path\}/${gentoo.classpath}/g' \
+ build.xml || die
+}
+
+src_install() {
+ local suffix
+
+ for suffix in "" -intf -standard -x2; do
+ java-pkg_newjar build/lib/${MY_PN}${suffix}-${PV}.jar ${MY_PN}${suffix}.jar
+ done
+
+ dodoc README.html
+ use doc && java-pkg_dojavadoc doc/api
+ use source && java-pkg_dosrc $(find src/java -name org -o -name javax)
+}
+
+src_test() {
+ java-pkg-2_src_test
+}