From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/xom/
Date: Mon, 27 Mar 2023 10:24:08 +0000 (UTC) [thread overview]
Message-ID: <1679912645.86fa992486e46d8c57bfd9c010c0b04481dec569.fordfrog@gentoo> (raw)
commit: 86fa992486e46d8c57bfd9c010c0b04481dec569
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Wed Jan 25 22:53:41 2023 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Mar 27 10:24:05 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86fa9924
dev-java/xom: add 1.3.8
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
dev-java/xom/Manifest | 1 +
dev-java/xom/metadata.xml | 3 +++
dev-java/xom/xom-1.3.8.ebuild | 61 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 65 insertions(+)
diff --git a/dev-java/xom/Manifest b/dev-java/xom/Manifest
index 8c6360068295..8623f92eb313 100644
--- a/dev-java/xom/Manifest
+++ b/dev-java/xom/Manifest
@@ -1 +1,2 @@
DIST xom-1.3.7-src.tar.gz 5898676 BLAKE2B 963190849bcdb1b4e786a099dd2abd2ed8f17e5b486bce9df48d9f6ddab4f381c3c5c7d70388f9d74710547ff7a62bbd6a2eb9c2a6d6ff8cd06156b83e98aba0 SHA512 9b574f23c9394f5b54dc9b33e41e89638d041337c08336f44f968a55a1633dcc90ff1b520f7ad57cdbe68a1f81e221ac7e83336eb472876ab43939d9ce940262
+DIST xom-1.3.8-src.tar.gz 5898196 BLAKE2B 59d2af50b1f662419cf9e860c9946b250b3a803b3e3190483bef5d9b77a51272f1f2b11b10da1d72daff5f9a38dfdd3c3c13d15de7b1d9e19372895316df0033 SHA512 4a9b328a51fc24a447271e52b2c084178e2a5091b6e37a6dcb05cfa7c1aeacc426bae896a84dd9a7adc425f77785c12f0ee23805863f096232ad6ca4a2335b44
diff --git a/dev-java/xom/metadata.xml b/dev-java/xom/metadata.xml
index 511ed7c60117..08ce1d1a6403 100644
--- a/dev-java/xom/metadata.xml
+++ b/dev-java/xom/metadata.xml
@@ -9,4 +9,7 @@
XOM is a new XML object model. It is a tree-based API for processing
XML with Java that strives for correctness and simplicity.
</longdescription>
+ <upstream>
+ <remote-id type="github">elharo/xom</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-java/xom/xom-1.3.8.ebuild b/dev-java/xom/xom-1.3.8.ebuild
new file mode 100644
index 000000000000..d8489ef1cab9
--- /dev/null
+++ b/dev-java/xom/xom-1.3.8.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+JAVA_TESTING_FRAMEWORKS="junit"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="XML Object Model"
+HOMEPAGE="https://xom.nu"
+SRC_URI="https://github.com/elharo/${PN}/releases/download/v${PV}/${P}-src.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
+
+CP_DEPEND="
+ dev-java/jaxen:1.2
+ dev-java/xerces:2"
+
+RDEPEND="
+ ${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+DEPEND="
+ ${CP_DEPEND}
+ dev-java/junit:0
+ >=virtual/jdk-1.8:*"
+
+JAVA_AUTOMATIC_MODULE_NAME="nu.xom"
+JAVA_MAIN_CLASS="nu.xom.Info"
+JAVA_RESOURCE_DIRS="src/main/resources"
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_prepare() {
+ java-pkg-2_src_prepare
+
+ # removing directories based on build.xml
+ rm -rv XOM/src/nu/xom/benchmarks/ || die
+ rm -rv XOM/src/nu/xom/integrationtests/ || die
+ rm -rv XOM/src/nu/xom/samples/ || die
+ rm -rv XOM/src/nu/xom/tools/ || die
+
+ # reorganize the code and resources so that it goes well with java-pkg-simple
+ mkdir -pv ${JAVA_SRC_DIR} ${JAVA_RESOURCE_DIRS} ${JAVA_TEST_SRC_DIR}/nu/xom || die
+ mv -v {XOM/src,${JAVA_TEST_SRC_DIR}}/nu/xom/tests || die
+ mv -v XOM/data . || die
+ pushd XOM/src || die
+ for file in $(find -type f -name "*.java"); do
+ cp --parents -R ${file} "${WORKDIR}/${JAVA_SRC_DIR}" || die
+ done
+ for file in $(find -type f ! -name "*.java"); do
+ cp --parents -R ${file} "${WORKDIR}/${JAVA_RESOURCE_DIRS}" || die
+ done
+ popd
+}
next reply other threads:[~2023-03-27 10:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-27 10:24 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-22 6:26 [gentoo-commits] repo/gentoo:master commit in: dev-java/xom/ Arthur Zamarin
2025-05-18 8:05 Sam James
2025-04-19 16:56 Miroslav Šulc
2024-10-12 17:12 Arthur Zamarin
2023-05-06 5:03 Miroslav Šulc
2023-05-05 18:28 Arthur Zamarin
2023-05-05 16:05 Arthur Zamarin
2023-05-05 16:05 Arthur Zamarin
2023-05-05 16:05 Arthur Zamarin
2023-04-29 6:24 Miroslav Šulc
2021-05-16 14:55 Sam James
2021-04-25 16:09 Sam James
2021-04-23 13:33 Sam James
2021-04-22 20:25 Sam James
2021-04-14 19:39 Miroslav Šulc
2021-04-14 19:30 Miroslav Šulc
2019-05-18 1:14 Aaron Bauman
2019-05-06 9:30 Patrice Clement
2018-03-01 8:46 Michał Górny
2017-07-13 18:32 Alexis Ballier
2017-01-29 15:54 Fabian Groffen
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=1679912645.86fa992486e46d8c57bfd9c010c0b04481dec569.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