summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-04-04 19:28:53 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-04-04 19:28:53 +0000
commit22dd070e7f62915d1c6b5eab1d3232572bac64d7 (patch)
tree6891d52a5e4992359cb8f1d3be69d27222014e19 /dev-java/jdom
parentMark s390/sh stable. (diff)
downloadgentoo-2-22dd070e7f62915d1c6b5eab1d3232572bac64d7.tar.gz
gentoo-2-22dd070e7f62915d1c6b5eab1d3232572bac64d7.tar.bz2
gentoo-2-22dd070e7f62915d1c6b5eab1d3232572bac64d7.zip
Version bump courtesy of William L. Thomson Jr. <wlt@obsidian-studios.com>. Fix bug 496986.
Signed-off-by: monsieurp@gentoo.org (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)
Diffstat (limited to 'dev-java/jdom')
-rw-r--r--dev-java/jdom/ChangeLog8
-rw-r--r--dev-java/jdom/jdom-2.0.6.ebuild76
2 files changed, 83 insertions, 1 deletions
diff --git a/dev-java/jdom/ChangeLog b/dev-java/jdom/ChangeLog
index 65ff4d6f7943..21652f28f6ba 100644
--- a/dev-java/jdom/ChangeLog
+++ b/dev-java/jdom/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jdom
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/ChangeLog,v 1.75 2015/04/04 18:32:29 monsieurp Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/ChangeLog,v 1.76 2015/04/04 19:28:53 monsieurp Exp $
+
+*jdom-2.0.6 (04 Apr 2015)
+
+ 04 Apr 2015; Patrice Clement <monsieurp@gentoo.org> +jdom-2.0.6.ebuild:
+ Version bump courtesy of William L. Thomson Jr. <wlt@obsidian-studios.com>.
+ Fix bug 496986.
*jdom-1.1.3 (04 Apr 2015)
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..f4437e4612ec
--- /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
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/jdom-2.0.6.ebuild,v 1.1 2015/04/04 19:28:53 monsieurp Exp $
+
+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
+}