From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-java/junit/Manifest | 7 +++ dev-java/junit/files/junit-3.8.2-build.xml | 90 ++++++++++++++++++++++++++++++ dev-java/junit/junit-3.8.2-r1.ebuild | 44 +++++++++++++++ dev-java/junit/junit-3.8.2-r2.ebuild | 42 ++++++++++++++ dev-java/junit/junit-4.12-r1.ebuild | 54 ++++++++++++++++++ dev-java/junit/metadata.xml | 12 ++++ 6 files changed, 249 insertions(+) create mode 100644 dev-java/junit/Manifest create mode 100644 dev-java/junit/files/junit-3.8.2-build.xml create mode 100644 dev-java/junit/junit-3.8.2-r1.ebuild create mode 100644 dev-java/junit/junit-3.8.2-r2.ebuild create mode 100644 dev-java/junit/junit-4.12-r1.ebuild create mode 100644 dev-java/junit/metadata.xml (limited to 'dev-java/junit') diff --git a/dev-java/junit/Manifest b/dev-java/junit/Manifest new file mode 100644 index 000000000000..eec4fab4a92f --- /dev/null +++ b/dev-java/junit/Manifest @@ -0,0 +1,7 @@ +AUX junit-3.8.2-build.xml 3179 BLAKE2B df7dd61b577d415f807d234fe41255bda57235465ec6a96dc793f3c4852278978f4c2be6df89f4910b96b450a280bb0e9bcaf50463430f4769c116bca4ea868c SHA512 6d2c74c70569feed235db70fdb646c813ce9453b5e7fae6d5fe8c818d0ce820fc155eef8426d8f3263cff45cd4b78542d5524aa1d5efbb84e43698c1d4466f55 +DIST junit3.8.2.zip 461426 BLAKE2B 8fbef1ccdf7f71c611976d63f45838f4cb2564da5f5064e7abc39931a3c99039a40660093aba2cc3c70af761171125f434c16c52021226f2e92fdf23597dbf25 SHA512 f203332ccc2bdc38c683a95bdbe448f38cbfbeea81ecc431bf9ebf0a3292f0150fcfe5cd5dd6da481be034366820f95775a33581931aed9e4cc12a6ff27e3930 +DIST junit4-r4.12.tar.gz 443804 BLAKE2B b36248266eb83d8f2dfb1c525f635a4fce5a46c6042652ef27a5d405b83c471848edf83e799a4d1e950d83e127caa288f453edf19959a9a8aa5a9e26eeb4e771 SHA512 ba612598fa6c328e8f4bbea3afda08b459a110837ca3805a62e811535f7bca8d04509f8fe51a413c7bc855fccee35d6946c9eece4dd01726d12454c002a4de32 +EBUILD junit-3.8.2-r1.ebuild 1003 BLAKE2B 91753d0e74ce8efd135f394df69342ffdb113bbba628ebd8a5baf4af8e1a967c6e319a05192b3d35d4717e32b1324afcfd45a0115c284c8a59c8d83320a13598 SHA512 e6ed543345ffc53cc86e1a6582ece77660c9514e522d5f7b46038281ed13a67d70ee5263eb420f11a7b9a1155255161cb0beb40a639c3ddc112273eec3ae4050 +EBUILD junit-3.8.2-r2.ebuild 831 BLAKE2B e07f45d637d4aaee89c2ff51f168fd610cc6bb655b2da6efcaa3bdc8392b4a89c860c682a50fd1e4d3bcbea693d61142c7b8c95497f6f1cfe81d7cf2bf9f00d1 SHA512 2db4e78da194aaab043bca14d6679f5ad6b33b88fc01a55ad828bc9c43e47b3de1ba7a3c6e6bd8c867faceaf30cc45debdd9a9fab86c7a0d2b7153cb986b4c06 +EBUILD junit-4.12-r1.ebuild 1464 BLAKE2B c5c998dca82ed919aef941435b371d5f5788afbbe952b22f976740d53a37d8daeb6851e5c74c2d2ac6d9c066cb75f777372f272c5af4095e59f0adb80b980316 SHA512 a2f0b67b093f7bc86ac7a671bd66b69e67d561140ceffbf21e5ac5a3ebe935cb2bc3907b5f3bfae2248f6f6b2561d02e4afd327877adc8f761b393687306ee29 +MISC metadata.xml 367 BLAKE2B 7cd798ae028c83275e61522be10a35abba419a823042be242ee7fdf7e0ccfc978e817affaaf154b8d0723f502499f17bb81b0622fa493dc812b82ad23dfa647b SHA512 44e492dfaaa9faf54f4aaf420d5816da8d117951d6a52e37c76a9e533fcefbeaa3c44bafa4d525f878deb3af2b7f426e72a62b16464e85ce9690c61b1f0da71f diff --git a/dev-java/junit/files/junit-3.8.2-build.xml b/dev-java/junit/files/junit-3.8.2-build.xml new file mode 100644 index 000000000000..4e47d949bdaf --- /dev/null +++ b/dev-java/junit/files/junit-3.8.2-build.xml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/junit/junit-3.8.2-r1.ebuild b/dev-java/junit/junit-3.8.2-r1.ebuild new file mode 100644 index 000000000000..309adf1024bf --- /dev/null +++ b/dev-java/junit/junit-3.8.2-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=0 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_P=${P/-/} +S=${WORKDIR}/${MY_P} +DESCRIPTION="Simple framework to write repeatable tests" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" +HOMEPAGE="http://www.junit.org/" +LICENSE="CPL-1.0" +SLOT="0" +KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip" +RDEPEND=">=virtual/jre-1.4" + +src_unpack() { + unpack ${A} + cd "${S}" + + unzip src.jar || die + rm -v *.jar || die + rm -rf javadoc ${PN}${PV} || die + cp "${FILESDIR}/${P}-build.xml" build.xml || die +} + +EANT_BUILD_TARGET="dist" + +src_install() { + use source && java-pkg_dosrc ${PN} + cd ${MY_P} + java-pkg_dojar ${PN}.jar + dohtml README.html cpl-v10.html || die + if use doc; then + dohtml -r doc || die + java-pkg_dojavadoc javadoc + fi +} diff --git a/dev-java/junit/junit-3.8.2-r2.ebuild b/dev-java/junit/junit-3.8.2-r2.ebuild new file mode 100644 index 000000000000..362aa0129f62 --- /dev/null +++ b/dev-java/junit/junit-3.8.2-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +MY_P=${P/-/} + +DESCRIPTION="Simple framework to write repeatable tests" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" +HOMEPAGE="http://www.junit.org/" +LICENSE="CPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +DEPEND=">=virtual/jdk-1.6" +RDEPEND=">=virtual/jre-1.6" + +DOCS=( README.html cpl-v10.html ) + +JAVA_SRC_DIR="${PN}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" || die + unzip src.jar || die +} + +src_prepare() { + default + java-pkg_clean +} + +src_install() { + java-pkg-simple_src_install + einstalldocs +} diff --git a/dev-java/junit/junit-4.12-r1.ebuild b/dev-java/junit/junit-4.12-r1.ebuild new file mode 100644 index 000000000000..f3190da6c338 --- /dev/null +++ b/dev-java/junit/junit-4.12-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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 ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="examples" + +CDEPEND="dev-java/hamcrest-core:1.3" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + ${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" +} diff --git a/dev-java/junit/metadata.xml b/dev-java/junit/metadata.xml new file mode 100644 index 000000000000..9c59435e026b --- /dev/null +++ b/dev-java/junit/metadata.xml @@ -0,0 +1,12 @@ + + + + + java@gentoo.org + Java + + + junit-team/junit + junit + + -- cgit v1.2.3