public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/xpp2/
Date: Mon, 17 Jun 2024 08:54:25 +0000 (UTC)	[thread overview]
Message-ID: <1718614379.965370e1c598f6c792c7c56d919d4caf8c8cc414.fordfrog@gentoo> (raw)

commit:     965370e1c598f6c792c7c56d919d4caf8c8cc414
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Jun 10 10:07:18 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Jun 17 08:52:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=965370e1

dev-java/xpp2: rewrite with java-pkg-simple

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/36770/commits/e48ff4fe76fd708e65632b7c83ec43e87cd36a92
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/xpp2/xpp2-2.1.10-r4.ebuild | 82 +++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)

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
+}


             reply	other threads:[~2024-06-17  8:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17  8:54 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-12 17:12 [gentoo-commits] repo/gentoo:master commit in: dev-java/xpp2/ Arthur Zamarin
2024-07-17  9:47 Miroslav Šulc
2024-07-17  6:12 Sam James
2024-07-17  6:12 Sam James
2024-07-17  6:12 Sam James
2024-07-17  6:12 Sam James
2021-07-01 12:49 Miroslav Šulc
2021-06-29 14:40 Miroslav Šulc
2018-03-01  8:46 Michał Górny
2017-07-13 17:27 Alexis Ballier
2017-01-29 15:54 Fabian Groffen
2015-08-19  9:52 Mikle Kolyada
2015-08-19  9:51 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1718614379.965370e1c598f6c792c7c56d919d4caf8c8cc414.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox