From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-java/bndlib/Manifest | 3 ++ dev-java/bndlib/bndlib-2.1.0.ebuild | 71 +++++++++++++++++++++++++++++++++++++ dev-java/bndlib/metadata.xml | 11 ++++++ 3 files changed, 85 insertions(+) create mode 100644 dev-java/bndlib/Manifest create mode 100644 dev-java/bndlib/bndlib-2.1.0.ebuild create mode 100644 dev-java/bndlib/metadata.xml (limited to 'dev-java/bndlib') diff --git a/dev-java/bndlib/Manifest b/dev-java/bndlib/Manifest new file mode 100644 index 000000000000..fb62f35e87cf --- /dev/null +++ b/dev-java/bndlib/Manifest @@ -0,0 +1,3 @@ +DIST bndlib-2.1.0.tar.gz 123217291 BLAKE2B ab8e6876b13db538746f77aa1fe7800e5a3b5e539e1980da78f69c64344f4964bf0a21f2329f7684b055d0de39a10c8df36e030922e9933b29fccb9a35aa669a SHA512 6965143ced45c15fc2316716de32e80506cc411d52309b24313fff37e0713a45ad200d5b3701f0d47a131a3163ec266ed8acb4544884cd1c59c9716c7a2b285e +EBUILD bndlib-2.1.0.ebuild 1629 BLAKE2B 0043daccb6de03e935f975eb5e75b27c4ef10ea56384f6dbda7d55f955aa0e0e69b0c2e04d7af9ced6452d90e7decafff71130761bf488ff2c93f08b7b2ccffa SHA512 acd9ea13ccb4636c537d392fdbb49ad1c0b9aebb0ad7adcf9d5ac277aae840cf5e221b62a96e940790ba6d10613325dcde311c61a9cae37ba05e726874479ba4 +MISC metadata.xml 323 BLAKE2B b7a6a3bf3330da14a229f4b8e178c7f5da2bdab8d7249b92daa4a6d414471b001d21441465852b21f9abbbb6bdff229a8c7dbe162e4ae820d5feccf2684c19f8 SHA512 b9affc0513759478d6db10968d574cc820ac19476a539d27e279884314805f663f0807abd01ce8107154fae445ad3e4fd37f485004130f04aa890c0607f85fcf diff --git a/dev-java/bndlib/bndlib-2.1.0.ebuild b/dev-java/bndlib/bndlib-2.1.0.ebuild new file mode 100644 index 000000000000..c9a398337963 --- /dev/null +++ b/dev-java/bndlib/bndlib-2.1.0.ebuild @@ -0,0 +1,71 @@ +# 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="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 -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" + +CDEPEND="dev-java/libg:0 + dev-java/osgi-compendium:0 + dev-java/osgi-core-api:0 + dev-java/osgi-enterprise-api:0" + +# Tests appear broken and cause a circular dependency. +# test? ( dev-java/bnd-junit:0 ) +DEPEND=">=virtual/jdk-1.5 + ${CDEPEND} + test? ( dev-java/junit:4 )" + +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" + +S="${WORKDIR}/bnd-${PV}.REL/biz.aQute.${PN}" + +EANT_BUILD_TARGET="build" + +JAVA_ANT_REWRITE_CLASSPATH="true" + +# 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 + + if ! use test ; then + rm -rf src/aQute/bnd/test || die "Failed to remove tests." + fi +} + +src_compile() { + local extra_cp="" + + if use test ; then + extra_cp=":$(java-pkg_getjars --build-only junit-4)" + fi + + EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjars libg):$(java-pkg_getjars osgi-compendium):$(java-pkg_getjars osgi-core-api):$(java-pkg_getjars osgi-enterprise-api)${extra_cp}" \ + java-pkg-2_src_compile +} + +EANT_TEST_GENTOO_CLASSPATH="junit-4,bnd-junit" +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar generated/biz.aQute.${PN}.jar +} diff --git a/dev-java/bndlib/metadata.xml b/dev-java/bndlib/metadata.xml new file mode 100644 index 000000000000..7ed2fdf0797a --- /dev/null +++ b/dev-java/bndlib/metadata.xml @@ -0,0 +1,11 @@ + + + + + java@gentoo.org + Java + + + bndtools/bnd + + -- cgit v1.2.3