summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2008-10-22 14:39:48 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2008-10-22 14:39:48 +0000
commit8e7d49daf50352b24d07de1ac0c511a261afc233 (patch)
treeb67a32cff74ba9bf18e63381f88bb7dd4fd99e04 /dev-java/junit
parentAdd a patch from debian (#243214) (diff)
downloadhistorical-8e7d49daf50352b24d07de1ac0c511a261afc233.tar.gz
historical-8e7d49daf50352b24d07de1ac0c511a261afc233.tar.bz2
historical-8e7d49daf50352b24d07de1ac0c511a261afc233.zip
Version bump
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64
Diffstat (limited to 'dev-java/junit')
-rw-r--r--dev-java/junit/ChangeLog7
-rw-r--r--dev-java/junit/Manifest4
-rw-r--r--dev-java/junit/junit-4.5.ebuild77
3 files changed, 86 insertions, 2 deletions
diff --git a/dev-java/junit/ChangeLog b/dev-java/junit/ChangeLog
index 995a04256155..3d19599207f4 100644
--- a/dev-java/junit/ChangeLog
+++ b/dev-java/junit/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/junit
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/junit/ChangeLog,v 1.44 2008/05/23 19:33:41 ken69267 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/junit/ChangeLog,v 1.45 2008/10/22 14:39:48 fordfrog Exp $
+
+*junit-4.5 (22 Oct 2008)
+
+ 22 Oct 2008; Miroslav Šulc <fordfrog@gentoo.org> +junit-4.5.ebuild:
+ Version bump
23 May 2008; Kenneth Prugh <ken69267@gentoo.org> junit-3.8.2-r1.ebuild:
amd64 stable, bug #217448
diff --git a/dev-java/junit/Manifest b/dev-java/junit/Manifest
index 829ea9a16ca5..a7690c9ea6b4 100644
--- a/dev-java/junit/Manifest
+++ b/dev-java/junit/Manifest
@@ -2,8 +2,10 @@ AUX junit-3.8.2-build.xml 3179 RMD160 218ac28d9c167b719f6ace32479dd559b3ed010e S
DIST junit3.8.1.zip 441665 RMD160 d9f63f651dd0954ffca8975a8bcf2e53c6b14574 SHA1 049bcda1172e4190925d0d343fcc32158d4f1089 SHA256 884953028bc3d2d554f99b5f627a84d7f92a42754560c63829b0ab732ff9bab8
DIST junit3.8.2.zip 461426 RMD160 c66d64d8aa738460490e62fd332c112076d9b662 SHA1 701578302e244e5173dca3040cce0774a5c39645 SHA256 aae23d20e6f4dc45b4bf0b10fedcbd209c100342a0cafce1aa07d2da6da1f24a
DIST junit4.4.zip 813114 RMD160 915d20222030f5678a2d74cf07080a305c0c1407 SHA1 83be34288bf8e595a6eb5a1de9c6cd96042d8c32 SHA256 9bbe7c16b122acd9d918d86ddab8b77836ffb03f9ceb2f0379be653fdc738b6d
+DIST junit4.5.zip 1179602 RMD160 3c5900d6f7d854be2648ee705f95e090dc44f6b0 SHA1 75d642adaf15091c7ca9ed54f0f2f058bd9ec653 SHA256 673d5aa30b5a750346fd95f42d7d665519428e2555fd5344f730009e9cae7ace
EBUILD junit-3.8.1-r3.ebuild 1033 RMD160 985f4040b645214ec0425ace012872880a333b85 SHA1 b9a07ba172b78330685b59662fcc0401380fbae0 SHA256 20af0880778366fd31ae7e6a405adb6db40daa364ff7fb8dc08b962f2419498b
EBUILD junit-3.8.2-r1.ebuild 1008 RMD160 a4bfa28999a40c5d97f2b76052e799867694661b SHA1 ee030ffc47561441e19371df944423dda7146c70 SHA256 b8138b1a926763317c84091bf629dc30d5a0f81e13cd0b2c4f508b5600dfbb94
EBUILD junit-4.4-r1.ebuild 2151 RMD160 db4fbcbac8abb2484d4302c84e2161783810f146 SHA1 cd6b32ec7b4b539997278a4f5507dd05a63fbca7 SHA256 2460a0c382ded854d17d1addae8997b84e3a5da7b52bb78ced92805df2ce2c39
-MISC ChangeLog 6197 RMD160 79607ffbc998b921ad8717acc1425bd8c3c40ba0 SHA1 59899cb6c5cfd420326c924166a451f6a4977ff1 SHA256 05ff756d07ae82cd2e9d950e2dcdc49a032c84dc6a39d9ce9c835de2e35f72dc
+EBUILD junit-4.5.ebuild 2046 RMD160 8612097dae26ba8c7f604f7cf8f53c6c0e4c2fd6 SHA1 a9596ef5b8a26f675b5937b49786bd27115c01e1 SHA256 ff6b2ab72f44eff81083511b47420bc95fbeb117b64685515f9aa3e06b288fc4
+MISC ChangeLog 6310 RMD160 82b7a2867dc33d9920515df8d6bdcaec7653fa2c SHA1 f5474463b8bcb77d86aa0f337d2c2a30f23fabeb SHA256 ad3694e6fc3fab278dc00b39f951fcb43237d845dfefc29871611f47ebc355b1
MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9
diff --git a/dev-java/junit/junit-4.5.ebuild b/dev-java/junit/junit-4.5.ebuild
new file mode 100644
index 000000000000..75e43eacb46e
--- /dev/null
+++ b/dev-java/junit/junit-4.5.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/junit/junit-4.5.ebuild,v 1.1 2008/10/22 14:39:48 fordfrog Exp $
+
+# WARNING: JUNIT.JAR IS _NOT_ SYMLINKED TO ANT-CORE LIB FOLDER AS JUNIT3 IS
+
+JAVA_PKG_IUSE="doc examples source test"
+
+inherit java-pkg-2 java-ant-2
+
+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="4"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+CDEPEND="dev-java/hamcrest-core"
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.5
+ userland_GNU? ( >=sys-apps/findutils-4.3 )
+ app-arch/unzip
+ ${CDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ mkdir -p src/main/java src/test/java || die
+ unzip -qq -d src/main/java ${P}-src.jar || die "unzip failed"
+
+ # fix javadoc compilation
+ if use doc ; then
+ cp "${S}"/javadoc/stylesheet.css "${S}" || die
+ fi
+
+ rm -rf javadoc temp.hamcrest.source *.jar || die
+ find . -name "*.class" -delete || die
+}
+
+src_compile() {
+ eant build jars -Dhamcrestlib=$(java-pkg_getjars hamcrest-core) $(use_doc javadoc)
+}
+
+src_test() {
+ mkdir classes || die
+ cd junit/tests || die
+ local cp=$(java-pkg_getjars hamcrest-core):${S}/${PN}${PV}/${PN}-dep-${PV}.jar
+ ejavac -sourcepath java -classpath ${cp} -d "${S}"/classes $(find -name "*.java")
+
+ cd "${S}"/classes || die
+ for FILE in $(find . -name "AllTests\.class"); do
+ local CLASS=$(echo ${FILE} | sed -e "s/\.class//" | sed -e "s%/%.%g" | sed -e "s/\.\.//")
+ java -classpath .:${cp} org.junit.runner.JUnitCore ${CLASS} || die "Test ${CLASS} failed"
+ done
+}
+
+src_install() {
+ java-pkg_newjar ${PN}${PV}/${PN}-dep-${PV}.jar
+ dodoc README.html doc/ReleaseNotes${PV}.txt || die
+
+ if use doc; then
+ dohtml -r doc/*
+ java-pkg_dojavadoc ${PN}${PV}/javadoc
+ fi
+
+ if use examples; then
+ java-pkg_doexamples org/junit/samples
+ fi
+
+ use source && java-pkg_dosrc src/org src/junit
+}