Gentoo Archives: gentoo-commits

From: "Miroslav Sulc (fordfrog)" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/junit: ChangeLog junit-4.10.ebuild
Date: Sun, 25 Dec 2011 21:42:39
Message-Id: 20111225214229.31AE12004B@flycatcher.gentoo.org
1 fordfrog 11/12/25 21:42:29
2
3 Modified: ChangeLog
4 Added: junit-4.10.ebuild
5 Log:
6 dev-java/junit: version bump
7
8 (Portage version: 2.1.10.43/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.63 dev-java/junit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/junit/ChangeLog?rev=1.63&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/junit/ChangeLog?rev=1.63&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/junit/ChangeLog?r1=1.62&r2=1.63
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/junit/ChangeLog,v
20 retrieving revision 1.62
21 retrieving revision 1.63
22 diff -u -r1.62 -r1.63
23 --- ChangeLog 3 May 2011 18:27:50 -0000 1.62
24 +++ ChangeLog 25 Dec 2011 21:42:29 -0000 1.63
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-java/junit
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/junit/ChangeLog,v 1.62 2011/05/03 18:27:50 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-java/junit/ChangeLog,v 1.63 2011/12/25 21:42:29 fordfrog Exp $
30 +
31 +*junit-4.10 (25 Dec 2011)
32 +
33 + 25 Dec 2011; Miroslav Ć ulc <fordfrog@g.o> +junit-4.10.ebuild:
34 + Version bump
35
36 03 May 2011; Fabian Groffen <grobian@g.o> junit-4.8.2-r1.ebuild:
37 Marked ~x64-freebsd
38
39
40
41 1.1 dev-java/junit/junit-4.10.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/junit/junit-4.10.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/junit/junit-4.10.ebuild?rev=1.1&content-type=text/plain
45
46 Index: junit-4.10.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-java/junit/junit-4.10.ebuild,v 1.1 2011/12/25 21:42:29 fordfrog Exp $
51
52 # WARNING: JUNIT.JAR IS _NOT_ SYMLINKED TO ANT-CORE LIB FOLDER AS JUNIT3 IS
53
54 EAPI="3"
55 JAVA_PKG_IUSE="doc examples source test"
56
57 inherit java-pkg-2 java-ant-2
58
59 DESCRIPTION="Simple framework to write repeatable tests"
60 SRC_URI="https://github.com/downloads/KentBeck/${PN}/${PN}${PV}.zip"
61 HOMEPAGE="http://www.junit.org/"
62 LICENSE="CPL-1.0"
63 SLOT="4"
64 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
65 IUSE=""
66
67 CDEPEND="dev-java/hamcrest-core:0"
68 RDEPEND=">=virtual/jre-1.5
69 ${CDEPEND}"
70 DEPEND=">=virtual/jdk-1.5
71 userland_GNU? ( >=sys-apps/findutils-4.3 )
72 ${CDEPEND}"
73
74 S="${WORKDIR}/${PN}${PV}"
75
76 EANT_BUILD_TARGET="jars"
77
78 src_unpack() {
79 default
80
81 # Unpack source JAR
82 mkdir -p "${S}/src/main/java" "${S}/src/test/java" \
83 || die "Unable to create source directories"
84 pushd "${S}/src/main/java" >/dev/null
85 jar xf "${S}/${P}-src.jar" || die "Unable to unpack sources."
86 popd >/dev/null
87
88 # copy Gentoo manifest to working directory
89 cp "${FILESDIR}/gentoo-manifest.mf" "${S}"
90 }
91
92 java_prepare() {
93 # fix javadoc compilation
94 if use doc ; then
95 cp "${S}"/javadoc/stylesheet.css "${S}" \
96 || die "Unable to copy Javdoc stylesheet"
97 fi
98
99 # remove binary and other generated files
100 rm -rf javadoc temp.hamcrest.source *.jar \
101 || die "Unable to clean generated files."
102 find . -name "*.class" -delete \
103 || die "Unable to remove distributed class files"
104
105 # Let Ant know where its hamcrest went
106 EANT_EXTRA_ARGS="-Dhamcrestlib=$(java-pkg_getjars hamcrest-core)"
107
108 # Add Gentoo manifest information to generated JAR files
109 java-ant_xml-rewrite -f build.xml -c \
110 -e jar -a manifest -v "gentoo-manifest.mf"
111 }
112
113 src_test() {
114 mkdir classes || die "Unable to create build directory for tests"
115
116 local cp=$(java-pkg_getjars hamcrest-core):${S}/${PN}${PV}/${PN}-dep-${PV}.jar
117 ejavac -classpath ${cp} -d classes $(find junit/tests -name "*.java")
118
119 java -classpath ${cp}:classes org.junit.runner.JUnitCore junit.tests.AllTests \
120 || die "Tests failed."
121 }
122
123 src_install() {
124 java-pkg_newjar ${PN}${PV}/${PN}-dep-${PV}.jar
125 dodoc README.html doc/ReleaseNotes${PV}.txt || die
126
127 use examples && java-pkg_doexamples org/junit/samples
128 use source && java-pkg_dosrc src/main/java/org src/main/java/junit
129
130 if use doc; then
131 dohtml -r doc/*
132 java-pkg_dojavadoc ${PN}${PV}/javadoc
133 fi
134 }