diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/xpp2 | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/xpp2')
-rw-r--r-- | dev-java/xpp2/Manifest | 1 | ||||
-rw-r--r-- | dev-java/xpp2/metadata.xml | 8 | ||||
-rw-r--r-- | dev-java/xpp2/xpp2-2.1.10-r1.ebuild | 58 | ||||
-rw-r--r-- | dev-java/xpp2/xpp2-2.1.10-r2.ebuild | 66 |
4 files changed, 133 insertions, 0 deletions
diff --git a/dev-java/xpp2/Manifest b/dev-java/xpp2/Manifest new file mode 100644 index 000000000000..934182db530d --- /dev/null +++ b/dev-java/xpp2/Manifest @@ -0,0 +1 @@ +DIST PullParser2.1.10.tgz 2310288 SHA256 ad82569b809e29c19b8223feaa12923f97bb4bbc942ff985857f9d853db489cf SHA512 87a091e415a31cde27ca1193735743b60f516feb336a9a3577792636e54ab8d671a22e74eb8aa41268f6251c688c68fe92a28f735ec78b96b919909f80c59590 WHIRLPOOL 983aa4f0b062b46d756857c60d3a3e4dab6c7914571d1c23cfb61be230cead82c89c3c41576390c3f6d1d7066059411cf06e2c1eaf6bd4d265033da90403ce0e diff --git a/dev-java/xpp2/metadata.xml b/dev-java/xpp2/metadata.xml new file mode 100644 index 000000000000..03397f28c094 --- /dev/null +++ b/dev-java/xpp2/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<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-r1.ebuild b/dev-java/xpp2/xpp2-2.1.10-r1.ebuild new file mode 100644 index 000000000000..2c06826af2f4 --- /dev/null +++ b/dev-java/xpp2/xpp2-2.1.10-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=1 +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 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" +S="${WORKDIR}/${MY_P}" + +CDEPEND="dev-java/xerces:2" +DEPEND=">=virtual/jdk-1.3 + ${CDEPEND}" +RDEPEND=">=virtual/jre-1.3 + ${CDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + rm -v lib/*/*.jar build/*/*.jar || die + find build/ -name '*.jar' -o -name '*.class' -delete + + # add xercesImpl.jar to relevant javac classpaths + java-ant_xml-rewrite -f build.xml -e javac -a classpath -i 7 -c -v \ + '${build_intf}:lib/xercesImpl.jar' -i 7 + java-ant_xml-rewrite -f build.xml -e javac -a classpath -i 8 -c -v \ + '${build_intf}:${build_impl_tag}:${build_x2impl_pp}:${build_impl_node}:${build_impl_format}:lib/xercesImpl.jar' + + cd lib + java-pkg_jar-from xerces-2 +} + +# override check for xerces-2 presence +EANT_EXTRA_ARGS="-Dx2_present=true" +EANT_BUILD_TARGET="compile" +EANT_DOC_TARGET="api" + +src_install() { + java-pkg_newjar build/lib/${MY_PN}-${PV}.jar ${MY_PN}.jar + java-pkg_newjar build/lib/${MY_PN}-intf-${PV}.jar ${MY_PN}-intf.jar + java-pkg_newjar build/lib/${MY_PN}-standard-${PV}.jar ${MY_PN}-standard.jar + java-pkg_newjar build/lib/${MY_PN}-x2-${PV}.jar ${MY_PN}-x2.jar + + dohtml README.html || die + use doc && java-pkg_dojavadoc doc/api + use source && java-pkg_dosrc src/java/* +} 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..289eef10c699 --- /dev/null +++ b/dev-java/xpp2/xpp2-2.1.10-r2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~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 +} |