summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/junit
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/junit')
-rw-r--r--dev-java/junit/Manifest4
-rw-r--r--dev-java/junit/files/gentoo-manifest.mf1
-rw-r--r--dev-java/junit/files/junit-3.8.2-build.xml90
-rw-r--r--dev-java/junit/files/junit-4.11-do-not-unpack-hamcrest-sources.patch19
-rw-r--r--dev-java/junit/junit-3.8.2-r1.ebuild43
-rw-r--r--dev-java/junit/junit-4.10.ebuild87
-rw-r--r--dev-java/junit/junit-4.11.ebuild101
-rw-r--r--dev-java/junit/junit-4.12-r1.ebuild53
-rw-r--r--dev-java/junit/metadata.xml8
9 files changed, 406 insertions, 0 deletions
diff --git a/dev-java/junit/Manifest b/dev-java/junit/Manifest
new file mode 100644
index 000000000000..f1c65cbb34a1
--- /dev/null
+++ b/dev-java/junit/Manifest
@@ -0,0 +1,4 @@
+DIST junit3.8.2.zip 461426 SHA256 aae23d20e6f4dc45b4bf0b10fedcbd209c100342a0cafce1aa07d2da6da1f24a SHA512 f203332ccc2bdc38c683a95bdbe448f38cbfbeea81ecc431bf9ebf0a3292f0150fcfe5cd5dd6da481be034366820f95775a33581931aed9e4cc12a6ff27e3930 WHIRLPOOL 284a51a8b659b8dbce378a381475ae2bcedb78231cfe5435382053335ebe5d44b4eec90b9f14bc510fd5b9060b44672896fe0bfad57743e5aca0128f006781d8
+DIST junit4.10.zip 1781594 SHA256 49d1e176f518730c0d34a361932d9bd79d1bebd555126d95337ad7ad6fc9c6b6 SHA512 07cb518b684a254325d8972132f44dda8f8b52b627232b480bd90766a0f14afc6d8751e44b4162305cf9ab3cedd2858fcd7d388ab01b4f67b706dddb696a8cf6 WHIRLPOOL 72e3f6a3615d1e7f98ac24e7e7f4f634c93cdfdadcaafc0d59d7a1c8b218f019f821d2683c932f3716f1d69b9f0cf5c0fd664be6c35a0f297976b8a745ef612b
+DIST junit4.11.zip 2043600 SHA256 0bbf3818026984fd0c9c4f3cb1a9083d2be545147e13ba1cb101ee14161a3487 SHA512 947ba504aa009afc0773189e6ec89e34d5ff844430b0656cabc7b9f3fe5651c08b5b3c25b848454ee7f0a85e7573155d2c0c86e0ca5502c6e1bb573c970ade62 WHIRLPOOL bf21e351dd47099d3e7c280fe62192aa175c1f251ae4157971cfb69602af2724e6dfcb0592bb6fc8227548abe713c9f1056a22ee49446f48bb00e19ef0fa537b
+DIST r4.12.zip 672377 SHA256 519971406171c580304fdf7b582b5d1df3ff396bb8855a70cb68592f3d53476b SHA512 773f38476cc89f352fe9518f9de27dac32afbd501b498c3a876b7d79ee45a1c567f1ee2064067bc0721dcc06081b3faffe55fe74fbe49d2ce72884b39a2b76f6 WHIRLPOOL f25480ffe47fe615fc7cd7016bf42e037a307879214e21f2b487b4e3d667bb9209f99d372774e5b8e060e0d2678f31d3e10a9b1ea2292a7734f7f26102e3f0ff
diff --git a/dev-java/junit/files/gentoo-manifest.mf b/dev-java/junit/files/gentoo-manifest.mf
new file mode 100644
index 000000000000..f78474422035
--- /dev/null
+++ b/dev-java/junit/files/gentoo-manifest.mf
@@ -0,0 +1 @@
+Class-Path: ../../hamcrest-core/lib/hamcrest-core.jar
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/files/junit-4.11-do-not-unpack-hamcrest-sources.patch b/dev-java/junit/files/junit-4.11-do-not-unpack-hamcrest-sources.patch
new file mode 100644
index 000000000000..d2d6f855323c
--- /dev/null
+++ b/dev-java/junit/files/junit-4.11-do-not-unpack-hamcrest-sources.patch
@@ -0,0 +1,19 @@
+--- a/build.xml 2012-11-14 20:23:00.000000000 +0100
++++ b/build.xml 2013-06-15 23:12:30.981988033 +0200
+@@ -138,7 +138,7 @@
+ </exec>
+ </target>
+
+- <target name="javadoc" depends="unjar.hamcrest">
++ <target name="javadoc">
+ <javadoc destdir="${javadocdir}"
+ author="false"
+ version="false"
+@@ -151,7 +151,6 @@
+ <excludepackage name="org.junit.experimental.theories.internal.*" />
+
+ <sourcepath location="${src}" />
+- <sourcepath location="${hamcrestsrc}" />
+ <link href="http://java.sun.com/javase/6/docs/api/" />
+ </javadoc>
+ </target>
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..72f66e7316d6
--- /dev/null
+++ b/dev-java/junit/junit-3.8.2-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~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-4.10.ebuild b/dev-java/junit/junit-4.10.ebuild
new file mode 100644
index 000000000000..4a05bd3ad113
--- /dev/null
+++ b/dev-java/junit/junit-4.10.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# WARNING: JUNIT.JAR IS _NOT_ SYMLINKED TO ANT-CORE LIB FOLDER AS JUNIT3 IS
+
+EAPI="3"
+JAVA_PKG_IUSE="doc examples source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Simple framework to write repeatable tests"
+SRC_URI="mirror://github/KentBeck/${PN}/${PN}${PV}.zip"
+HOMEPAGE="http://www.junit.org/"
+LICENSE="CPL-1.0"
+SLOT="4"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+CDEPEND="dev-java/hamcrest-core:0"
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.5
+ userland_GNU? ( >=sys-apps/findutils-4.3 )
+ ${CDEPEND}"
+
+S="${WORKDIR}/${PN}${PV}"
+
+EANT_BUILD_TARGET="jars"
+
+src_unpack() {
+ default
+
+ # Unpack source JAR
+ mkdir -p "${S}/src/main/java" "${S}/src/test/java" \
+ || die "Unable to create source directories"
+ pushd "${S}/src/main/java" >/dev/null
+ jar xf "${S}/${P}-src.jar" || die "Unable to unpack sources."
+ popd >/dev/null
+
+ # copy Gentoo manifest to working directory
+ cp "${FILESDIR}/gentoo-manifest.mf" "${S}" || die
+}
+
+java_prepare() {
+ # fix javadoc compilation
+ if use doc ; then
+ cp "${S}"/javadoc/stylesheet.css "${S}" \
+ || die "Unable to copy Javdoc stylesheet"
+ fi
+
+ # remove binary and other generated files
+ rm -rf javadoc temp.hamcrest.source *.jar \
+ || die "Unable to clean generated files."
+ find . -name "*.class" -delete \
+ || die "Unable to remove distributed class files"
+
+ # Let Ant know where its hamcrest went
+ EANT_EXTRA_ARGS="-Dhamcrestlib=$(java-pkg_getjars hamcrest-core)"
+
+ # Add Gentoo manifest information to generated JAR files
+ java-ant_xml-rewrite -f build.xml -c \
+ -e jar -a manifest -v "gentoo-manifest.mf"
+}
+
+src_test() {
+ mkdir classes || die "Unable to create build directory for tests"
+
+ local cp=$(java-pkg_getjars hamcrest-core):${S}/${PN}${PV}/${PN}-dep-${PV}.jar
+ ejavac -classpath ${cp} -d classes $(find junit/tests org/junit/tests -name "*.java")
+
+ java -classpath ${cp}:classes org.junit.runner.JUnitCore junit.tests.AllTests \
+ || die "Tests failed."
+}
+
+src_install() {
+ java-pkg_newjar ${PN}${PV}/${PN}-dep-${PV}.jar
+ dodoc README.html doc/ReleaseNotes${PV}.txt || die
+
+ use examples && java-pkg_doexamples org/junit/samples
+ use source && java-pkg_dosrc src/main/java/org src/main/java/junit
+
+ if use doc; then
+ dohtml -r doc/*
+ java-pkg_dojavadoc ${PN}${PV}/javadoc
+ fi
+}
diff --git a/dev-java/junit/junit-4.11.ebuild b/dev-java/junit/junit-4.11.ebuild
new file mode 100644
index 000000000000..deba38725578
--- /dev/null
+++ b/dev-java/junit/junit-4.11.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# WARNING: JUNIT.JAR IS _NOT_ SYMLINKED TO ANT-CORE LIB FOLDER AS JUNIT3 IS
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc examples source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Simple framework to write repeatable tests"
+SRC_URI="mirror://github/${PN}-team/${PN}/${PN}${PV}.zip"
+HOMEPAGE="http://www.junit.org/"
+
+LICENSE="CPL-1.0"
+SLOT="4"
+
+KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+
+CDEPEND="dev-java/hamcrest-core:1.3"
+
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+
+DEPEND=">=virtual/jdk-1.5
+ userland_GNU? ( >=sys-apps/findutils-4.3 )
+ ${CDEPEND}"
+
+S="${WORKDIR}/${PN}${PV}"
+
+EANT_BUILD_TARGET="jars samples-and-tests"
+
+src_unpack() {
+ default
+
+ # Unpack the source JAR.
+ mkdir -p "${S}/src/main/java" "${S}/src/test/java" \
+ || die "Unable to create source directories"
+
+ pushd "${S}/src/main/java" > /dev/null
+ jar xf "${S}/${P}-src.jar" || die "Unable to unpack sources."
+ popd >/dev/null
+
+ # Copy the Gentoo manifest to the working directory.
+ cp "${FILESDIR}/gentoo-manifest.mf" "${S}" || die
+}
+
+java_prepare() {
+ epatch "${FILESDIR}"/${P}-do-not-unpack-hamcrest-sources.patch
+
+ mkdir lib || die
+ java-pkg_jar-from --into lib hamcrest-core{-1.3,.jar,-1.3.jar}
+
+ # Fix javadoc compilation.
+ if use doc ; then
+ cp "${S}"/javadoc/stylesheet.css "${S}" \
+ || die "Unable to copy Javdoc stylesheet"
+ fi
+
+ # Remove binary and other generated files.
+ rm -rf javadoc temp.hamcrest.source *.jar \
+ || die "Unable to clean generated files."
+ find . -name "*.class" -delete \
+ || die "Unable to remove distributed class files"
+
+ # Let Ant know where its hamcrest went.
+ EANT_EXTRA_ARGS="-Dhamcrestlib=$(java-pkg_getjars hamcrest-core-1.3)"
+
+ # Add Gentoo manifest information to generated JAR files.
+ java-ant_xml-rewrite -f build.xml -c \
+ -e jar -a manifest -v "gentoo-manifest.mf"
+}
+
+src_test() {
+ mkdir classes || die "Unable to create build directory for tests."
+
+ local cp=$(java-pkg_getjars hamcrest-core-1.3):"${S}"/target/main
+
+ ejavac -classpath ${cp} \
+ -d classes $(find org/junit/internal -name "*.java")
+ ejavac -classpath ${cp}:"${S}/classes" \
+ -d classes $(find junit/tests org/junit/tests -name "*.java")
+
+ java -classpath ${cp}:classes \
+ org.junit.runner.JUnitCore junit.tests.AllTests || die "Tests failed."
+}
+
+src_install() {
+ java-pkg_newjar ${PN}${PV}-SNAPSHOT/${PN}-dep-${PV}-SNAPSHOT.jar
+ dodoc README.html doc/ReleaseNotes${PV}.txt
+
+ use examples && java-pkg_doexamples org/junit/samples
+ use source && java-pkg_dosrc src/main/java/org src/main/java/junit
+
+ if use doc; then
+ dohtml -r doc/*
+ java-pkg_dojavadoc ${PN}${PV}-SNAPSHOT/javadoc
+ fi
+}
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..52d77aa27ce3
--- /dev/null
+++ b/dev-java/junit/junit-4.12-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+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/${PN}/archive/r${PV}.zip"
+HOMEPAGE="http://junit.org/"
+LICENSE="EPL-1.0"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~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}/${PN}-r${PV}"
+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..651581830ba9
--- /dev/null
+++ b/dev-java/junit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <upstream>
+ <remote-id type="github">junit-team/junit</remote-id>
+ </upstream>
+</pkgmetadata>