mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-23 18:38:08 -07:00
Package-Manager: Portage-3.0.4, Repoman-3.0.1 RepoMan-Options: --include-arches="x86" Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
38 lines
939 B
Bash
38 lines
939 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
ANT_TASK_JDKVER=1.8
|
|
ANT_TASK_JREVER=1.8
|
|
ANT_TASK_DEPNAME="junit-4"
|
|
|
|
inherit ant-tasks
|
|
|
|
KEYWORDS="amd64 arm64 ppc64 x86"
|
|
|
|
DEPEND="dev-java/junit:4
|
|
~dev-java/ant-junit-${PV}"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
JAVA_ANT_REWRITE_CLASSPATH="true"
|
|
EANT_GENTOO_CLASSPATH="junit-4,ant-junit"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
java-pkg_jar-from --build-only --into "${S}/lib" ant-junit
|
|
}
|
|
|
|
src_install() {
|
|
# No registration as ant-task, would be loaded together with ant-junit.
|
|
java-pkg_dojar build/lib/ant-junit4.jar
|
|
|
|
# As we dont't want to depend on and-junit in package.env, because it depends
|
|
# on junit:0. Instead, we "steal" its jar and record it to our package.env as
|
|
# if it belongs to this package's classpath.
|
|
java-pkg_getjar --build-only ant-junit ant-junit.jar
|
|
java-pkg_regjar $(java-pkg_getjar --build-only ant-junit ant-junit.jar)
|
|
}
|