summaryrefslogtreecommitdiff
path: root/dev-java/junit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/junit
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/junit')
-rw-r--r--dev-java/junit/Manifest9
-rw-r--r--dev-java/junit/files/junit-3.8.2-build.xml90
-rw-r--r--dev-java/junit/junit-3.8.2-r1.ebuild42
-rw-r--r--dev-java/junit/junit-3.8.2-r2.ebuild42
-rw-r--r--dev-java/junit/junit-4.12-r1.ebuild54
-rw-r--r--dev-java/junit/metadata.xml12
6 files changed, 249 insertions, 0 deletions
diff --git a/dev-java/junit/Manifest b/dev-java/junit/Manifest
new file mode 100644
index 000000000000..4e8cf56a0267
--- /dev/null
+++ b/dev-java/junit/Manifest
@@ -0,0 +1,9 @@
+AUX junit-3.8.2-build.xml 3179 SHA256 ab78187535ef97b9984d969f313aff39944efbb57427071a8851f973dedf9042 SHA512 6d2c74c70569feed235db70fdb646c813ce9453b5e7fae6d5fe8c818d0ce820fc155eef8426d8f3263cff45cd4b78542d5524aa1d5efbb84e43698c1d4466f55 WHIRLPOOL f73a9854484abdbbe5a5a04a425627acdb76eb0202bb4b9e1d2c44ba6e20e9a8d022dad15b4e49d75c7584beefd7fc026936b79ddebe6e105ce15cceae157e6c
+DIST junit3.8.2.zip 461426 SHA256 aae23d20e6f4dc45b4bf0b10fedcbd209c100342a0cafce1aa07d2da6da1f24a SHA512 f203332ccc2bdc38c683a95bdbe448f38cbfbeea81ecc431bf9ebf0a3292f0150fcfe5cd5dd6da481be034366820f95775a33581931aed9e4cc12a6ff27e3930 WHIRLPOOL 284a51a8b659b8dbce378a381475ae2bcedb78231cfe5435382053335ebe5d44b4eec90b9f14bc510fd5b9060b44672896fe0bfad57743e5aca0128f006781d8
+DIST junit4-r4.12.tar.gz 443804 SHA256 9a5b458258c6537df0d2df7122a06895a26b9c7c8061e5991a0be81d76b10d24 SHA512 ba612598fa6c328e8f4bbea3afda08b459a110837ca3805a62e811535f7bca8d04509f8fe51a413c7bc855fccee35d6946c9eece4dd01726d12454c002a4de32 WHIRLPOOL 14eda410942900d8be21ea29096c387384634ce9f679348d5bf4dbb11d22e23e1be990486ae8a6004b95f3a9383644e4f70988f84312cf16d5e4462c64b26814
+EBUILD junit-3.8.2-r1.ebuild 1017 SHA256 328b41407b6b2520741112e3c3f73edd88827d5fcbbf92ea4ffb7cf61c6a4586 SHA512 bdf20d5bb244732f1b63b93644dc21dd2544187e020c20af5307386bfd459b232be993adaa4ac0c9be68aac97eb4c794c78e285c9d3535002dc4af1268d456a0 WHIRLPOOL e7a384d889bd8683c953536ce255bcd423ec2e7040eb2991986ee50585c9e8886b39a17c830b9fc01b18b280e83d1239cccf9a5235c0075e4eaf3f7a70833d15
+EBUILD junit-3.8.2-r2.ebuild 853 SHA256 bea62a2afd54263586241110de3a17b063a6a941ee18fab685a6fccd9b2b777a SHA512 8e738e576bf5b9cd56571f605e6de9994cbeb825b6033caae676e2e7093fc54cc25fc6225a1fda3e6438a13f6f844736058c68b57b1bb6427d3291b052973f26 WHIRLPOOL 443dabf72e87decdf7f1329fa0554909c1c6bf78852fefc5b991401f3503833f3867821924137b564ca067faf0d0f66817d8a11d38aa7c4fdc476a24e7f751c1
+EBUILD junit-4.12-r1.ebuild 1486 SHA256 f49149eb7764e3b04d06be44ce2095d0aa529d1c9e124fb99f91703178ee82d0 SHA512 0ce9332b550ebe45b7f09905c776bd9ca8f0a2d3cbdc0f608cced2858a82e452d8f11f3b83fd8c1061aa49a5a639a888d28e2aad4215661afff221d9f01bd9cc WHIRLPOOL d81ff3a4df8806c9d51996c91ff2a14a0ea14accaddff60ad377281152aacb28e62c2011a25716b263afae9547481382d8f0606a32a0b471425c24371f6f9422
+MISC ChangeLog 4497 SHA256 28f3960dfa9139d1e47120a58eb8e31a1da7b2b14cbddf3d9425f965f7027194 SHA512 29c91f0061e78d2567887a8761f382c366a287a592088501d2be9dd4cab6ac62b6c1c1a204bfc75f05b3676332e860fbfbe4950d47d41f3479f671b07117d2c9 WHIRLPOOL bfe2e12b7b7a2331555d8c7dd8119524e766e0cf49ce2d23624f6621e4cb3e1cf3b39a7a03a886438dff01ed2365340d710a3972f1f7e4a64a5711570ae7bec0
+MISC ChangeLog-2015 12318 SHA256 ea6cb94a9c5fd2aa511039c157aefd368a7b017fe4844cf70f12b575127a0766 SHA512 e1481610795a58f9fbf28823cbac63b2afee57bf1e2d872a5c36c2c04d5e1641a986ce0319a6e52f9589b0f2e02b61004e7c0cd748fa361efbbd379b0066e9af WHIRLPOOL 792f66175f5e424364c8d5fa5a014f5dd13450fb751b616031453020612cf617252eb151ff15a09a9f44eaaa5a0a3c983e0890db285795cb2cc81396aba86821
+MISC metadata.xml 367 SHA256 b203981905872f1125011ff262f8a1230ecbd51c2f1fd1f2e9438ae9f3a2aac0 SHA512 44e492dfaaa9faf54f4aaf420d5816da8d117951d6a52e37c76a9e533fcefbeaa3c44bafa4d525f878deb3af2b7f426e72a62b16464e85ce9690c61b1f0da71f WHIRLPOOL 337b42e5045a2bb71792eb8a743545b8fb1f7bdd241e92bc7f5f2fb62b57d4c71ad942cf2c7beaf4d397b31192a15193384c3936d1c8b40e680078008df8cd18
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 @@
+<?xml version="1.0" ?>
+<!-- JUnit build script using ant 1.4 --><project basedir="." default="dist" name="junit">
+ <property file="${user.home}/.junit.properties"/>
+ <property name="build.compiler" value="classic"/>
+ <property name="version" value="3.8.2"/>
+ <property name="dist" value="junit${version}"/>
+ <property name="versionfile" value="junit/runner/Version.java"/>
+ <property name="zipfile" value="${dist}.zip"/>
+ <target name="init">
+ <tstamp/>
+ </target>
+
+ <target depends="init" name="versiontag">
+ <filter token="version" value="${version}"/>
+ <copy file="${versionfile}" filtering="on" tofile="${versionfile}tmp"/>
+ <move file="${versionfile}tmp" tofile="${versionfile}"/>
+ </target>
+
+ <target depends="versiontag" name="build">
+ <javac debug="on" destdir="." source="1.3" srcdir="." target="1.3"/>
+ </target>
+
+ <target depends="build" name="dist">
+ <delete dir="${dist}"/>
+ <mkdir dir="${dist}"/>
+ <jar basedir="." excludes="**/*.jar, junit/tests/**, junit/samples/**, **/*.class, doc/**, README.html, .classpath, .project, cpl-v10.html" jarfile="${dist}/src.jar"/>
+ <jar basedir="." excludes="**/*.jar, junit/tests/**, junit/samples/**, **/*.java, doc/**, README.html, build.xml, jar-manifest.txt, .classpath, .project, cpl-v10.html" jarfile="${dist}/junit.jar"/>
+ <copy todir="${dist}/junit/samples">
+ <fileset dir="junit/samples"/>
+ </copy>
+ <copy todir="${dist}/junit/tests">
+ <fileset dir="junit/tests"/>
+ </copy>
+
+
+ <delete file="${dist}/junit/tests/runner/test.jar"/>
+ <jar basedir="." includes="junit/tests/runner/LoadedFromJar.class" jarfile="${dist}/junit/tests/runner/test.jar"/>
+
+ <copy file="README.html" tofile="${dist}/README.html"/>
+ <copy file="cpl-v10.html" tofile="${dist}/cpl-v10.html"/>
+
+ <java classname="junit.textui.TestRunner" fork="yes">
+ <arg value="junit.samples.AllTests"/>
+ <classpath>
+ <pathelement location="${dist}"/>
+ <pathelement location="${dist}/junit.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="javadoc">
+ <mkdir dir="${dist}/javadoc"/>
+ <javadoc author="false" destdir="${dist}/javadoc" packagenames="junit.framework.*, junit.extensions.*" source="1.3" sourcepath="." use="false" version="false" windowtitle="JUnit API"/>
+ <copy todir="${dist}/doc">
+ <fileset dir="doc"/>
+ </copy>
+ </target>
+
+ <target depends="dist" name="zip">
+ <zip basedir="." includes="${dist}/**" zipfile="${zipfile}"/>
+ </target>
+
+ <target depends="dist" name="awtui">
+ <java classname="junit.awtui.TestRunner" fork="yes">
+ <arg value="junit.samples.AllTests"/>
+ <classpath>
+ <pathelement location="${dist}"/>
+ <pathelement location="${dist}/junit.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target depends="dist" name="swingui">
+ <java classname="junit.swingui.TestRunner" fork="yes">
+ <arg value="junit.samples.AllTests"/>
+ <classpath>
+ <pathelement location="${dist}"/>
+ <pathelement location="${dist}/junit.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete dir="${dist}" quiet="true"/>
+ <delete file="${zipfile}" quiet="true"/>
+ <delete>
+ <fileset dir="${basedir}" includes="**/*.class"/>
+ </delete>
+ </target>
+</project>
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..3a9ff4344dd8
--- /dev/null
+++ b/dev-java/junit/junit-3.8.2-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-fbsd ~x86-fbsd ~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..29a5fb5888e6
--- /dev/null
+++ b/dev-java/junit/junit-3.8.2-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 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-fbsd ~x86-fbsd ~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..c022aac54dbd
--- /dev/null
+++ b/dev-java/junit/junit-4.12-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 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-fbsd ~x86-fbsd ~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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">junit-team/junit</remote-id>
+ <remote-id type="sourceforge">junit</remote-id>
+ </upstream>
+</pkgmetadata>