dev-java/jettison: Rewrite for version bump to 1.3.7
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 26 Sep 2015 10:32:09 +0000 (11:32 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Sat, 26 Sep 2015 10:32:50 +0000 (11:32 +0100)
Update HOMEPAGE and SRC_URI as Codehaus has gone. Java version bump to
6 removes dependency on jaxp-virtual.

Package-Manager: portage-2.2.20.1

dev-java/jettison/Manifest
dev-java/jettison/jettison-1.3.7.ebuild [new file with mode: 0644]

index 98ef625b4fe7120efb9e556d3cc15d537f16cc20..e8bf7be54d6ff5d6c6fb7fc0229361b6e5578c9d 100644 (file)
@@ -1 +1,2 @@
 DIST jettison-1.0-sources.jar 54344 SHA256 4e52b63e8c84718ed6e7ab75618825e970df3169fb999f38ea54ea8a8d88e23b SHA512 f5eacfd15e43de61462413c6e7fde713c7baf632e26cd1c686818c9b992ac6734e4813ec5ad0ba6810e66bdd59d4007c73ad132e15c1ca0ae23a328916aa645c WHIRLPOOL a8fda2a165e06e39f87b7b6b8587f421451ca66334852844d81eb9c25cbe8d47a323fd2a6aee2a24d119fd35ed66fa5d815f0e8985681da23f8f6bacf08f00c0
+DIST jettison-1.3.7.tar.gz 63200 SHA256 0fdf66e0607cc3ea130b4072d4f2b03dfa6e71248069c5232fea6deebb77b065 SHA512 c669d0c1c4605c683d1d726ea7eea0f0079cd5fdddc40f4bc4e08b20b7ef7df414f4b2265fd91e1c34e30809c78f9e8690382c51a1ba6653a6fd688b22c07cd4 WHIRLPOOL 638fe310d82cbc2daa3e655e0c3ac7e4ac912e7827d94fac8ba93da8ba231d18b53afc86a39896c724bfd16142c714bfd4e4ed8044a3bf624d4737ad1715cb03
diff --git a/dev-java/jettison/jettison-1.3.7.ebuild b/dev-java/jettison/jettison-1.3.7.ebuild
new file mode 100644 (file)
index 0000000..01b414b
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A JSON StAX implementation"
+HOMEPAGE="https://github.com/codehaus/jettison"
+SRC_URI="https://github.com/codehaus/${PN}/archive/${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE="test"
+
+RDEPEND=">=virtual/jre-1.6"
+
+DEPEND=">=virtual/jdk-1.6
+       test? (
+               dev-java/junit:4
+               dev-java/wstx:3.2 )"
+
+S="${WORKDIR}/${PN}-${P}"
+JAVA_SRC_DIR="${S}/src/main/java"
+
+src_test() {
+       cd src/test/java || die
+       local CP=".:${S}/${PN}.jar:$(java-pkg_getjars junit-4,wstx-3.2)"
+
+       local TESTS=$(find * -name "*Test.java" ! -name "DOMTest.java")
+       TESTS="${TESTS//.java}"
+       TESTS="${TESTS//\//.}"
+
+       ejavac -classpath "${CP}" $(find -name "*.java")
+       ejunit4 -classpath "${CP}" ${TESTS}
+}