From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-java/bndlib/Manifest | 5 +++ dev-java/bndlib/bndlib-2.1.0.ebuild | 71 +++++++++++++++++++++++++++++++++++++ dev-java/bndlib/metadata.xml | 11 ++++++ 3 files changed, 87 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..dc1897a54f30 --- /dev/null +++ b/dev-java/bndlib/Manifest @@ -0,0 +1,5 @@ +DIST bndlib-2.1.0.tar.gz 123217291 SHA256 5e4c3c5d786acc1044103f57f4769acf54ea7d247f58f3c6a7b7769fb37df30f SHA512 6965143ced45c15fc2316716de32e80506cc411d52309b24313fff37e0713a45ad200d5b3701f0d47a131a3163ec266ed8acb4544884cd1c59c9716c7a2b285e WHIRLPOOL 3df261dec93655d2f4e483952b58d531fdf1936c505552f013f9447ac7fc8100e51f2412fd66224fe7871fa68fe1a6ec86c9c2787ffbfc65c8dc9863bac31fe5 +EBUILD bndlib-2.1.0.ebuild 1629 SHA256 13b006908b1a3ed8e61dced5a7b861ac5a1feba5b162179cd18a401b7c15ce36 SHA512 acd9ea13ccb4636c537d392fdbb49ad1c0b9aebb0ad7adcf9d5ac277aae840cf5e221b62a96e940790ba6d10613325dcde311c61a9cae37ba05e726874479ba4 WHIRLPOOL 387830fa52bd8e7810da521ada581d153e036b3b2141fe075df03643d66fe2b0571162872d4f8a0ddedd2c52eea8a4cdbc7b9699ccaa99b28212f5e682dc154f +MISC ChangeLog 2424 SHA256 718fa75734a670be617f73a38f28ca3f66f1085d4b32ba7e3fb1218ce4a3d2c8 SHA512 9ebe7fca76a9e12247f97e3068a6ae9cd564222e67f00ca0bdbe26b0216973845bc985f17d51f56e55fbd44abb1310a009142f03864352e501518227027ee4fc WHIRLPOOL 7c2ed7a69f63636f4ed488f11a4b9fc257e48d107b59509f4f4f4188b54f7f7e884856c2a144979ace017a498bd6592779cd2d3faa64b2b1208e4d9089d6d471 +MISC ChangeLog-2015 867 SHA256 576c5d9ac41b78fd93e30837e82fbb73f763781c1aa07bcd01d3e54ec0fc64a7 SHA512 9a4747d1f98090f7544fb93268917ee99e6c90aa66f6e0e0f40cf306f531f0fa4bf68cf5846b8dd332f99b62932042d8bb5d07bee3a045795ec0b6fdf31a0234 WHIRLPOOL de65a716cb086d9b4610606d385fd015915b91515b871922762fd4135804f4423838ea63cfc1eabca1c414d6387576daf79dee33786ea366f6ad0787f2c486da +MISC metadata.xml 323 SHA256 5d4405e7ba4bfce2e3cd8fc106142b56daac9f29abf53107d4fd5df8499f25b5 SHA512 b9affc0513759478d6db10968d574cc820ac19476a539d27e279884314805f663f0807abd01ce8107154fae445ad3e4fd37f485004130f04aa890c0607f85fcf WHIRLPOOL 70184d5185c58b4b2af3ee3f257ed3488d06ed1ced00cc41393465ba3911762cd7b0287ea4dd5c15c6fefbb41bc11339caef3d266b93507ea23c18b1e66e5850 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