diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-01-22 10:09:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-01-22 10:09:44 +0000 |
commit | 09351e78166b5e864197c4456ebae3f89dd0bed9 (patch) | |
tree | 41a96399f56ed3aa399006871bfce4430db84aa2 /dev-java/ant-junit4/ant-junit4-1.9.13.ebuild | |
parent | c8a77dfe4d3d307c1d5dd2650b7297447d8b609d (diff) |
gentoo resync : 22.01.2019
Diffstat (limited to 'dev-java/ant-junit4/ant-junit4-1.9.13.ebuild')
-rw-r--r-- | dev-java/ant-junit4/ant-junit4-1.9.13.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-java/ant-junit4/ant-junit4-1.9.13.ebuild b/dev-java/ant-junit4/ant-junit4-1.9.13.ebuild new file mode 100644 index 000000000000..fb52e9f07b75 --- /dev/null +++ b/dev-java/ant-junit4/ant-junit4-1.9.13.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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) +} |