diff options
author | Kaibo Ma <kaiboma06@gmail.com> | 2021-02-14 16:00:24 +0000 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-02-15 09:31:08 +0100 |
commit | 590f8ed921163a5532a37f0fe47f6313cafb2899 (patch) | |
tree | a7f3d5090948786e96c74e46e805c2124a402197 /dev-java/junit | |
parent | media-libs/libshout: removed obsolete 2.4.3 (diff) | |
download | gentoo-590f8ed921163a5532a37f0fe47f6313cafb2899.tar.gz gentoo-590f8ed921163a5532a37f0fe47f6313cafb2899.tar.bz2 gentoo-590f8ed921163a5532a37f0fe47f6313cafb2899.zip |
dev-java/junit: version bump to 4.13.1
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Kaibo Ma <kaiboma06@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/19465
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/junit')
-rw-r--r-- | dev-java/junit/Manifest | 1 | ||||
-rw-r--r-- | dev-java/junit/junit-4.13.1.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-java/junit/Manifest b/dev-java/junit/Manifest index e65514614dae..0d1ea9e61f77 100644 --- a/dev-java/junit/Manifest +++ b/dev-java/junit/Manifest @@ -1,2 +1,3 @@ DIST junit3.8.2.zip 461426 BLAKE2B 8fbef1ccdf7f71c611976d63f45838f4cb2564da5f5064e7abc39931a3c99039a40660093aba2cc3c70af761171125f434c16c52021226f2e92fdf23597dbf25 SHA512 f203332ccc2bdc38c683a95bdbe448f38cbfbeea81ecc431bf9ebf0a3292f0150fcfe5cd5dd6da481be034366820f95775a33581931aed9e4cc12a6ff27e3930 DIST junit4-r4.12.tar.gz 443804 BLAKE2B b36248266eb83d8f2dfb1c525f635a4fce5a46c6042652ef27a5d405b83c471848edf83e799a4d1e950d83e127caa288f453edf19959a9a8aa5a9e26eeb4e771 SHA512 ba612598fa6c328e8f4bbea3afda08b459a110837ca3805a62e811535f7bca8d04509f8fe51a413c7bc855fccee35d6946c9eece4dd01726d12454c002a4de32 +DIST junit4-r4.13.1.tar.gz 1072560 BLAKE2B d7a8ecf804f83461c281a494c1ad85e6797af64fd1344ba41a919a2783c28fc7c36b6c85984aaff66d41a99fde0141532be2e9bb00f3f53ae467f6dbde937f4a SHA512 a4c284f756916077100181af1dd8c0febdc855e21ea600366e5fda3904919ec2c4a5e828961c322f080f177eb53485c9ad01bfc65c7489a741be63c96cd472bb diff --git a/dev-java/junit/junit-4.13.1.ebuild b/dev-java/junit/junit-4.13.1.ebuild new file mode 100644 index 000000000000..d96833a1236d --- /dev/null +++ b/dev-java/junit/junit-4.13.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN}${PV%%.*}" +MY_P="${MY_PN}-r${PV}" +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Simple framework to write repeatable tests" +SRC_URI="https://github.com/${PN}-team/${MY_PN}/archive/r${PV}.tar.gz -> ${MY_P}.tar.gz" +HOMEPAGE="http://junit.org/" +LICENSE="EPL-1.0" +SLOT="4" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="examples" + +CDEPEND="dev-java/hamcrest-core:1.3" + +RDEPEND=">=virtual/jre-1.8 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.8 + ${CDEPEND}" + +S="${WORKDIR}/${MY_P}" +JAVA_SRC_DIR="src/main/java" +JAVA_GENTOO_CLASSPATH="hamcrest-core-1.3" + +java_prepare() { + rm -v lib/*.jar || die +} + +src_compile() { + java-pkg-simple_src_compile + java-pkg_addres ${PN}.jar src/main/resources +} + +src_install() { + java-pkg-simple_src_install + dodoc {acknowledgements,{LEGACY_,}CODING_STYLE,NOTICE,to-do}.txt {CONTRIBUTING,README,doc/ReleaseNotes${PV}}.md + use examples && java-pkg_doexamples src/test/java/org/junit/samples +} + +src_test() { + cd src/test/java || die + + local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars ${JAVA_GENTOO_CLASSPATH})" + + ejavac -cp "${CP}" -d . $(find * -name "*.java") + java -cp "${CP}" -Djava.awt.headless=true org.junit.runner.JUnitCore junit.tests.AllTests || die "Running junit failed" +} |