diff options
Diffstat (limited to 'dev-java/xpp2')
-rw-r--r-- | dev-java/xpp2/Manifest | 1 | ||||
-rw-r--r-- | dev-java/xpp2/xpp2-2.1.10-r4.ebuild | 82 |
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-java/xpp2/Manifest b/dev-java/xpp2/Manifest index 460c9ac86032..40312a5ce931 100644 --- a/dev-java/xpp2/Manifest +++ b/dev-java/xpp2/Manifest @@ -1,4 +1,5 @@ AUX xpp2-2.1.10-fix-java5+.patch 872 BLAKE2B a8fa53326a2fefa40f726a4cd3e5e2828b3d2e50907736be1b2639489692ff2a0ff683d1538123163d5fe52d2935d97832d643d7365829ca1eaa7c7936623e75 SHA512 495dfb83a773d11fb1f9f423f1bfa532770710b4b16c1f6e64e517e8148958a5160ddbbc43dd4cdc7ecc51126fba1062a10277bc9234b58e46a044e81180b3a5 DIST PullParser2.1.10.tgz 2310288 BLAKE2B 0c1f3aedf88aae18e7cab40b04055fa7a20f6bfe05973e6cbe3b459b408dfa193834d22a6d77b3d1ba3802e115d89f73e3f423efc7571efc8f09bb73625950d6 SHA512 87a091e415a31cde27ca1193735743b60f516feb336a9a3577792636e54ab8d671a22e74eb8aa41268f6251c688c68fe92a28f735ec78b96b919909f80c59590 EBUILD xpp2-2.1.10-r3.ebuild 1854 BLAKE2B 886333476332b887bfb6e02a235a6d7f50fbca065b5533a774881077d622bd7c12de73632d2cdae2fa9983781fe7ef88f10f51bccf3249b4e936247c93bbf3ae SHA512 4e011582986248939e206b8a2652e2d2a5d902615e29e3f15e87f92121093b73977fc7a36f6c0a354dde4c2562026e73c665a66187b40ba6384902d87ebeb198 +EBUILD xpp2-2.1.10-r4.ebuild 2400 BLAKE2B 9c7e4e9660d9e7b809c7503dad6224e78fe6ef49557888ac66b99ffd44263d50d82eea0be1f16eb7a06dcb05008b7b16702c1e5560608c2b78a0f77160476964 SHA512 d15b1c37d618aa308aa7459fb7628ba9a3f1ad832d77e4e24e6d02373fa75da6a5093be688ba771670d3d4f610d2c2adc2872a62eef3beb0cbd66473e2263a23 MISC metadata.xml 459 BLAKE2B 6b230c468ed9a62380563114c50b9b3cbd58237df4327ddc6194dba9524c6a0872c04354927d800544b1095db4a7f3c3ee0b0d37f16d23578da1b84f79628218 SHA512 f41891c17a7ab0a61bff751bdef3cb45f9385de1c10219aa19a8cc194b780b0db7d46ee89ed5403b193f473178828e79e88fa80833b5bdd56f8c9d3a532fff9d diff --git a/dev-java/xpp2/xpp2-2.1.10-r4.ebuild b/dev-java/xpp2/xpp2-2.1.10-r4.ebuild new file mode 100644 index 000000000000..0e785ac7de74 --- /dev/null +++ b/dev-java/xpp2/xpp2-2.1.10-r4.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="pull-parser:pull-parser:2" + +inherit java-pkg-2 java-pkg-simple + +MY_PN="PullParser" +MY_P="${MY_PN}${PV}" + +DESCRIPTION="A streaming pull XML parser used to quickly process input elements" +HOMEPAGE="https://web.archive.org/web/20130904163229/http://www.extreme.indiana.edu/xgws/xsoap/xpp/xpp2/" +SRC_URI="https://web.archive.org/web/20130904173708/http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/PullParser2/${MY_P}.tgz" +S="${WORKDIR}/${MY_P}" + +LICENSE="Apache-1.1 IBM" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" + +# Some failures, partly because we haven't patched Xerces but probably +# also because this software is ancient. :( +RESTRICT="test" + +CP_DEPEND="dev-java/xerces:2" +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:* + test? ( dev-java/junit:4 )" +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +PATCHES=( "${FILESDIR}/${P}-fix-java5+.patch" ) + +JAVADOC_ARGS="-source 8" +JAVA_RESOURCE_DIRS="res" +JAVA_SRC_DIR="src/java" + +src_prepare() { + default #780585 + java-pkg-2_src_prepare + java-pkg_clean + mkdir res || die + cp -r src/java/impl/factory/META-INF res || die + touch "res/PullParser${PV}_VERSION" || die + + mv src/{java/,}tests || die + mv src/{java/,}samples || die +} + +src_compile() { + java-pkg-simple_src_compile + rm xpp2.jar || die + JAVA_JAR_FILENAME="PullParser.jar" + + cp -r target/classes parser || die + rm -r parser/org/gjt/xpp/x2impl || die + rm parser/org/gjt/xpp/impl/PullParserFactorySmallImpl.class || die + jar cvf PullParser.jar -C parser . || die + + cp -r target/classes standard || die + rm -r standard/{javax,org/xml} || die + rm -r standard/org/gjt/xpp/{jaxp11,sax2,x2impl} || die + rm standard/org/gjt/xpp/impl/PullParserFactorySmallImpl.class || die + jar cvf PullParser-standard.jar -C standard . || die + + cp -r target/classes intf || die + rm -r intf/{javax,org/xml,org/gjt/xpp/{impl,jaxp11,sax2,x2impl}} || die + rm -r intf/META-INF || die + jar cvf PullParser-intf.jar -C intf . || die + + cp -r target/classes x2 || die + rm -r x2/org/gjt/xpp/impl/{pullparser,tokenizer} || die + rm x2/org/gjt/xpp/impl/PullParserFactory* || die + jar cvf PullParser-x2.jar -C x2 . || die +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dojar PullParser-{standard,intf,x2}.jar +} |