summaryrefslogtreecommitdiff
path: root/dev-java/bnd-junit
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/bnd-junit')
-rw-r--r--dev-java/bnd-junit/Manifest3
-rw-r--r--dev-java/bnd-junit/bnd-junit-2.1.0.ebuild53
-rw-r--r--dev-java/bnd-junit/metadata.xml11
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-java/bnd-junit/Manifest b/dev-java/bnd-junit/Manifest
new file mode 100644
index 000000000000..5a3776e4ab8a
--- /dev/null
+++ b/dev-java/bnd-junit/Manifest
@@ -0,0 +1,3 @@
+DIST bndlib-2.1.0.tar.gz 123217291 BLAKE2B ab8e6876b13db538746f77aa1fe7800e5a3b5e539e1980da78f69c64344f4964bf0a21f2329f7684b055d0de39a10c8df36e030922e9933b29fccb9a35aa669a SHA512 6965143ced45c15fc2316716de32e80506cc411d52309b24313fff37e0713a45ad200d5b3701f0d47a131a3163ec266ed8acb4544884cd1c59c9716c7a2b285e
+EBUILD bnd-junit-2.1.0.ebuild 1108 BLAKE2B e23ae80e3510e5858ae86cf1d08a029cc6f65a57516538496db22cc37c3c84d58df4d2563a8da1a08f3ba435a1e2b1ff02a71031fb9f277dbb6c276c76fdf553 SHA512 4ca41cd6424423e74da9251835c15ff946d9d9a157cf1760f30daf6e5ffe61b420c01fec4fc78bac46d946010925bced7534d88e2b9f6ea0c80f74a0ce02ae2f
+MISC metadata.xml 323 BLAKE2B b7a6a3bf3330da14a229f4b8e178c7f5da2bdab8d7249b92daa4a6d414471b001d21441465852b21f9abbbb6bdff229a8c7dbe162e4ae820d5feccf2684c19f8 SHA512 b9affc0513759478d6db10968d574cc820ac19476a539d27e279884314805f663f0807abd01ce8107154fae445ad3e4fd37f485004130f04aa890c0607f85fcf
diff --git a/dev-java/bnd-junit/bnd-junit-2.1.0.ebuild b/dev-java/bnd-junit/bnd-junit-2.1.0.ebuild
new file mode 100644
index 000000000000..e4de5405feee
--- /dev/null
+++ b/dev-java/bnd-junit/bnd-junit-2.1.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+JAVA_PKG_IUSE="test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Junit plugin for bndlib, a swiss army knife for OSGi"
+HOMEPAGE="http://www.aqute.biz/Bnd/Bnd"
+SRC_URI="https://github.com/bndtools/bnd/archive/${PV}.REL.tar.gz -> bndlib-${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="
+ dev-java/osgi-core-api:0
+ dev-java/bndlib:0"
+
+DEPEND=">=virtual/jdk-1.5
+ test? ( dev-java/junit:4 )
+ ${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+
+S="${WORKDIR}/bnd-${PV}.REL/biz.aQute.junit"
+
+EANT_BUILD_TARGET="build"
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_GENTOO_CLASSPATH="bndlib,junit-4,osgi-core-api"
+
+# Tests appear broken and cause a circular dependency.
+RESTRICT="test"
+
+java_prepare() {
+ # Move the correct build.xml into place, needed for testing.
+ cp ../cnf/build.xml . || die
+
+ # Remove bundled jar files.
+ find . -name '*.jar' -delete > /dev/null
+}
+
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_newjar generated/biz.aQute.junit.jar
+}
diff --git a/dev-java/bnd-junit/metadata.xml b/dev-java/bnd-junit/metadata.xml
new file mode 100644
index 000000000000..7ed2fdf0797a
--- /dev/null
+++ b/dev-java/bnd-junit/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>
+ <upstream>
+ <remote-id type="github">bndtools/bnd</remote-id>
+ </upstream>
+</pkgmetadata>