1 |
ercpe 13/11/25 19:08:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: testng-6.8-r2.ebuild |
5 |
Removed: testng-6.8-r1.ebuild |
6 |
Log: |
7 |
Added ~x86 to testng and added the missing dependency to app-arch/zip |
8 |
|
9 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 77C501ED) |
10 |
|
11 |
Revision Changes Path |
12 |
1.3 dev-java/testng/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/testng/ChangeLog?rev=1.3&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/testng/ChangeLog?rev=1.3&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/testng/ChangeLog?r1=1.2&r2=1.3 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/testng/ChangeLog,v |
21 |
retrieving revision 1.2 |
22 |
retrieving revision 1.3 |
23 |
diff -u -r1.2 -r1.3 |
24 |
--- ChangeLog 24 Oct 2013 19:32:48 -0000 1.2 |
25 |
+++ ChangeLog 25 Nov 2013 19:08:15 -0000 1.3 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for dev-java/testng |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/testng/ChangeLog,v 1.2 2013/10/24 19:32:48 tomwij Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/testng/ChangeLog,v 1.3 2013/11/25 19:08:15 ercpe Exp $ |
31 |
+ |
32 |
+*testng-6.8-r2 (25 Nov 2013) |
33 |
+ |
34 |
+ 25 Nov 2013; Johann Schmitz <ercpe@g.o> +testng-6.8-r2.ebuild, |
35 |
+ -testng-6.8-r1.ebuild: |
36 |
+ Added ~x86 to testng and added the missing dependency to app-arch/zip |
37 |
|
38 |
*testng-6.8-r1 (24 Oct 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-java/testng/testng-6.8-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/testng/testng-6.8-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/testng/testng-6.8-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: testng-6.8-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/testng/testng-6.8-r2.ebuild,v 1.1 2013/11/25 19:08:15 ercpe Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
JAVA_PKG_IUSE="doc examples source test" |
57 |
WANT_ANT_TASKS="ant-junit" |
58 |
|
59 |
inherit java-pkg-2 java-ant-2 |
60 |
|
61 |
DESCRIPTION="Testing framework introducing some new functionalities that make it more powerful and easier to use." |
62 |
HOMEPAGE="http://testng.org/" |
63 |
SRC_URI="http://${PN}.org/${P}.zip" |
64 |
|
65 |
LICENSE="Apache-2.0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
SLOT="0" |
68 |
|
69 |
CDEPEND="dev-java/ant-core:0 |
70 |
dev-java/bsh:0 |
71 |
dev-java/guice:2 |
72 |
dev-java/jcommander:0 |
73 |
dev-java/junit:4 |
74 |
dev-java/snakeyaml:1.9" |
75 |
|
76 |
DEPEND=">=virtual/jdk-1.5 |
77 |
app-arch/zip |
78 |
${CDEPEND}" |
79 |
|
80 |
RDEPEND=">=virtual/jre-1.5 |
81 |
${CDEPEND}" |
82 |
|
83 |
JAVA_PKG_BSFIX_NAME="build.xml build-tests.xml" |
84 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
85 |
JAVA_ANT_CLASSPATH_TAGS+=" testng javadocs-current" |
86 |
EANT_GENTOO_CLASSPATH="ant-core,bsh,guice-2,jcommander,junit-4,snakeyaml-1.9" |
87 |
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}" |
88 |
|
89 |
EANT_BUILD_TARGET="build" |
90 |
EANT_TEST_TARGET="tests" |
91 |
EANT_DOC_TARGET="javadocs" |
92 |
|
93 |
java_prepare() { |
94 |
find . -name '*.jar' -print -delete || die |
95 |
|
96 |
cp "${FILESDIR}"/${P}-build-tests.xml build-tests.xml || die |
97 |
|
98 |
epatch "${FILESDIR}"/${P}-remove-ivy-retrieve.patch |
99 |
epatch "${FILESDIR}"/${P}-remove-jar-bundling.patch |
100 |
|
101 |
# Removal of tests that break due to restrictions or environment expectations: |
102 |
# ServiceLoaderTest - Breaks due absolute URL load that Portage prevents; |
103 |
# we assume the underlying functionality to work, as |
104 |
# the underlying functionality is simple and should |
105 |
# show the usage of this package to break. |
106 |
sed -i '/test.serviceloader.ServiceLoaderTest/d' src/test/resources/testng.xml || die |
107 |
|
108 |
# TrueParallelTest - Doesn't always work, especially not on a system |
109 |
# under load; since this could fail during parallel |
110 |
# emerges, we assume the underlying functionality to |
111 |
# work as it has definitely succeeded under lower load. |
112 |
sed -i '/test.thread.TrueParallelTest/d' src/test/resources/testng.xml || die |
113 |
|
114 |
mkdir lib || die |
115 |
} |
116 |
|
117 |
src_test() { |
118 |
local tests_file="target/test-output/index.html" |
119 |
|
120 |
java-pkg-2_src_test |
121 |
|
122 |
if [[ ! -f ${tests_file} ]] ; then |
123 |
die "Tests failed, test output does not exist; a problem with starting the tests." |
124 |
fi |
125 |
|
126 |
grep 'method-stats.*failed' target/test-output/index.html > /dev/null && \ |
127 |
die "Tests failed; one or more test failed, see ${tests_file} for more details." |
128 |
} |
129 |
|
130 |
src_install() { |
131 |
java-pkg_newjar target/${P}.jar |
132 |
java-pkg_dolauncher ${PN} --main org.testng.TestNG |
133 |
java-pkg_register-ant-task |
134 |
|
135 |
use doc && java-pkg_dojavadoc javadocs |
136 |
use examples && java-pkg_doexamples examples |
137 |
use source && java-pkg_dosrc src/main/java/{org,com} |
138 |
} |