summaryrefslogtreecommitdiff
path: root/dev-java/dom4j
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/dom4j
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/dom4j')
-rw-r--r--dev-java/dom4j/Manifest4
-rw-r--r--dev-java/dom4j/dom4j-1.6.1-r7.ebuild83
-rw-r--r--dev-java/dom4j/metadata.xml16
3 files changed, 103 insertions, 0 deletions
diff --git a/dev-java/dom4j/Manifest b/dev-java/dom4j/Manifest
new file mode 100644
index 000000000000..47c5e549ebcf
--- /dev/null
+++ b/dev-java/dom4j/Manifest
@@ -0,0 +1,4 @@
+DIST dom4j-1.6.1-java5.patch.bz2 2900 BLAKE2B cdd7dc901f5292af3ef7f0ea200c3d22bbc8c0adc27606da3c8fbadc44625b114c995321723dca331f0b23d5248e1f9177f0def2f4138eebcbd4aaac0495d4dd SHA512 38da606d77b62976366cd089e5194a922e348ec396e7b9af4dceb0a536c47f66e0900cfa59c91df04aade6076630077a8f88c713b9c20224d69316109b293a96
+DIST dom4j-1.6.1.tar.gz 9687211 BLAKE2B 3daa3729ea071aa87c7c1e1e2b91f1635109774dd2bd564a85265a0286f1369373084b945409d9d5213d66a7e14224033d42c58d80125b7982eef8961eb29248 SHA512 95c5a7105a81734f77b4bf27f8bb0af116bf43d8ad5297a0902a6687a54109a87dffe2953cf430d14947cdaa590aa0fdf083b46a91d1d98d48431cfae4459d94
+EBUILD dom4j-1.6.1-r7.ebuild 1871 BLAKE2B ac9a685c9e4218a5ce85f9f8d2005d6683b4e84c35f09ba27d632208cef47b92b31de3102197077b62ca00aed707f62a50a58537ff8b5a5944e9e9b5486b64cc SHA512 e34d4811f98f27fbbd4153c702f0845c7616801ef620ae800cf2bfb2a21567c402ef6d07e6a5035c34a48d4ff8aa0a4ee2823e313e4d6f735675764889619c3c
+MISC metadata.xml 529 BLAKE2B 27e8a2aa0c95e7690b99386698f800291371b9962a1a667899c425e58ce73c8eb21dac1c589d47449242f0e2522b66c66379d6dd3b01708015e66278d634a480 SHA512 a9845c5229efbf48ac83b5b8fd0a769d90275de1f336b52147330cc2652a858df2689e17895e2fca5af067288413102de67316e49108c7d9eaf232e9dda31bbd
diff --git a/dev-java/dom4j/dom4j-1.6.1-r7.ebuild b/dev-java/dom4j/dom4j-1.6.1-r7.ebuild
new file mode 100644
index 000000000000..c3ac813cd529
--- /dev/null
+++ b/dev-java/dom4j/dom4j-1.6.1-r7.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="XML Java library"
+HOMEPAGE="http://dom4j.sourceforge.net/"
+SRC_URI="
+ mirror://sourceforge/dom4j/${P}.tar.gz
+ mirror://gentoo/${P}-java5.patch.bz2"
+
+LICENSE="dom4j"
+SLOT="1"
+KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+CDEPEND="
+ dev-java/xpp2:0
+ dev-java/xpp3:0
+ dev-java/xsdlib:0
+ dev-java/relaxng-datatype:0"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ test? (
+ dev-java/xalan:0
+ dev-java/ant-junit:0
+ dev-java/junitperf:0
+ )
+ >=virtual/jdk-1.6"
+
+PDEPEND="dev-java/jaxen:1.1"
+
+# Add missing methods to compile on Java 5 #137970
+PATCHES=( "${WORKDIR}/${P}-java5.patch" )
+
+JAVA_RM_FILES=(
+ src/test/org/dom4j/bean/BeansTest.java
+ src/test/org/dom4j/io/StaxTest.java
+ src/test/org/dom4j/rule/RuleTest.java
+ src/test/org/dom4j/ThreadingTest.java
+ src/test/org/dom4j/io/XPP3ReaderTest.java
+)
+
+src_prepare() {
+ default
+
+ # Circular deps with jaxen #212993
+ find -name '*.jar' -! -name jaxen-1.1-beta-6.jar -exec rm -v {} + || die
+
+ rm -v "${JAVA_RM_FILES[@]}" || die
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
+
+JAVA_ANT_ENCODING="ISO-8859-1"
+
+EANT_BUILD_TARGET="clean package"
+EANT_GENTOO_CLASSPATH="relaxng-datatype,xpp2,xpp3,xsdlib"
+EANT_GENTOO_CLASSPATH_EXTRA="lib/jaxen-1.1-beta-6.jar"
+EANT_EXTRA_ARGS="-Dbuild.javadocs=build/doc/api"
+
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junitperf,xalan"
+
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_dojar "build/${PN}.jar"
+ java-pkg_register-dependency jaxen-1.1
+ use doc && java-pkg_dojavadoc build/doc/api
+ use source && java-pkg_dosrc src/java/*
+}
diff --git a/dev-java/dom4j/metadata.xml b/dev-java/dom4j/metadata.xml
new file mode 100644
index 000000000000..af2c88427c79
--- /dev/null
+++ b/dev-java/dom4j/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription>
+ Easy to use, open source library for working with XML, XPath and
+ XSLT on the Java platform using the Java Collections Framework
+ and with full support for DOM, SAX and JAXP.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">dom4j</remote-id>
+ </upstream>
+</pkgmetadata>