1 |
commit: d53ff204309b1e75190277f93c2eaeea0b4a64a0 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 28 21:00:47 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 28 21:08:41 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d53ff204 |
7 |
|
8 |
dev-java/rhino: Clean up old. |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
dev-java/rhino/Manifest | 3 - |
14 |
dev-java/rhino/files/00_dont-fetch-swing-ex.patch | 10 --- |
15 |
dev-java/rhino/files/1.5.5_jdk15.patch | 23 ------ |
16 |
dev-java/rhino/files/public-NativeScript.patch | 11 --- |
17 |
dev-java/rhino/files/rhino-1.6-noget.patch | 12 --- |
18 |
dev-java/rhino/rhino-1.6.5.ebuild | 61 -------------- |
19 |
dev-java/rhino/rhino-1.7.2-r2.ebuild | 63 --------------- |
20 |
dev-java/rhino/rhino-1.7.7.ebuild | 98 ----------------------- |
21 |
8 files changed, 281 deletions(-) |
22 |
|
23 |
diff --git a/dev-java/rhino/Manifest b/dev-java/rhino/Manifest |
24 |
index 69f4fab..3fc41b1 100644 |
25 |
--- a/dev-java/rhino/Manifest |
26 |
+++ b/dev-java/rhino/Manifest |
27 |
@@ -1,4 +1 @@ |
28 |
DIST Rhino1_7_7_RELEASE.zip 6059127 SHA256 0ef505aee093c690025c4484ce108b6e735e05baa3181bb56fdec4cb6b8b0107 SHA512 ce89b6a153d62dd459a86360c67d6db4b05922d8ab49a8d45ccb0deb0f639cd819f0ad75cb4929eda6b7f0fd6ddb5879a4035de6968283317bfd0e93d2bb744e WHIRLPOOL 0f54840077e46a6ac31e23784b3c13881a774356df14274fc9ffdf93eb3d7b92e8666630d8e51494931819a609a971bb6744cf961c2c168bb94b4e42d3eb0896 |
29 |
-DIST rhino-swing-ex-1.0.zip 19708 SHA256 062837ddb18951ace41ba0050aec95a690c00190a6218e5c9591c381035dfa7d SHA512 f2c1f970595cb08ac301d2fc21e0a2f1090b2007c849d993094ef3215a39456a5865bcaaf9424da93a09d6f0d151be6ec77f844bde2540d725c85c4b54a5f248 WHIRLPOOL 4dd40c1c80a70cd08584ac44abd3b42a790080f93449da8e241ed568ff5b3a5ac6cef12951632eba91547845be49401102d072b05a83a3ed78705acd768b1ced |
30 |
-DIST rhino1_6R5.zip 1822832 SHA256 02a4f17121f148c94ac65fb6d9eb4a817ce86c378c96cc94e9fc1b087b34526f SHA512 bd10b2e687925e06a5a4da5bc0e29a65cff08fc26792e3183f2ab28efb71efcdbc2fb08142be2fd2622c0b94dfa2691ce898ba847935def780e8686a879720f0 WHIRLPOOL 5fda95c5a99a6e99322a81fda513135cece56df0c7d17efcaea0b5f9f8f63b3adccd47bf30f26521b36e33f34e642e05107d7e0f202b8d532356884954d01049 |
31 |
-DIST rhino1_7R2.zip 2996867 SHA256 677f7dc1b67a1587bc03974d5f0720474a56b8f29835e1d860739908df8462dc SHA512 e4472e11377e93b64df3a2a9f266956d86ba78c85ceba57ff05c983d577143351fcbbbc0b63f7034718fd74c13a9e50bac6e8813f320b86fcd09b571e919b858 WHIRLPOOL 546f9a0e565881dd6128e000ca8c8e017cf7432e40df885268c4827e2dbd28f86cde37dbc7284bd1b08b062060eca1465716f850dbd54f176ead475b4b55351d |
32 |
|
33 |
diff --git a/dev-java/rhino/files/00_dont-fetch-swing-ex.patch b/dev-java/rhino/files/00_dont-fetch-swing-ex.patch |
34 |
deleted file mode 100644 |
35 |
index 9949751..0000000 |
36 |
--- a/dev-java/rhino/files/00_dont-fetch-swing-ex.patch |
37 |
+++ /dev/null |
38 |
@@ -1,10 +0,0 @@ |
39 |
---- toolsrc/build.xml 2004-03-25 15:54:34.000000000 +0100 |
40 |
-+++ toolsrc/build-patch.xml 2004-06-19 23:48:07.225123288 +0200 |
41 |
-@@ -20,7 +20,6 @@ |
42 |
- <!-- Download source from Sun's site, unzip it, remove |
43 |
- the files we don't need, and change the package |
44 |
- --> |
45 |
-- <get src="http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip" dest="${nest}/${build.dir}/swingExSrc.zip"/> |
46 |
- <unzip src="${nest}/${build.dir}/swingExSrc.zip" dest="${src.debugger}"/> |
47 |
- <delete file="${src.debugger}/FileSystemModel2.java" /> |
48 |
- <delete file="${src.debugger}/MergeSort.java" /> |
49 |
|
50 |
diff --git a/dev-java/rhino/files/1.5.5_jdk15.patch b/dev-java/rhino/files/1.5.5_jdk15.patch |
51 |
deleted file mode 100644 |
52 |
index 0948921..0000000 |
53 |
--- a/dev-java/rhino/files/1.5.5_jdk15.patch |
54 |
+++ /dev/null |
55 |
@@ -1,23 +0,0 @@ |
56 |
-diff -urpN rhino1_5R5.old/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java |
57 |
---- rhino1_5R5.old/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2004-03-25 15:54:34.000000000 +0100 |
58 |
-+++ rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2005-02-01 13:58:26.521223264 +0100 |
59 |
-@@ -124,7 +124,7 @@ public class JavaPolicySecurity extends |
60 |
- |
61 |
- public JavaPolicySecurity() { |
62 |
- // To trigger error on jdk-1.1 with lazy load |
63 |
-- new CodeSource(null, null); |
64 |
-+ new CodeSource(null, (java.security.cert.Certificate[])null); |
65 |
- } |
66 |
- |
67 |
- protected void callProcessFileSecure(final Context cx, |
68 |
-@@ -167,8 +167,8 @@ public class JavaPolicySecurity extends |
69 |
- } |
70 |
- |
71 |
- private ProtectionDomain getUrlDomain(URL url) { |
72 |
-- CodeSource cs = new CodeSource(url, null); |
73 |
-- PermissionCollection pc = Policy.getPolicy().getPermissions(cs); |
74 |
-+ CodeSource cs = new CodeSource(url, (java.security.cert.Certificate[])null); |
75 |
-+ PermissionCollection pc = Policy.getPolicy().getPermissions(cs); |
76 |
- return new ProtectionDomain(cs, pc); |
77 |
- } |
78 |
- |
79 |
|
80 |
diff --git a/dev-java/rhino/files/public-NativeScript.patch b/dev-java/rhino/files/public-NativeScript.patch |
81 |
deleted file mode 100644 |
82 |
index 026bced..0000000 |
83 |
--- a/dev-java/rhino/files/public-NativeScript.patch |
84 |
+++ /dev/null |
85 |
@@ -1,11 +0,0 @@ |
86 |
---- rhino1_5R5/src/org/mozilla/javascript/NativeScript.java.orig 2006-05-31 14:01:06.000000000 +0200 |
87 |
-+++ rhino1_5R5/src/org/mozilla/javascript/NativeScript.java 2006-05-31 14:03:37.000000000 +0200 |
88 |
-@@ -55,7 +55,7 @@ |
89 |
- * @author Norris Boyd |
90 |
- */ |
91 |
- |
92 |
--class NativeScript extends NativeFunction implements Script |
93 |
-+public class NativeScript extends NativeFunction implements Script |
94 |
- { |
95 |
- |
96 |
- static void init(Context cx, Scriptable scope, boolean sealed) |
97 |
|
98 |
diff --git a/dev-java/rhino/files/rhino-1.6-noget.patch b/dev-java/rhino/files/rhino-1.6-noget.patch |
99 |
deleted file mode 100644 |
100 |
index 2350914..0000000 |
101 |
--- a/dev-java/rhino/files/rhino-1.6-noget.patch |
102 |
+++ /dev/null |
103 |
@@ -1,12 +0,0 @@ |
104 |
-diff --git a/toolsrc/org/mozilla/javascript/tools/debugger/build.xml b/toolsrc/org/mozilla/javascript/tools/debugger/build.xml |
105 |
-index 7ed0236..5f7db6e 100644 |
106 |
---- a/toolsrc/org/mozilla/javascript/tools/debugger/build.xml |
107 |
-+++ b/toolsrc/org/mozilla/javascript/tools/debugger/build.xml |
108 |
-@@ -47,7 +47,6 @@ |
109 |
- the files we don't need, and change the package |
110 |
- --> |
111 |
- <mkdir dir="downloaded"/> |
112 |
-- <get src="${swing-ex-url}" dest="downloaded/swingExSrc.zip"/> |
113 |
- <unzip src="downloaded/swingExSrc.zip" dest="downloaded/"> |
114 |
- <patternset> |
115 |
- <include name="AbstractCellEditor.java"/> |
116 |
|
117 |
diff --git a/dev-java/rhino/rhino-1.6.5.ebuild b/dev-java/rhino/rhino-1.6.5.ebuild |
118 |
deleted file mode 100644 |
119 |
index 4c59f25..0000000 |
120 |
--- a/dev-java/rhino/rhino-1.6.5.ebuild |
121 |
+++ /dev/null |
122 |
@@ -1,61 +0,0 @@ |
123 |
-# Copyright 1999-2014 Gentoo Foundation |
124 |
-# Distributed under the terms of the GNU General Public License v2 |
125 |
-# $Id$ |
126 |
- |
127 |
-JAVA_PKG_IUSE="doc examples source" |
128 |
-inherit java-pkg-2 java-ant-2 eutils versionator |
129 |
- |
130 |
-MY_P="${PN}$(replace_version_separator 1 _ $(replace_version_separator 2 R))" |
131 |
- |
132 |
-DESCRIPTION="An open-source implementation of JavaScript written in Java" |
133 |
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip |
134 |
- mirror://gentoo/rhino-swing-ex-1.0.zip" |
135 |
-HOMEPAGE="http://www.mozilla.org/rhino/" |
136 |
-# dual license for rhino and BSD-2 for the swing-ex from Sun's tutorial |
137 |
-LICENSE="|| ( MPL-1.1 GPL-2 ) BSD-2" |
138 |
-SLOT="1.6" |
139 |
-KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos" |
140 |
-IUSE="" |
141 |
- |
142 |
-S="${WORKDIR}/${MY_P}" |
143 |
- |
144 |
-CDEPEND="=dev-java/xml-xmlbeans-1*" |
145 |
-RDEPEND=">=virtual/jre-1.4 |
146 |
- ${CDEPEND}" |
147 |
-DEPEND=">=virtual/jdk-1.4 |
148 |
- app-arch/unzip |
149 |
- ${CDEPEND}" |
150 |
- |
151 |
-src_unpack() { |
152 |
- unpack ${MY_P}.zip |
153 |
- cd "${S}" |
154 |
- |
155 |
- # don't download src.zip from Sun |
156 |
- epatch "${FILESDIR}/rhino-1.6-noget.patch" |
157 |
- |
158 |
- rm -v *.jar || die |
159 |
- rm -rf docs/apidocs || die |
160 |
- |
161 |
- local dir="toolsrc/org/mozilla/javascript/tools/debugger/downloaded" |
162 |
- mkdir ${dir} || die |
163 |
- cp "${DISTDIR}/rhino-swing-ex-1.0.zip" ${dir}/swingExSrc.zip || die |
164 |
- |
165 |
- mkdir lib/ && cd lib/ || die |
166 |
- java-pkg_jar-from xml-xmlbeans-1 xbean.jar |
167 |
-} |
168 |
- |
169 |
-src_install() { |
170 |
- java-pkg_dojar build/${MY_P}/js.jar |
171 |
- |
172 |
- java-pkg_dolauncher jsscript-${SLOT} \ |
173 |
- --main org.mozilla.javascript.tools.shell.Main |
174 |
- |
175 |
- if use doc; then |
176 |
- local dir="build/${MY_P}/docs" |
177 |
- mv "${dir}"/{apidocs,api} || die |
178 |
- java-pkg_dohtml -r "${dir}"/* |
179 |
- dosym /usr/share/doc/${PF}/html/{api,apidocs} || die |
180 |
- fi |
181 |
- use examples && java-pkg_doexamples examples |
182 |
- use source && java-pkg_dosrc {src,toolsrc,xmlimplsrc}/org |
183 |
-} |
184 |
|
185 |
diff --git a/dev-java/rhino/rhino-1.7.2-r2.ebuild b/dev-java/rhino/rhino-1.7.2-r2.ebuild |
186 |
deleted file mode 100644 |
187 |
index b6e779c..0000000 |
188 |
--- a/dev-java/rhino/rhino-1.7.2-r2.ebuild |
189 |
+++ /dev/null |
190 |
@@ -1,63 +0,0 @@ |
191 |
-# Copyright 1999-2015 Gentoo Foundation |
192 |
-# Distributed under the terms of the GNU General Public License v2 |
193 |
-# $Id$ |
194 |
- |
195 |
-EAPI="1" |
196 |
-JAVA_PKG_IUSE="doc examples source" |
197 |
-inherit java-pkg-2 java-ant-2 eutils versionator |
198 |
- |
199 |
-MY_P="${PN}$(replace_version_separator 1 _ $(replace_version_separator 2 R))" |
200 |
- |
201 |
-DESCRIPTION="An open-source implementation of JavaScript written in Java" |
202 |
-SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip |
203 |
- mirror://gentoo/rhino-swing-ex-1.0.zip" |
204 |
-HOMEPAGE="http://www.mozilla.org/rhino/" |
205 |
-# dual license for rhino and BSD-2 for the swing-ex from Sun's tutorial |
206 |
-LICENSE="|| ( MPL-1.1 GPL-2 ) BSD-2" |
207 |
-SLOT="1.6" |
208 |
-KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
209 |
-IUSE="" |
210 |
- |
211 |
-S="${WORKDIR}/${MY_P}" |
212 |
- |
213 |
-CDEPEND="=dev-java/xml-xmlbeans-1*" |
214 |
-RDEPEND=">=virtual/jre-1.5 |
215 |
- ${CDEPEND}" |
216 |
-DEPEND=">=virtual/jdk-1.5 |
217 |
- app-arch/unzip |
218 |
- ${CDEPEND}" |
219 |
- |
220 |
-src_unpack() { |
221 |
- unpack ${MY_P}.zip |
222 |
- cd "${S}" |
223 |
- |
224 |
- # don't download src.zip from Sun |
225 |
- epatch "${FILESDIR}/rhino-1.6-noget.patch" |
226 |
- |
227 |
- rm -v *.jar || die |
228 |
- rm -rf docs/apidocs || die |
229 |
- |
230 |
- local dir="toolsrc/org/mozilla/javascript/tools/debugger/downloaded" |
231 |
- mkdir ${dir} || die |
232 |
- cp "${DISTDIR}/rhino-swing-ex-1.0.zip" ${dir}/swingExSrc.zip || die |
233 |
- |
234 |
- mkdir lib/ && cd lib/ || die |
235 |
- java-pkg_jar-from xml-xmlbeans-1 xbean.jar |
236 |
- |
237 |
- # Stop downloading of deps |
238 |
- cd "${S}" |
239 |
- mkdir -p build/tmp-xbean |
240 |
- touch build/tmp-xbean/xbean.zip |
241 |
- touch lib/jsr173_1.0_api.jar |
242 |
-} |
243 |
- |
244 |
-src_install() { |
245 |
- java-pkg_dojar build/${MY_P}/js.jar |
246 |
- |
247 |
- java-pkg_dolauncher jsscript-${SLOT} \ |
248 |
- --main org.mozilla.javascript.tools.shell.Main |
249 |
- |
250 |
- use doc && java-pkg_dojavadoc "build/${MY_P}/javadoc" |
251 |
- use examples && java-pkg_doexamples examples |
252 |
- use source && java-pkg_dosrc {src,toolsrc,xmlimplsrc}/org |
253 |
-} |
254 |
|
255 |
diff --git a/dev-java/rhino/rhino-1.7.7.ebuild b/dev-java/rhino/rhino-1.7.7.ebuild |
256 |
deleted file mode 100644 |
257 |
index 9a61bd7..0000000 |
258 |
--- a/dev-java/rhino/rhino-1.7.7.ebuild |
259 |
+++ /dev/null |
260 |
@@ -1,98 +0,0 @@ |
261 |
-# Copyright 1999-2015 Gentoo Foundation |
262 |
-# Distributed under the terms of the GNU General Public License v2 |
263 |
-# $Id$ |
264 |
- |
265 |
-EAPI="5" |
266 |
-JAVA_PKG_IUSE="doc examples source test" |
267 |
-inherit java-pkg-2 java-ant-2 versionator |
268 |
- |
269 |
-# rhino -> Rhino |
270 |
-MY_PN="${PN^}" |
271 |
- |
272 |
-# 1.7.7 -> 1_7_7 |
273 |
-MY_PV="$(replace_all_version_separators _ ${PV})" |
274 |
- |
275 |
-# rhino1.7.7 |
276 |
-MY_P="${PN}${PV}" |
277 |
- |
278 |
-# Rhino1_7_7_RELEASE |
279 |
-MY_RELEASE="${MY_PN}${MY_PV}_RELEASE" |
280 |
- |
281 |
-DESCRIPTION="An open-source implementation of JavaScript written in Java" |
282 |
-SRC_URI="https://github.com/mozilla/${PN}/archive/${MY_RELEASE}.zip" |
283 |
-HOMEPAGE="http://www.mozilla.org/rhino/" |
284 |
- |
285 |
-LICENSE="MPL-1.1 GPL-2" |
286 |
-SLOT="1.7" |
287 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
288 |
-IUSE="" |
289 |
- |
290 |
-# ../rhino-Rhino1_7_7_RELEASE |
291 |
-S="${WORKDIR}/${PN}-${MY_RELEASE}" |
292 |
- |
293 |
-CDEPEND="" |
294 |
-RDEPEND=">=virtual/jre-1.6 |
295 |
- ${CDEPEND}" |
296 |
-DEPEND=">=virtual/jdk-1.6 |
297 |
- test? ( |
298 |
- dev-java/emma:0 |
299 |
- dev-java/junit:4 |
300 |
- dev-java/ant-junit:0 |
301 |
- dev-java/hamcrest-core:1.3 |
302 |
- ) |
303 |
- ${CDEPEND}" |
304 |
- |
305 |
-JAVA_ANT_REWRITE_CLASSPATH="yes" |
306 |
- |
307 |
-PATCHES=( |
308 |
- "${FILESDIR}"/${P}-testsrc-build.xml.patch |
309 |
-) |
310 |
- |
311 |
-EANT_TEST_TARGET="junit" |
312 |
- |
313 |
-# StackOverFlow errors arise on some tests. |
314 |
-# Further, the test suite takes way too much time (> 5 min). |
315 |
-# Maybe reduce the numbers of tests? |
316 |
-RESTRICT="test" |
317 |
- |
318 |
-java_prepare() { |
319 |
- find . \ |
320 |
- -type f \ |
321 |
- -name \*.jar \ |
322 |
- -print \ |
323 |
- -exec rm -v {} \; || die "Couldn't delete bundled jar files." |
324 |
- |
325 |
- epatch ${PATCHES[@]} |
326 |
- |
327 |
- if use test; then |
328 |
- mkdir lib || die |
329 |
- java-pkg_jar-from --build-only emma emma.jar lib/emma.jar |
330 |
- java-pkg_jar-from --build-only emma emma_ant.jar lib/emma_ant.jar |
331 |
- java-pkg_jar-from --build-only hamcrest-core-1.3 hamcrest-core.jar lib/hamcrest.jar |
332 |
- java-pkg_jar-from --build-only junit-4 junit.jar lib/junit.jar |
333 |
- fi |
334 |
-} |
335 |
- |
336 |
-src_compile() { |
337 |
- java-pkg-2_src_compile |
338 |
- |
339 |
- if use source; then |
340 |
- EANT_BUILD_TARGET="source-zip" \ |
341 |
- java-pkg-2_src_compile |
342 |
- fi |
343 |
-} |
344 |
- |
345 |
-src_test() { |
346 |
- java-pkg-2_src_test |
347 |
-} |
348 |
- |
349 |
-src_install() { |
350 |
- java-pkg_dojar build/${MY_P}/js.jar |
351 |
- |
352 |
- java-pkg_dolauncher jsscript-${SLOT} \ |
353 |
- --main org.mozilla.javascript.tools.shell.Main |
354 |
- |
355 |
- use doc && java-pkg_dojavadoc "build/${MY_P}/javadoc" |
356 |
- use examples && java-pkg_doexamples examples |
357 |
- use source && java-pkg_dosrc {src,toolsrc,xmlimplsrc}/org |
358 |
-} |