summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/jdom
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/jdom')
-rw-r--r--dev-java/jdom/Manifest5
-rw-r--r--dev-java/jdom/jdom-1.0-r2.ebuild66
-rw-r--r--dev-java/jdom/jdom-1.0-r4.ebuild53
-rw-r--r--dev-java/jdom/jdom-1.0_beta10-r4.ebuild72
-rw-r--r--dev-java/jdom/jdom-1.0_beta10-r6.ebuild71
-rw-r--r--dev-java/jdom/jdom-1.0_beta9-r2.ebuild73
-rw-r--r--dev-java/jdom/jdom-1.0_beta9-r4.ebuild59
-rw-r--r--dev-java/jdom/jdom-1.1.3.ebuild56
-rw-r--r--dev-java/jdom/jdom-2.0.6.ebuild76
-rw-r--r--dev-java/jdom/metadata.xml5
10 files changed, 536 insertions, 0 deletions
diff --git a/dev-java/jdom/Manifest b/dev-java/jdom/Manifest
new file mode 100644
index 000000000000..a643f6e1ce3f
--- /dev/null
+++ b/dev-java/jdom/Manifest
@@ -0,0 +1,5 @@
+DIST jdom-1.0.tar.gz 3571788 SHA256 fdb77a2c9f8f91a9bd898a0d99b941b79137b5ab692e35ca17dcb73a58b15f77 SHA512 0bf1df21cdacdddb1df8bdfc2c4aa307bb6516a7614eb7382e99a60d03d9fcf77333e84f37ed653f264e7e9cdecb91fb9e2e11fcf76d70b3068bf238be4d0b24 WHIRLPOOL 329163b0a6838322be5174e7a6eddcafeddecc54e541cbdb28748f99da88c79349f67bd79c88bda6944d142440df8d21b21cb0fbb2b1497a6fc84f30a531f8f3
+DIST jdom-1.1.3.tar.gz 4233403 SHA256 d471718c4ac7a1a2f10715b93cb3fcd2ecbab60384b73ad1c089712e47bd8d1f SHA512 a693fcc0d5c8ab3cf086a7904c7fb711e7deedca542089b84c6d011584e0d889495a58843033bff25272fdf130b1347419e31b9a4650c85ce9dfa19022dc0278 WHIRLPOOL b9f610001e152c41fcd3a0328b4ff563b33220f2cde8571ba09dd9063bc63fe51af80229c2bfdd7aeff4a0b354cd04a8d11f9fccb42b8620b2225c6f9ecd38e0
+DIST jdom-2.0.6.zip 7464948 SHA256 86b8683187ca28a935991cbffe5d1a9cfe88e5141e14905694a95e832f775b12 SHA512 dc84ede1eb05f7178a7f5b55f4035655096becee483966d7e0934484522c5981a1fdca836ae9ea6f3d2538c50b7a3cb9029264cd6427f5308d3ac7666e160cff WHIRLPOOL d568a18d8fc369ec0cf2954b16d2360ac934726c93ea31a59d75bc1913a9b1fba5d7cd02f6822ab21000b8df51380f2087e8690a3b66352e8d1267809091b374
+DIST jdom-b10.tar.gz 3565663 SHA256 be6771052ec6d33a192416a9acd0694f1ee2bb5a8eaf506f927a74f56d648a66 SHA512 afea09b55815d021691b682e0a2e006ebbee699e0fa879ffb17712896eea6453016ec49fd6eee8758565eae68f236d5dddcc7fc940dca76c0e580e69bb544f52 WHIRLPOOL 69e555bb7edbf6fd107f58e0f06954683e25f9be46bc9668cce2570ed1d20f285e09b19372288b8a7cd3c4de955f4d16ca54c9cb6c20c1f5966865f439f0b8d3
+DIST jdom-b9.tar.gz 3417274 SHA256 00c4ddf640b17768582bba0e8b8a2584fe42b2540a98d1bfa276fa43bef1a676 SHA512 b210938c2ec539a59664586ef979d834817fba08c96d30fd9696a72ce3961693faa3ea3718687cd208cb35c4227c2e908b2ea9f981ba97b1991414f6347e0963 WHIRLPOOL f5059bb062986ace5ae4872afbf59333c8d9fbf676066135d5fe79806c28bea4c5e3ec8071e2c3fd546c6b4e4c4adafdbae187cc2c340cd78912f6b5d6a4b356
diff --git a/dev-java/jdom/jdom-1.0-r2.ebuild b/dev-java/jdom/jdom-1.0-r2.ebuild
new file mode 100644
index 000000000000..b076ce432651
--- /dev/null
+++ b/dev-java/jdom/jdom-1.0-r2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Java API to manipulate XML data"
+SRC_URI="http://www.jdom.org/dist/source/${P}.tar.gz"
+HOMEPAGE="http://www.jdom.org"
+LICENSE="JDOM"
+SLOT="${PV}"
+KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
+COMMON_DEP="dev-java/saxpath
+ >=dev-java/xerces-2.7"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v build/*.jar lib/*.jar || die
+ rm -rf build/{apidocs,samples} || die
+
+ cd "${S}/lib"
+ java-pkg_jar-from saxpath,xerces-2
+
+ if has_version '=dev-java/jaxen-1.1*'; then
+ elog "jaxen detected - building jaxen support."
+ elog "you can ignore the warnings below"
+ elog "one day there will be better solution"
+ JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1
+ fi
+}
+
+src_compile() {
+ # to prevent a newer jdom from going into cp
+ # (EANT_ANT_TASKS doesn't work with none)
+ ANT_TASKS="none" eant package $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar build/*.jar
+
+ dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
+ use doc && java-pkg_dojavadoc build/apidocs
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/java/org
+}
+
+pkg_postinst() {
+ if ! has_version '=dev-java/jaxen-1.1*'; then
+ elog ""
+ elog "If you want jaxen support for jdom then"
+ elog "please emerge =dev-java/jaxen-1.1* first and"
+ elog "re-emerge jdom. Sorry for the"
+ elog "inconvenience, this is to break out of the"
+ elog "circular dependencies."
+ elog ""
+ fi
+}
diff --git a/dev-java/jdom/jdom-1.0-r4.ebuild b/dev-java/jdom/jdom-1.0-r4.ebuild
new file mode 100644
index 000000000000..24afcdf4a806
--- /dev/null
+++ b/dev-java/jdom/jdom-1.0-r4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Java API to manipulate XML data"
+SRC_URI="http://www.jdom.org/dist/source/archive/${P}.tar.gz"
+HOMEPAGE="http://www.jdom.org"
+LICENSE="JDOM"
+SLOT="${PV}"
+KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+COMMON_DEP="dev-java/saxpath
+ >=dev-java/xerces-2.7"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+PDEPEND="~dev-java/jdom-jaxen-${PV}"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v build/*.jar lib/*.jar || die
+ rm -rf build/{apidocs,samples} || die
+
+ rm -v src/java/org/jdom/xpath/JaxenXPath.java \
+ || die "Unable to remove Jaxen Binding class."
+
+ cd "${S}"/lib
+ java-pkg_jar-from saxpath,xerces-2
+}
+
+src_compile() {
+ # to prevent a newer jdom from going into cp
+ # (EANT_ANT_TASKS doesn't work with none)
+ ANT_TASKS="none" eant package $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar build/*.jar
+
+ java-pkg_register-dependency "jdom-jaxen-${SLOT}"
+
+ dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
+ use doc && java-pkg_dojavadoc build/apidocs
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/java/org
+}
diff --git a/dev-java/jdom/jdom-1.0_beta10-r4.ebuild b/dev-java/jdom/jdom-1.0_beta10-r4.ebuild
new file mode 100644
index 000000000000..975fcac3056f
--- /dev/null
+++ b/dev-java/jdom/jdom-1.0_beta10-r4.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="jdom"
+MY_PV="b10"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Java API to manipulate XML data"
+SRC_URI="http://www.jdom.org/dist/source/archive/${MY_P}.tar.gz"
+HOMEPAGE="http://www.jdom.org"
+LICENSE="JDOM"
+SLOT="${PV}"
+KEYWORDS="amd64 ppc x86"
+COMMON_DEP="dev-java/saxpath
+ >=dev-java/xerces-2.7"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v build/*.jar lib/*.jar || die
+ rm -rf build/{apidocs,samples} || die
+
+ cd "${S}/lib"
+ java-pkg_jar-from saxpath,xerces-2
+
+ if has_version '=dev-java/jaxen-1.1*'; then
+ elog "jaxen detected - building jaxen support."
+ elog "you can ignore the warnings below"
+ elog "one day there will be better solution"
+ JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1
+ fi
+}
+
+src_compile() {
+ # to prevent a newer jdom from going into cp
+ # (EANT_ANT_TASKS doesn't work with none)
+ ANT_TASKS="none" eant package $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar build/*.jar
+
+ dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
+ use doc && java-pkg_dojavadoc build/apidocs
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/java/org
+}
+
+pkg_postinst() {
+ if ! has_version '=dev-java/jaxen-1.1*'; then
+ elog ""
+ elog "If you want jaxen support for jdom then"
+ elog "please emerge =dev-java/jaxen-1.1* first and"
+ elog "re-emerge jdom. Sorry for the"
+ elog "inconvenience, this is to break out of the"
+ elog "circular dependencies."
+ elog ""
+ fi
+}
diff --git a/dev-java/jdom/jdom-1.0_beta10-r6.ebuild b/dev-java/jdom/jdom-1.0_beta10-r6.ebuild
new file mode 100644
index 000000000000..60cd4223e8d6
--- /dev/null
+++ b/dev-java/jdom/jdom-1.0_beta10-r6.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="jdom"
+MY_PV="b10"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Java API to manipulate XML data"
+SRC_URI="http://www.jdom.org/dist/source/archive/${MY_P}.tar.gz"
+HOMEPAGE="http://www.jdom.org"
+LICENSE="JDOM"
+SLOT="${PV}"
+KEYWORDS="amd64 ppc ppc64 ~x86"
+COMMON_DEP="dev-java/saxpath
+ >=dev-java/xerces-2.7"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+PDEPEND="~dev-java/jdom-jaxen-${PV}"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v build/*.jar lib/*.jar || die
+ rm -rf build/{apidocs,samples} || die
+
+ rm -v src/java/org/jdom/xpath/JaxenXPath.java \
+ || die "Unable to remove Jaxen Binding class."
+
+ cd "${S}/lib"
+ java-pkg_jar-from saxpath,xerces-2
+}
+
+src_compile() {
+ # to prevent a newer jdom from going into cp
+ # (EANT_ANT_TASKS doesn't work with none)
+ ANT_TASKS="none" eant package $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar build/*.jar
+
+ java-pkg_register-dependency "jdom-jaxen-${SLOT}"
+
+ dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
+ use doc && java-pkg_dojavadoc build/apidocs
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/java/org
+}
+
+pkg_postinst() {
+ if ! has_version '=dev-java/jaxen-1.1*'; then
+ elog ""
+ elog "If you want jaxen support for jdom then"
+ elog "please emerge =dev-java/jaxen-1.1* first and"
+ elog "re-emerge jdom. Sorry for the"
+ elog "inconvenience, this is to break out of the"
+ elog "circular dependencies."
+ elog ""
+ fi
+}
diff --git a/dev-java/jdom/jdom-1.0_beta9-r2.ebuild b/dev-java/jdom/jdom-1.0_beta9-r2.ebuild
new file mode 100644
index 000000000000..bf931f200fb6
--- /dev/null
+++ b/dev-java/jdom/jdom-1.0_beta9-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="jdom"
+MY_PV="b9"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Java API to manipulate XML data"
+SRC_URI="http://www.jdom.org/dist/source/archive/${MY_P}.tar.gz"
+HOMEPAGE="http://www.jdom.org"
+LICENSE="JDOM"
+SLOT="${PV}"
+KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
+
+COMMON_DEP="dev-java/saxpath
+ >=dev-java/xerces-2.7"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v build/*.jar lib/*.jar || die
+ rm -rf build/apidocs || die
+
+ cd "${S}/lib"
+ java-pkg_jar-from saxpath,xerces-2
+
+ if has_version '=dev-java/jaxen-1.1*'; then
+ elog "jaxen detected - building jaxen support."
+ elog "you can ignore the warnings below"
+ elog "one day there will be better solution"
+ JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1
+ fi
+}
+
+src_compile() {
+ # to prevent a newer jdom from going into cp
+ # (EANT_ANT_TASKS doesn't work with none)
+ ANT_TASKS="none" eant package $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar build/*.jar
+
+ dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
+ use doc && java-pkg_dojavadoc build/apidocs
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/java/org
+}
+
+pkg_postinst() {
+ if ! has_version '=dev-java/jaxen-1.1*'; then
+ elog ""
+ elog "If you want jaxen support for jdom then"
+ elog "please emerge =dev-java/jaxen-1.1* first and"
+ elog "re-emerge jdom. Sorry for the"
+ elog "inconvenience, this is to break out of the"
+ elog "circular dependencies."
+ elog ""
+ fi
+}
diff --git a/dev-java/jdom/jdom-1.0_beta9-r4.ebuild b/dev-java/jdom/jdom-1.0_beta9-r4.ebuild
new file mode 100644
index 000000000000..f8186630f4d7
--- /dev/null
+++ b/dev-java/jdom/jdom-1.0_beta9-r4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="jdom"
+MY_PV="b9"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Java API to manipulate XML data"
+SRC_URI="http://www.jdom.org/dist/source/archive/${MY_P}.tar.gz"
+HOMEPAGE="http://www.jdom.org"
+LICENSE="JDOM"
+SLOT="${PV}"
+KEYWORDS="amd64 ppc ppc64 ~x86"
+
+COMMON_DEP="dev-java/saxpath
+ >=dev-java/xerces-2.7"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+PDEPEND="~dev-java/jdom-jaxen-${PV}"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v build/*.jar lib/*.jar || die
+ rm -v src/java/org/jdom/xpath/JaxenXPath.java \
+ || die "Unable to remove Jaxen Binding class."
+ rm -rf build/apidocs || die
+
+ cd "${S}/lib"
+ java-pkg_jar-from saxpath,xerces-2
+}
+
+src_compile() {
+ # to prevent a newer jdom from going into cp
+ # (EANT_ANT_TASKS doesn't work with none)
+ ANT_TASKS="none" eant package $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar build/*.jar
+
+ java-pkg_register-dependency "jdom-jaxen-${SLOT}"
+
+ dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
+ use doc && java-pkg_dojavadoc build/apidocs
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/java/org
+}
diff --git a/dev-java/jdom/jdom-1.1.3.ebuild b/dev-java/jdom/jdom-1.1.3.ebuild
new file mode 100644
index 000000000000..dbf6f1e135c7
--- /dev/null
+++ b/dev-java/jdom/jdom-1.1.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Java API to manipulate XML data"
+SRC_URI="http://www.jdom.org/dist/binary/archive/${P}.tar.gz"
+HOMEPAGE="http://www.jdom.org"
+LICENSE="JDOM"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+COMMON_DEP="dev-java/saxpath
+ >=dev-java/xerces-2.7"
+RDEPEND=">=virtual/jre-1.6"
+# ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.6"
+# ${COMMON_DEP}"
+IUSE=""
+
+S="${WORKDIR}/${PN}"
+
+java_prepare() {
+ find "${S}" -name '*.jar' -delete || die
+
+ rm -r build/apidocs || die
+
+ rm -v src/java/org/jdom/xpath/JaxenXPath.java \
+ || die "Unable to remove Jaxen Binding class."
+
+ sed -i -e 's|${name}-${version.impl}|${name}|g' \
+ -e 's|<jar jarfile="${build.dir}/${name}-sources|<!-- <jar jarfile="${build.dir}/${name}-sources|' \
+ -e 's|build.javadocs}" />|build.javadocs}" /> -->|' \
+ "${S}"/build.xml || die
+
+ if ! use doc; then
+ sed -i -e 's|depends="compile,javadoc"|depends="compile"|' \
+ "${S}"/build.xml || die
+ fi
+}
+
+EANT_BUILD_TARGET="package"
+#EANT_GENTOO_CLASSPATH="saxpath,xerces-2"
+
+src_install() {
+ java-pkg_dojar build/*.jar
+
+ #java-pkg_register-dependency "jdom-jaxen-${SLOT}"
+ dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die
+ use doc && java-pkg_dojavadoc build/apidocs
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/java/org
+}
diff --git a/dev-java/jdom/jdom-2.0.6.ebuild b/dev-java/jdom/jdom-2.0.6.ebuild
new file mode 100644
index 000000000000..76dcf19c1d4e
--- /dev/null
+++ b/dev-java/jdom/jdom-2.0.6.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+JAVA_PKG_IUSE="source test"
+
+#JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2
+
+DESCRIPTION="Java API to manipulate XML data"
+SRC_URI="http://www.jdom.org/dist/binary/${P}.zip"
+HOMEPAGE="http://www.jdom.org"
+LICENSE="JDOM"
+SLOT="2"
+KEYWORDS="amd64 ppc ppc64 x86"
+
+COMMON_DEP="dev-java/iso-relax
+ dev-java/jaxen:1.1
+ dev-java/xalan
+ dev-java/xml-commons-external:1.4"
+RDEPEND="${COMMON_DEP}
+ >=virtual/jre-1.6"
+DEPEND="${COMMON_DEP}
+ app-arch/unzip
+ test? ( dev-java/junit:0 )
+ >=virtual/jdk-1.6"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ unpack ./${P}-sources.jar
+}
+
+java_prepare() {
+ find "${S}" -name '*.jar' -delete || die
+ mkdir "${S}"/classes "${S}"/docs
+}
+
+src_compile() {
+ find org -name "*.java" > "${T}"/src.list
+
+ local cp="$(java-pkg_getjars iso-relax,jaxen-1.1,xalan,xml-commons-external-1.4)"
+ if use test ; then
+ cp="${cp}:junit.jar"
+ else
+ sed -i 's/PerfTest/PerfTemp/' "${T}"/src.list || die "Failed to rename PerfTest"
+ sed -i '/test/Id' "${T}"/src.list || die "Failed to remove test classes"
+ sed -i 's/PerfTemp/PerfTest/' "${T}"/src.list || die "Failed to rename PerfTest"
+ fi
+
+ ejavac -d "${S}"/classes -cp ${cp} "@${T}"/src.list
+
+ # Disabled for the time being.
+ # if use doc; then
+ # ejavadoc -d "${S}"/docs -classpath ${cp} "@${T}"/src.list -quiet || die "javadoc failed"
+ # fi
+
+ cd "${S}"/classes
+ jar -cf "${S}"/${PN}.jar * || die "failed to create jar"
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ # Disabled for the time being.
+ # if use doc; then
+ # java-pkg_dojavadoc docs
+ # fi
+
+ dodoc README.txt LICENSE.txt || die
+ use source && java-pkg_dosrc org
+}
diff --git a/dev-java/jdom/metadata.xml b/dev-java/jdom/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/jdom/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>