summaryrefslogtreecommitdiff
path: root/dev-java/jdom-jaxen
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/jdom-jaxen
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/jdom-jaxen')
-rw-r--r--dev-java/jdom-jaxen/Manifest3
-rw-r--r--dev-java/jdom-jaxen/jdom-jaxen-1.0-r1.ebuild51
-rw-r--r--dev-java/jdom-jaxen/metadata.xml11
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-java/jdom-jaxen/Manifest b/dev-java/jdom-jaxen/Manifest
new file mode 100644
index 000000000000..e30caa25cbd1
--- /dev/null
+++ b/dev-java/jdom-jaxen/Manifest
@@ -0,0 +1,3 @@
+DIST jdom-1.0.tar.gz 3571788 BLAKE2B f411941b333cb0876a2a88828a8938a346d1a008764638f58723634f24c48a843b71db1c8ddbbc62bc07bba825d5d3f24ae438668ce99389d10415ac5d1a64a8 SHA512 0bf1df21cdacdddb1df8bdfc2c4aa307bb6516a7614eb7382e99a60d03d9fcf77333e84f37ed653f264e7e9cdecb91fb9e2e11fcf76d70b3068bf238be4d0b24
+EBUILD jdom-jaxen-1.0-r1.ebuild 1178 BLAKE2B 96efb11d3a4595cb0fd854857c67a93404f91adfd5dad2502901c47a247a748485505915ec3b6f976c28b94707448337ac58d93bd739ccd099b2df56313826ee SHA512 943a4be36844ca39ca04d173b284de1d1e74a1bfc9b7163c1c61a808d70e1f1130ce01422816b8613853d2b511caafa1eb0cc3039ed44e8aebc970187c276948
+MISC metadata.xml 354 BLAKE2B 2e90828664feb3fefdad2c5e38a1b12bade88a67bb53e746d947c82277685961a44fb35b562df996d9fadfa0fa3310a1539abc834469d2f656b9d5720fb7812b SHA512 8576436758389c1f32c253956f783ec2ca0a6b2cc5825a373fc7107a74d7910d718dcc9fb803162500edab7d01d2f068fce61398119bf23da3fd6099eb695d3b
diff --git a/dev-java/jdom-jaxen/jdom-jaxen-1.0-r1.ebuild b/dev-java/jdom-jaxen/jdom-jaxen-1.0-r1.ebuild
new file mode 100644
index 000000000000..23aa620ab074
--- /dev/null
+++ b/dev-java/jdom-jaxen/jdom-jaxen-1.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=0
+
+JAVA_PKG_IUSE=""
+
+inherit base java-pkg-2
+
+MY_PN="jdom"
+
+DESCRIPTION="Jaxen binding for jdom"
+HOMEPAGE="http://www.jdom.org"
+SRC_URI="http://www.jdom.org/dist/source/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="JDOM"
+SLOT="${PV}"
+KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+
+IUSE=""
+
+COMMON_DEP="~dev-java/jdom-${SLOT}
+ =dev-java/jaxen-1.1*
+ dev-java/saxpath"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() {
+ cd "${S}/src/java/org/jdom/xpath/"
+ mv JaxenXPath.java JaxenXPath.java.bak
+ sed 's/SAXPathException/Exception/g' JaxenXPath.java.bak > JaxenXPath.java
+
+ cd "${S}"
+
+ mkdir -p "${S}/build/org/jdom/xpath" || die "Unable to create dir."
+ ejavac -d "${S}/build/" \
+ -classpath $(java-config -p jdom-${SLOT},jaxen-1.1,saxpath) \
+ src/java/org/jdom/xpath/JaxenXPath.java
+
+ jar cf jdom-jaxen.jar -C build org || die "Failed to create jar."
+}
+
+src_install() {
+ java-pkg_dojar "${PN}.jar"
+}
diff --git a/dev-java/jdom-jaxen/metadata.xml b/dev-java/jdom-jaxen/metadata.xml
new file mode 100644
index 000000000000..393226d80add
--- /dev/null
+++ b/dev-java/jdom-jaxen/metadata.xml
@@ -0,0 +1,11 @@
+<?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 lang="en">
+Jaxen binding for jdom. Split from jdom to resolve circular dependencies.
+</longdescription>
+</pkgmetadata>