summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-01-25 23:53:41 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2023-03-27 12:24:05 +0200
commit86fa992486e46d8c57bfd9c010c0b04481dec569 (patch)
treee3daa63e8ce813da78a14e37fc3bf921a947dd0d /dev-java/xom
parentdev-java/jaxen: add 2.0.0 (diff)
downloadgentoo-86fa992486e46d8c57bfd9c010c0b04481dec569.tar.gz
gentoo-86fa992486e46d8c57bfd9c010c0b04481dec569.tar.bz2
gentoo-86fa992486e46d8c57bfd9c010c0b04481dec569.zip
dev-java/xom: add 1.3.8
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/xom')
-rw-r--r--dev-java/xom/Manifest1
-rw-r--r--dev-java/xom/metadata.xml3
-rw-r--r--dev-java/xom/xom-1.3.8.ebuild61
3 files changed, 65 insertions, 0 deletions
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
+}