mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
dev-java/bnd-junit: limit virtual/{jre,jdk} to 1.8
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/22214 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
8f8aa4dfd8
commit
5a68cd7bc2
48
dev-java/bnd-junit/bnd-junit-2.1.0-r2.ebuild
Normal file
48
dev-java/bnd-junit/bnd-junit-2.1.0-r2.ebuild
Normal file
@@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
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="
|
||||
${CDEPEND}
|
||||
virtual/jdk:1.8
|
||||
test? ( dev-java/junit:4 )"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
virtual/jre:1.8"
|
||||
|
||||
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"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
java-pkg_clean
|
||||
cp ../cnf/build.xml . || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar generated/biz.aQute.junit.jar
|
||||
}
|
||||
Reference in New Issue
Block a user