1 |
commit: a19ee0842f74dfe29e51423b2e4f4cf62d4f9fd4 |
2 |
Author: Diego Elio Pettenò <flameeyes <AT> flameeyes <DOT> eu> |
3 |
AuthorDate: Sun Apr 29 04:50:50 2012 +0000 |
4 |
Commit: Diego Elio Pettenò <flameeyes <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 04:50:50 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ruby-overlay.git;a=commit;h=a19ee084 |
7 |
|
8 |
Remove jruby/jzlib since they are now in main tree. |
9 |
|
10 |
--- |
11 |
dev-java/jruby/ChangeLog | 33 --- |
12 |
dev-java/jruby/files/1.5.1/build.xml.patch | 20 -- |
13 |
dev-java/jruby/files/1.5.1/testfixes.patch | 80 -------- |
14 |
dev-java/jruby/files/10jruby | 1 - |
15 |
dev-java/jruby/files/ftype-test-fixes.patch | 79 -------- |
16 |
dev-java/jruby/files/gentoo.rb | 8 - |
17 |
dev-java/jruby/files/jruby | 4 - |
18 |
dev-java/jruby/files/jruby-1.6.0-system-jars.patch | 205 -------------------- |
19 |
dev-java/jruby/files/jruby-bash-launcher.patch | 180 ----------------- |
20 |
dev-java/jruby/files/user-test-fixes.patch | 124 ------------ |
21 |
dev-java/jruby/jruby-1.6.4.ebuild | 193 ------------------ |
22 |
dev-java/jruby/jruby-1.6.5.1.ebuild | 198 ------------------- |
23 |
dev-java/jruby/jruby-1.6.7.ebuild | 199 ------------------- |
24 |
dev-java/jruby/metadata.xml | 6 - |
25 |
dev-java/jzlib/ChangeLog | 10 - |
26 |
dev-java/jzlib/jzlib-1.1.1.ebuild | 33 --- |
27 |
dev-java/jzlib/metadata.xml | 6 - |
28 |
17 files changed, 0 insertions(+), 1379 deletions(-) |
29 |
|
30 |
diff --git a/dev-java/jruby/ChangeLog b/dev-java/jruby/ChangeLog |
31 |
deleted file mode 100644 |
32 |
index de24a3e..0000000 |
33 |
--- a/dev-java/jruby/ChangeLog |
34 |
+++ /dev/null |
35 |
@@ -1,33 +0,0 @@ |
36 |
-# ChangeLog for dev-java/jruby |
37 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
38 |
-# $Header: $ |
39 |
- |
40 |
-*jruby-1.6.7 (28 Feb 2012) |
41 |
- |
42 |
- 28 Feb 2012; Diego E. Pettenò <flameeyes@g.o> +jruby-1.6.7.ebuild: |
43 |
- Bump jruby version to 1.6.7. |
44 |
- |
45 |
- 23 Jan 2012; Hans de Graaff <graaff@g.o> jruby-1.6.5.1.ebuild, |
46 |
- files/jruby-bash-launcher.patch: |
47 |
- The properties file is no longer used. Add the bindir option to the wrapper |
48 |
- instead. |
49 |
- |
50 |
- 22 Jan 2012; Hans de Graaff <graaff@g.o> jruby-1.6.5.1.ebuild: |
51 |
- yecht.jar is no longer a separate jar so it must be included: |
52 |
- https://github.com/jruby/jruby/commit/6c1d41aedfde705c969abf10cf5384e2be69 |
53 |
- |
54 |
-*jruby-1.6.5.1 (08 Jan 2012) |
55 |
- |
56 |
- 08 Jan 2012; Hans de Graaff <graaff@g.o> jruby-1.6.4.ebuild, |
57 |
- +jruby-1.6.5.1.ebuild: |
58 |
- Add jruby 1.6.5.1 work-in-progress ebuild for testing. |
59 |
- |
60 |
- 26 Dec 2011; Hans de Graaff <graaff@g.o> jruby-1.6.4.ebuild: |
61 |
- This is an experimental version, mark it testing. |
62 |
- |
63 |
- 27 Sep 2011; Hans de Graaff <graaff@g.o> jruby-1.6.4.ebuild: |
64 |
- Drop old pkg_postinst instrcutions for upgrading from pre 1.4 jruby versions. |
65 |
- |
66 |
- 27 Sep 2011; Hans de Graaff <graaff@g.o> jruby-1.6.4.ebuild: |
67 |
- yecht will stay bundled for now. |
68 |
- |
69 |
|
70 |
diff --git a/dev-java/jruby/files/1.5.1/build.xml.patch b/dev-java/jruby/files/1.5.1/build.xml.patch |
71 |
deleted file mode 100644 |
72 |
index ef75208..0000000 |
73 |
--- a/dev-java/jruby/files/1.5.1/build.xml.patch |
74 |
+++ /dev/null |
75 |
@@ -1,20 +0,0 @@ |
76 |
-diff --git a/build.xml b/build.xml |
77 |
-index 9857cd2..f0c86b8 100644 |
78 |
---- a/build.xml |
79 |
-+++ b/build.xml |
80 |
-@@ -816,6 +817,7 @@ |
81 |
- <sysproperty key="jruby.compile.invokedynamic" value="true"/> |
82 |
- <sysproperty key="java.awt.headless" value="true"/> |
83 |
- <sysproperty key="jruby.home" value="${basedir}"/> |
84 |
-+ <sysproperty key="jruby.bindir" value="${basedir}/bin" /> |
85 |
- <sysproperty key="jruby.lib" value="${lib.dir}"/> |
86 |
- <sysproperty key="jruby.compile.mode" value="@{compile.mode}"/> |
87 |
- <sysproperty key="jruby.jit.threshold" value="@{jit.threshold}"/> |
88 |
-@@ -871,6 +873,7 @@ |
89 |
- |
90 |
- <sysproperty key="java.awt.headless" value="true"/> |
91 |
- <sysproperty key="jruby.home" value="${basedir}"/> |
92 |
-+ <sysproperty key="jruby.bindir" value="${basedir}/bin" /> |
93 |
- <sysproperty key="jruby.lib" value="${lib.dir}"/> |
94 |
- <sysproperty key="jruby.compile.mode" value="@{compile.mode}"/> |
95 |
- <sysproperty key="jruby.jit.threshold" value="@{jit.threshold}"/> |
96 |
|
97 |
diff --git a/dev-java/jruby/files/1.5.1/testfixes.patch b/dev-java/jruby/files/1.5.1/testfixes.patch |
98 |
deleted file mode 100644 |
99 |
index 2ec2ad2..0000000 |
100 |
--- a/dev-java/jruby/files/1.5.1/testfixes.patch |
101 |
+++ /dev/null |
102 |
@@ -1,80 +0,0 @@ |
103 |
-diff --git a/test/externals/ruby1.8/ruby/test_signal.rb b/test/externals/ruby1.8/ruby/test_signal.rb |
104 |
-index 83ba834..d669440 100644 |
105 |
---- a/test/externals/ruby1.8/ruby/test_signal.rb |
106 |
-+++ b/test/externals/ruby1.8/ruby/test_signal.rb |
107 |
-@@ -13,6 +13,7 @@ class TestSignal < Test::Unit::TestCase |
108 |
- end |
109 |
- |
110 |
- def test_signal |
111 |
-+ return |
112 |
- defined?(Process.kill) or return |
113 |
- |
114 |
- # FIXME, JRuby fails this test on OpenSolaris 2009.06 and Windows |
115 |
-diff --git a/test/test_kernel.rb b/test/test_kernel.rb |
116 |
-index a7de277..0e2a0ec 100644 |
117 |
---- a/test/test_kernel.rb |
118 |
-+++ b/test/test_kernel.rb |
119 |
-@@ -738,15 +738,15 @@ class TestKernel < Test::Unit::TestCase |
120 |
- end |
121 |
- |
122 |
- # JRUBY-4348 |
123 |
-- def test_exec_rubyopt |
124 |
-- old = ENV['RUBYOPT'] |
125 |
-- ENV['RUBYOPT'] = "-v" |
126 |
-- result = `ruby -e "a=1"` |
127 |
-- assert_equal 0, $?.exitstatus |
128 |
-- assert_match /ruby/i, result |
129 |
-- ensure |
130 |
-- ENV['RUBYOPT'] = old |
131 |
-- end |
132 |
-+ #def test_exec_rubyopt |
133 |
-+ # old = ENV['RUBYOPT'] |
134 |
-+ # ENV['RUBYOPT'] = "-v" |
135 |
-+ # result = `ruby -e "a=1"` |
136 |
-+ # assert_equal 0, $?.exitstatus |
137 |
-+ # assert_match /ruby/i, result |
138 |
-+ #ensure |
139 |
-+ # ENV['RUBYOPT'] = old |
140 |
-+ #end |
141 |
- |
142 |
- # test |
143 |
- # trace_var |
144 |
-diff --git a/test/test_thread_service.rb b/test/test_thread_service.rb |
145 |
-index bd1e2a5..30fec50 100644 |
146 |
---- a/test/test_thread_service.rb |
147 |
-+++ b/test/test_thread_service.rb |
148 |
-@@ -13,7 +13,7 @@ class TestThreadService < Test::Unit::TestCase |
149 |
- |
150 |
- # access maps and GC a couple times to flush things out |
151 |
- svc.ruby_thread_map.size |
152 |
-- GC_COUNT.times {JRuby.gc} |
153 |
-+ GC_COUNT.times {JRuby.gc; sleep 2} |
154 |
- |
155 |
- # confirm the size goes back to the same |
156 |
- assert_equal start_rt, svc.ruby_thread_map.size |
157 |
-@@ -25,10 +25,10 @@ class TestThreadService < Test::Unit::TestCase |
158 |
- |
159 |
- # spin up 100 Java threads and join them |
160 |
- (1..10).to_a.map {t = java.lang.Thread.new {}; t.start; t}.map(&:join) |
161 |
-- |
162 |
-+ |
163 |
- # access maps and GC a couple times to flush things out |
164 |
- svc.ruby_thread_map.size |
165 |
-- GC_COUNT.times {JRuby.gc} |
166 |
-+ GC_COUNT.times {JRuby.gc; sleep 2} |
167 |
- |
168 |
- # confirm the size goes back to the same |
169 |
- assert_equal start_rt, svc.ruby_thread_map.size |
170 |
-@@ -62,9 +62,9 @@ class TestThreadService < Test::Unit::TestCase |
171 |
- |
172 |
- # access maps and GC a couple times to flush things out |
173 |
- svc.ruby_thread_map.size |
174 |
-- GC_COUNT.times {JRuby.gc} |
175 |
-+ GC_COUNT.times {JRuby.gc; sleep 2} |
176 |
- |
177 |
- # confirm the thread list is back to what it was |
178 |
- assert_equal start_list, Thread.list |
179 |
- end |
180 |
--end |
181 |
-\ No newline at end of file |
182 |
-+end |
183 |
|
184 |
diff --git a/dev-java/jruby/files/10jruby b/dev-java/jruby/files/10jruby |
185 |
deleted file mode 100644 |
186 |
index 13cb1f9..0000000 |
187 |
--- a/dev-java/jruby/files/10jruby |
188 |
+++ /dev/null |
189 |
@@ -1 +0,0 @@ |
190 |
-JRUBY_OPTS="-rgentoo" |
191 |
|
192 |
diff --git a/dev-java/jruby/files/ftype-test-fixes.patch b/dev-java/jruby/files/ftype-test-fixes.patch |
193 |
deleted file mode 100644 |
194 |
index 77bdbda..0000000 |
195 |
--- a/dev-java/jruby/files/ftype-test-fixes.patch |
196 |
+++ /dev/null |
197 |
@@ -1,79 +0,0 @@ |
198 |
-diff -Naur jruby-1.2.0.orig/test/externals/ruby_test/test/core/File/class/tc_ftype.rb jruby-1.2.0/test/externals/ruby_test/test/core/File/class/tc_ftype.rb |
199 |
---- jruby-1.2.0.orig/test/externals/ruby_test/test/core/File/class/tc_ftype.rb 2009-04-26 12:01:41.912584566 +0100 |
200 |
-+++ jruby-1.2.0/test/externals/ruby_test/test/core/File/class/tc_ftype.rb 2009-04-26 12:03:56.000210377 +0100 |
201 |
-@@ -26,28 +26,13 @@ |
202 |
- else |
203 |
- @char = Pathname.new('/dev/null').realpath |
204 |
- @fifo = "test_fifo" |
205 |
-+ @link = "test_link" |
206 |
- |
207 |
- system("mkfifo #{@fifo}") |
208 |
-+ system("ln -snf . #{@link}") |
209 |
- |
210 |
-- if File.exists?("/dev/fd0") |
211 |
-- @block = Pathname.new("/dev/fd0").realpath |
212 |
-- @link = "/dev/fd0" if File.symlink?("/dev/fd0") |
213 |
-- elsif File.exists?("/dev/diskette") |
214 |
-- @block = Pathname.new("/dev/diskette").realpath |
215 |
-- @link = "/dev/diskette" if File.symlink?("/dev/diskette") |
216 |
-- elsif File.exists?("/dev/cdrom") |
217 |
-- @block = Pathname.new("/dev/cdrom").realpath |
218 |
-- @link = "/dev/cdrom" if File.symlink?("/dev/cdrom") |
219 |
-- elsif File.exists?("/dev/sr0") # CDROM |
220 |
-- @block = Pathname.new("/dev/sr0").realpath |
221 |
-- @link = "/dev/sr0" if File.symlink?("/dev/sr0") |
222 |
-- elsif File.exists?("/dev/disk0") |
223 |
-- @block = "/dev/disk0" |
224 |
-- @link = "/tmp" |
225 |
-- else |
226 |
-- @block = nil |
227 |
-- @link = nil |
228 |
-- end |
229 |
-+ @block = %w( /dev/fd0 /dev/diskette /dev/cdrom /dev/sr0 /dev/disk0 ).find { |dev| File.exists?(dev) } |
230 |
-+ @block = Pathname.new(@block).realpath if @block |
231 |
- end |
232 |
- end |
233 |
- |
234 |
-@@ -66,22 +51,21 @@ |
235 |
- end |
236 |
- |
237 |
- # TODO: Find appropriate tests for MS Windows |
238 |
-- unless WINDOWS |
239 |
-- def test_ftype_char |
240 |
-- assert_equal('characterSpecial', File.ftype(@char)) |
241 |
-- end |
242 |
-+ |
243 |
-+ def test_ftype_char |
244 |
-+ assert_equal('characterSpecial', File.ftype(@char)) if @char |
245 |
-+ end |
246 |
- |
247 |
-- def test_ftype_block |
248 |
-- assert_equal('blockSpecial', File.ftype(@block), "BLOCK WAS: #{@block}") |
249 |
-- end |
250 |
-+ def test_ftype_block |
251 |
-+ assert_equal('blockSpecial', File.ftype(@block), "BLOCK WAS: #{@block}") if @block |
252 |
-+ end |
253 |
- |
254 |
-- def test_ftype_link |
255 |
-- assert_equal('link', File.ftype(@link)) |
256 |
-- end |
257 |
-+ def test_ftype_link |
258 |
-+ assert_equal('link', File.ftype(@link)) if @link |
259 |
-+ end |
260 |
- |
261 |
-- def test_ftype_fifo |
262 |
-- assert_equal('fifo', File.ftype(@fifo)) |
263 |
-- end |
264 |
-+ def test_ftype_fifo |
265 |
-+ assert_equal('fifo', File.ftype(@fifo)) if @fifo |
266 |
- end |
267 |
- |
268 |
- def test_ftype_expected_errors |
269 |
-@@ -91,6 +75,7 @@ |
270 |
- |
271 |
- def teardown |
272 |
- remove_file(@fifo) |
273 |
-+ remove_file(@link) |
274 |
- |
275 |
- @file = nil |
276 |
- @dir = nil |
277 |
|
278 |
diff --git a/dev-java/jruby/files/gentoo.rb b/dev-java/jruby/files/gentoo.rb |
279 |
deleted file mode 100644 |
280 |
index 20c50f9..0000000 |
281 |
--- a/dev-java/jruby/files/gentoo.rb |
282 |
+++ /dev/null |
283 |
@@ -1,8 +0,0 @@ |
284 |
-# Autoload rubygems as with regular Ruby. |
285 |
-begin |
286 |
-require 'rubygems' |
287 |
-rescue LoadError |
288 |
-end |
289 |
- |
290 |
-# Append regular site_ruby to $LOAD_PATH. Unfortunately the -I option prepends instead. |
291 |
-$LOAD_PATH.insert(-2, '/usr/lib/ruby/site_ruby/1.8', '/usr/lib/ruby/site_ruby') |
292 |
|
293 |
diff --git a/dev-java/jruby/files/jruby b/dev-java/jruby/files/jruby |
294 |
deleted file mode 100755 |
295 |
index 804d788..0000000 |
296 |
--- a/dev-java/jruby/files/jruby |
297 |
+++ /dev/null |
298 |
@@ -1,4 +0,0 @@ |
299 |
-#!/bin/sh |
300 |
- |
301 |
-export JRUBY_CP=`java-config -d -p jruby` |
302 |
-exec bash /usr/share/jruby/bin/jruby "${@}" |
303 |
|
304 |
diff --git a/dev-java/jruby/files/jruby-1.6.0-system-jars.patch b/dev-java/jruby/files/jruby-1.6.0-system-jars.patch |
305 |
deleted file mode 100644 |
306 |
index 9e31275..0000000 |
307 |
--- a/dev-java/jruby/files/jruby-1.6.0-system-jars.patch |
308 |
+++ /dev/null |
309 |
@@ -1,205 +0,0 @@ |
310 |
---- bin/jruby.sh.orig 2011-08-23 19:04:22.000000000 +0200 |
311 |
-+++ bin/jruby.sh 2011-09-05 20:42:16.352279669 +0200 |
312 |
-@@ -20,6 +20,9 @@ |
313 |
- |
314 |
- # ----- Verify and Set Required Environment Variables ------------------------- |
315 |
- |
316 |
-+# This will be filled in by the ebuild after install |
317 |
-+JRUBY_HOME= |
318 |
-+ |
319 |
- ## resolve links - $0 may be a link to home |
320 |
- PRG=$0 |
321 |
- progname=`basename "$0"` |
322 |
-@@ -38,12 +41,14 @@ |
323 |
- fi |
324 |
- done |
325 |
- |
326 |
--JRUBY_HOME_1=`dirname "$PRG"` # the ./bin dir |
327 |
--if [ "$JRUBY_HOME_1" = '.' ] ; then |
328 |
-- cwd=`pwd` |
329 |
-- JRUBY_HOME=`dirname $cwd` # JRUBY-2699 |
330 |
--else |
331 |
-- JRUBY_HOME=`dirname "$JRUBY_HOME_1"` # the . dir |
332 |
-+if [ -z "$JRUBY_HOME" ]; then |
333 |
-+ JRUBY_HOME_1=`dirname "$PRG"` |
334 |
-+ if [ "$JRUBY_HOME_1" = '.' ] ; then |
335 |
-+ cwd=`pwd` |
336 |
-+ JRUBY_HOME=`dirname $cwd` # JRUBY-2699 |
337 |
-+ else |
338 |
-+ JRUBY_HOME=`dirname "$JRUBY_HOME_1"` # the . dir |
339 |
-+ fi |
340 |
- fi |
341 |
- |
342 |
- if [ -z "$JRUBY_OPTS" ] ; then |
343 |
-@@ -73,74 +78,17 @@ |
344 |
- done |
345 |
- JRUBY_OPTS=${JRUBY_OPTS_TEMP} |
346 |
- |
347 |
--if [ -z "$JAVACMD" ] ; then |
348 |
-- if [ -z "$JAVA_HOME" ] ; then |
349 |
-- JAVACMD='java' |
350 |
-- else |
351 |
-- JAVACMD="$JAVA_HOME/bin/java" |
352 |
-- fi |
353 |
--fi |
354 |
-- |
355 |
--# If you're seeing odd exceptions, you may have a bad JVM install. |
356 |
--# Uncomment this and report the version to the JRuby team along with error. |
357 |
--#$JAVACMD -version |
358 |
-- |
359 |
- JRUBY_SHELL=/bin/sh |
360 |
- |
361 |
- # ----- Set Up The Boot Classpath ------------------------------------------- |
362 |
- |
363 |
--CP_DELIMITER=":" |
364 |
-- |
365 |
--# add main jruby jar to the bootclasspath |
366 |
--for j in "$JRUBY_HOME"/lib/jruby.jar "$JRUBY_HOME"/lib/jruby-complete.jar; do |
367 |
-- if [ ! -e "$j" ]; then |
368 |
-- continue |
369 |
-- fi |
370 |
-- if [ "$JRUBY_CP" ]; then |
371 |
-- JRUBY_CP="$JRUBY_CP$CP_DELIMITER$j" |
372 |
-- else |
373 |
-- JRUBY_CP="$j" |
374 |
-- fi |
375 |
-- if [ $JRUBY_ALREADY_ADDED ]; then |
376 |
-- echo "WARNING: more than one JRuby JAR found in lib directory" |
377 |
-- fi |
378 |
-- JRUBY_ALREADY_ADDED=true |
379 |
--done |
380 |
-- |
381 |
-- |
382 |
--# ----- Set Up The System Classpath ------------------------------------------- |
383 |
-- |
384 |
--if [ "$JRUBY_PARENT_CLASSPATH" != "" ]; then |
385 |
-- # Use same classpath propagated from parent jruby |
386 |
-- CP=$JRUBY_PARENT_CLASSPATH |
387 |
--else |
388 |
-- # add other jars in lib to CP for command-line execution |
389 |
-- for j in "$JRUBY_HOME"/lib/*.jar; do |
390 |
-- if [ "$j" == "$JRUBY_HOME"/lib/jruby.jar ]; then |
391 |
-- continue |
392 |
-- fi |
393 |
-- if [ "$j" == "$JRUBY_HOME"/lib/jruby-complete.jar ]; then |
394 |
-- continue |
395 |
-- fi |
396 |
-- if [ "$CP" ]; then |
397 |
-- CP="$CP$CP_DELIMITER$j" |
398 |
-- else |
399 |
-- CP="$j" |
400 |
-- fi |
401 |
-- done |
402 |
-- |
403 |
--fi |
404 |
-- |
405 |
-+JRUBY_CP="$(java-config -d -p jruby)" |
406 |
-+CP="${JRUBY_PARENT_CLASSPATH}" |
407 |
- |
408 |
- # ----- Execute The Requested Command ----------------------------------------- |
409 |
- |
410 |
--if [ -z "$JAVA_MEM" ] ; then |
411 |
-- JAVA_MEM=-Xmx500m |
412 |
--fi |
413 |
-- |
414 |
--if [ -z "$JAVA_STACK" ] ; then |
415 |
-- JAVA_STACK=-Xss1024k |
416 |
--fi |
417 |
-+JAVA_MEM=${JAVA_MEM:--Xmx500m} |
418 |
-+JAVA_STACK=${JAVA_STACK:--Xss1024k} |
419 |
- |
420 |
- JAVA_VM=-client |
421 |
- JAVA_ENCODING="" |
422 |
-@@ -163,19 +111,19 @@ |
423 |
- elif [ "${val:0:4}" = "-Xss" ]; then |
424 |
- JAVA_STACK=$val |
425 |
- elif [ "${val}" = "" ]; then |
426 |
-- $JAVACMD -help |
427 |
-+ java -help |
428 |
- echo "(Prepend -J in front of these options when using 'jruby' command)" |
429 |
- exit |
430 |
- elif [ "${val}" = "-X" ]; then |
431 |
-- $JAVACMD -X |
432 |
-+ java -X |
433 |
- echo "(Prepend -J in front of these options when using 'jruby' command)" |
434 |
- exit |
435 |
- elif [ "${val}" = "-classpath" ]; then |
436 |
-- CP="$CP$CP_DELIMITER$2" |
437 |
-+ CP="$CP:$2" |
438 |
- CLASSPATH="" |
439 |
- shift |
440 |
- elif [ "${val}" = "-cp" ]; then |
441 |
-- CP="$CP$CP_DELIMITER$2" |
442 |
-+ CP="$CP:$2" |
443 |
- CLASSPATH="" |
444 |
- shift |
445 |
- else |
446 |
-@@ -209,12 +157,9 @@ |
447 |
- java_args="${java_args} -Djava.awt.headless=true" ;; |
448 |
- # Run under JDB |
449 |
- --jdb) |
450 |
-- if [ -z "$JAVA_HOME" ] ; then |
451 |
-- JAVACMD='jdb' |
452 |
-- else |
453 |
-- JAVACMD="$JAVA_HOME/bin/jdb" |
454 |
-- fi |
455 |
-+ JAVACMD="jdb" |
456 |
- java_args="${java_args} -sourcepath $JRUBY_HOME/lib/ruby/1.8:." |
457 |
-+ |
458 |
- JRUBY_OPTS="${JRUBY_OPTS} -X+C" ;; |
459 |
- --client) |
460 |
- JAVA_VM=-client ;; |
461 |
-@@ -247,7 +192,7 @@ |
462 |
- fi |
463 |
- |
464 |
- # Add a property to report memory max |
465 |
--JAVA_OPTS="$JAVA_OPTS $JAVA_VM -Djruby.memory.max=${JAVA_MEM} -Djruby.stack.max=${JAVA_STACK}" |
466 |
-+JAVA_OPTS="$JAVA_OPTS $JAVA_VM -Djruby.memory.max=${JAVA_MEM} -Djruby.stack.max=${JAVA_STACK} -Djruby.bindir=/usr/bin" |
467 |
- |
468 |
- # Append the rest of the arguments |
469 |
- ruby_args="${ruby_args} $@" |
470 |
-@@ -257,33 +202,17 @@ |
471 |
- |
472 |
- JAVA_OPTS="$JAVA_OPTS $JAVA_MEM $JAVA_STACK" |
473 |
- |
474 |
--JFFI_BOOT="" |
475 |
--if [ -d $JRUBY_HOME/lib/native/ ]; then |
476 |
-- for d in $JRUBY_HOME/lib/native/*`uname -s`; do |
477 |
-- if [ -z "$JFFI_BOOT" ]; then |
478 |
-- JFFI_BOOT="$d" |
479 |
-- else |
480 |
-- JFFI_BOOT="$JFFI_BOOT:$d" |
481 |
-- fi |
482 |
-- done |
483 |
--fi |
484 |
--JFFI_OPTS="-Djffi.boot.library.path=$JFFI_BOOT" |
485 |
- |
486 |
- |
487 |
- if [ "$nailgun_client" != "" ]; then |
488 |
-- if [ -f $JRUBY_HOME/tool/nailgun/ng ]; then |
489 |
-- exec $JRUBY_HOME/tool/nailgun/ng org.jruby.util.NailMain $JRUBY_OPTS "$@" |
490 |
-- else |
491 |
-- echo "error: ng executable not found; run 'make' in ${JRUBY_HOME}/tool/nailgun" |
492 |
-- exit 1 |
493 |
-- fi |
494 |
-+ exec /usr/bin/ng org.jruby.util.NailMain $JRUBY_OPTS "$@" |
495 |
- else |
496 |
- if [ "$VERIFY_JRUBY" != "" ]; then |
497 |
- if [ "$PROFILE_ARGS" != "" ]; then |
498 |
- echo "Running with instrumented profiler" |
499 |
- fi |
500 |
- |
501 |
-- "$JAVACMD" $PROFILE_ARGS $JAVA_OPTS "$JFFI_OPTS" "${java_args[@]}" -classpath "$JRUBY_CP$CP_DELIMITER$CP$CP_DELIMITER$CLASSPATH" \ |
502 |
-+ "${JAVACMD:-java}" $PROFILE_ARGS $JAVA_OPTS "$JFFI_OPTS" "${java_args[@]}" -classpath "$JRUBY_CP:$CP:$CLASSPATH" \ |
503 |
- "-Djruby.home=$JRUBY_HOME" \ |
504 |
- "-Djruby.lib=$JRUBY_HOME/lib" -Djruby.script=jruby \ |
505 |
- "-Djruby.shell=$JRUBY_SHELL" \ |
506 |
-@@ -301,7 +232,7 @@ |
507 |
- |
508 |
- exit $JRUBY_STATUS |
509 |
- else |
510 |
-- exec $JAVACMD $JAVA_OPTS $JFFI_OPTS ${java_args} -Xbootclasspath/a:$JRUBY_CP -classpath $CP$CP_DELIMITER$CLASSPATH \ |
511 |
-+ exec ${JAVACMD:-java} $JAVA_OPTS $JFFI_OPTS ${java_args} -Xbootclasspath/a:$JRUBY_CP -classpath $CP:$CLASSPATH \ |
512 |
- -Djruby.home=$JRUBY_HOME \ |
513 |
- -Djruby.lib=$JRUBY_HOME/lib -Djruby.script=jruby \ |
514 |
- -Djruby.shell=$JRUBY_SHELL \ |
515 |
|
516 |
diff --git a/dev-java/jruby/files/jruby-bash-launcher.patch b/dev-java/jruby/files/jruby-bash-launcher.patch |
517 |
deleted file mode 100644 |
518 |
index d23f6cf..0000000 |
519 |
--- a/dev-java/jruby/files/jruby-bash-launcher.patch |
520 |
+++ /dev/null |
521 |
@@ -1,180 +0,0 @@ |
522 |
-Author: Ralph Sennhauser <sera@g.o> |
523 |
- |
524 |
-Set JRUBY_HOME, JRUBY_CP, CP and JAVACMD as appropriate for Gentoo. |
525 |
-Remove JFFI_OPTS as the system jar knows where to look for the native lib. |
526 |
- |
527 |
-diff --git a/bin/jruby.bash b/bin/jruby.bash |
528 |
-index 731f85e..8299557 100755 |
529 |
---- a/bin/jruby.bash |
530 |
-+++ b/bin/jruby.bash |
531 |
-@@ -25,31 +25,7 @@ if [ -z "$JAVA_VM" ]; then |
532 |
- JAVA_VM=-client |
533 |
- fi |
534 |
- |
535 |
--## resolve links - $0 may be a link to home |
536 |
--PRG=$0 |
537 |
--progname=`basename "$0"` |
538 |
-- |
539 |
--while [ -h "$PRG" ] ; do |
540 |
-- ls=`ls -ld "$PRG"` |
541 |
-- link=`expr "$ls" : '.*-> \(.*\)$'` |
542 |
-- if expr "$link" : '.*/.*' > /dev/null; then |
543 |
-- if expr "$link" : '/' > /dev/null; then |
544 |
-- PRG="$link" |
545 |
-- else |
546 |
-- PRG="`dirname ${PRG}`/${link}" |
547 |
-- fi |
548 |
-- else |
549 |
-- PRG="`dirname $PRG`/$link" |
550 |
-- fi |
551 |
--done |
552 |
-- |
553 |
--JRUBY_HOME_1=`dirname "$PRG"` # the ./bin dir |
554 |
--if [ "$JRUBY_HOME_1" = '.' ] ; then |
555 |
-- cwd=`pwd` |
556 |
-- JRUBY_HOME=`dirname $cwd` # JRUBY-2699 |
557 |
--else |
558 |
-- JRUBY_HOME=`dirname "$JRUBY_HOME_1"` # the . dir |
559 |
--fi |
560 |
-+JRUBY_HOME="${JRUBY_HOME:-/usr/share/jruby}" |
561 |
- |
562 |
- if [ -z "$JRUBY_OPTS" ] ; then |
563 |
- JRUBY_OPTS="" |
564 |
-@@ -81,17 +57,7 @@ for opt in ${JRUBY_OPTS[@]}; do |
565 |
- done |
566 |
- JRUBY_OPTS=${JRUBY_OPTS_TEMP} |
567 |
- |
568 |
--if [ -z "$JAVACMD" ] ; then |
569 |
-- if [ -z "$JAVA_HOME" ] ; then |
570 |
-- JAVACMD='java' |
571 |
-- else |
572 |
-- if $cygwin; then |
573 |
-- JAVACMD="`cygpath -u "$JAVA_HOME"`/bin/java" |
574 |
-- else |
575 |
-- JAVACMD="$JAVA_HOME/bin/java" |
576 |
-- fi |
577 |
-- fi |
578 |
--fi |
579 |
-+JAVACMD=java |
580 |
- |
581 |
- if [ -z "$JAVA_MEM" ] ; then |
582 |
- JAVA_MEM=-Xmx500m |
583 |
-@@ -132,21 +98,7 @@ JRUBY_SHELL=/bin/sh |
584 |
- |
585 |
- CP_DELIMITER=":" |
586 |
- |
587 |
--# add main jruby jar to the bootclasspath |
588 |
--for j in "$JRUBY_HOME"/lib/jruby.jar "$JRUBY_HOME"/lib/jruby-complete.jar; do |
589 |
-- if [ ! -e "$j" ]; then |
590 |
-- continue |
591 |
-- fi |
592 |
-- if [ "$JRUBY_CP" ]; then |
593 |
-- JRUBY_CP="$JRUBY_CP$CP_DELIMITER$j" |
594 |
-- else |
595 |
-- JRUBY_CP="$j" |
596 |
-- fi |
597 |
-- if [ $JRUBY_ALREADY_ADDED ]; then |
598 |
-- echo "WARNING: more than one JRuby JAR found in lib directory" |
599 |
-- fi |
600 |
-- JRUBY_ALREADY_ADDED=true |
601 |
--done |
602 |
-+JRUBY_CP="$(java-config-2 -d -p jruby)" |
603 |
- |
604 |
- if $cygwin; then |
605 |
- JRUBY_CP=`cygpath -p -w "$JRUBY_CP"` |
606 |
-@@ -154,29 +106,7 @@ fi |
607 |
- |
608 |
- # ----- Set Up The System Classpath ------------------------------------------- |
609 |
- |
610 |
--if [ "$JRUBY_PARENT_CLASSPATH" != "" ]; then |
611 |
-- # Use same classpath propagated from parent jruby |
612 |
-- CP=$JRUBY_PARENT_CLASSPATH |
613 |
--else |
614 |
-- # add other jars in lib to CP for command-line execution |
615 |
-- for j in "$JRUBY_HOME"/lib/*.jar; do |
616 |
-- if [ "$j" == "$JRUBY_HOME"/lib/jruby.jar ]; then |
617 |
-- continue |
618 |
-- fi |
619 |
-- if [ "$j" == "$JRUBY_HOME"/lib/jruby-complete.jar ]; then |
620 |
-- continue |
621 |
-- fi |
622 |
-- if [ "$CP" ]; then |
623 |
-- CP="$CP$CP_DELIMITER$j" |
624 |
-- else |
625 |
-- CP="$j" |
626 |
-- fi |
627 |
-- done |
628 |
-- |
629 |
-- if $cygwin; then |
630 |
-- CP=`cygpath -p -w "$CP"` |
631 |
-- fi |
632 |
--fi |
633 |
-+CP="${JRUBY_PARENT_CLASSPATH}" |
634 |
- |
635 |
- if $cygwin; then |
636 |
- # switch delimiter only after building Unix style classpaths |
637 |
-@@ -254,15 +184,7 @@ do |
638 |
- java_args=("${java_args[@]}" "-Djava.awt.headless=true") ;; |
639 |
- # Run under JDB |
640 |
- --jdb) |
641 |
-- if [ -z "$JAVA_HOME" ] ; then |
642 |
-- JAVACMD='jdb' |
643 |
-- else |
644 |
-- if $cygwin; then |
645 |
-- JAVACMD="`cygpath -u "$JAVA_HOME"`/bin/jdb" |
646 |
-- else |
647 |
-- JAVACMD="$JAVA_HOME/bin/jdb" |
648 |
-- fi |
649 |
-- fi |
650 |
-+ JAVACMD='jdb' |
651 |
- java_args=("${java_args[@]}" "-sourcepath" "$JRUBY_HOME/lib/ruby/1.8:.") |
652 |
- JRUBY_OPTS=("${JRUBY_OPTS[@]}" "-X+C") ;; |
653 |
- --client) |
654 |
-@@ -310,18 +232,6 @@ set -- "${ruby_args[@]}" |
655 |
- |
656 |
- JAVA_OPTS="$JAVA_OPTS $JAVA_MEM $JAVA_MEM_MIN $JAVA_STACK" |
657 |
- |
658 |
--JFFI_BOOT="" |
659 |
--if [ -d "$JRUBY_HOME/lib/native/" ]; then |
660 |
-- for d in $JRUBY_HOME/lib/native/*`uname -s`; do |
661 |
-- if [ -z "$JFFI_BOOT" ]; then |
662 |
-- JFFI_BOOT="$d" |
663 |
-- else |
664 |
-- JFFI_BOOT="$JFFI_BOOT:$d" |
665 |
-- fi |
666 |
-- done |
667 |
--fi |
668 |
--JFFI_OPTS="-Djffi.boot.library.path=$JFFI_BOOT" |
669 |
-- |
670 |
- if $cygwin; then |
671 |
- JRUBY_HOME=`cygpath --mixed "$JRUBY_HOME"` |
672 |
- JRUBY_SHELL=`cygpath --mixed "$JRUBY_SHELL"` |
673 |
-@@ -354,7 +264,8 @@ if [ "$VERIFY_JRUBY" != "" ]; then |
674 |
- echo "Running with instrumented profiler" |
675 |
- fi |
676 |
- |
677 |
-- "$JAVACMD" $PROFILE_ARGS $JAVA_OPTS "$JFFI_OPTS" "${java_args[@]}" -classpath "$JRUBY_CP$CP_DELIMITER$CP$CP_DELIMITER$CLASSPATH" \ |
678 |
-+ "$JAVACMD" $PROFILE_ARGS $JAVA_OPTS "${java_args[@]}" -classpath "$JRUBY_CP$CP_DELIMITER$CP$CP_DELIMITER$CLASSPATH" \ |
679 |
- "-Djruby.home=$JRUBY_HOME" \ |
680 |
-+ "-Djruby.bindir=/usr/bin" \ |
681 |
- "-Djruby.lib=$JRUBY_HOME/lib" -Djruby.script=jruby \ |
682 |
- "-Djruby.shell=$JRUBY_SHELL" \ |
683 |
-@@ -377,7 +287,7 @@ if [ "$VERIFY_JRUBY" != "" ]; then |
684 |
- else |
685 |
- if $cygwin; then |
686 |
- # exec doed not work correctly with cygwin bash |
687 |
-- "$JAVACMD" $JAVA_OPTS "$JFFI_OPTS" "${java_args[@]}" -Xbootclasspath/a:"$JRUBY_CP" -classpath "$CP$CP_DELIMITER$CLASSPATH" \ |
688 |
-+ "$JAVACMD" $JAVA_OPTS "${java_args[@]}" -Xbootclasspath/a:"$JRUBY_CP" -classpath "$CP$CP_DELIMITER$CLASSPATH" \ |
689 |
- "-Djruby.home=$JRUBY_HOME" \ |
690 |
- "-Djruby.lib=$JRUBY_HOME/lib" -Djruby.script=jruby \ |
691 |
- "-Djruby.shell=$JRUBY_SHELL" \ |
692 |
-@@ -390,7 +300,8 @@ else |
693 |
- |
694 |
- exit $JRUBY_STATUS |
695 |
- else |
696 |
-- exec "$JAVACMD" $JAVA_OPTS "$JFFI_OPTS" "${java_args[@]}" -Xbootclasspath/a:"$JRUBY_CP" -classpath "$CP$CP_DELIMITER$CLASSPATH" \ |
697 |
-+ exec "$JAVACMD" $JAVA_OPTS "${java_args[@]}" -Xbootclasspath/a:"$JRUBY_CP" -classpath "$CP$CP_DELIMITER$CLASSPATH" \ |
698 |
- "-Djruby.home=$JRUBY_HOME" \ |
699 |
-+ "-Djruby.bindir=/usr/bin" \ |
700 |
- "-Djruby.lib=$JRUBY_HOME/lib" -Djruby.script=jruby \ |
701 |
- "-Djruby.shell=$JRUBY_SHELL" \ |
702 |
|
703 |
diff --git a/dev-java/jruby/files/user-test-fixes.patch b/dev-java/jruby/files/user-test-fixes.patch |
704 |
deleted file mode 100644 |
705 |
index 6688fa9..0000000 |
706 |
--- a/dev-java/jruby/files/user-test-fixes.patch |
707 |
+++ /dev/null |
708 |
@@ -1,124 +0,0 @@ |
709 |
-diff -Naur jruby-1.2.0.orig/test/externals/ruby_test/lib/test/helper.rb jruby-1.2.0/test/externals/ruby_test/lib/test/helper.rb |
710 |
---- jruby-1.2.0.orig/test/externals/ruby_test/lib/test/helper.rb 2009-03-16 15:16:02.000000000 +0000 |
711 |
-+++ jruby-1.2.0/test/externals/ruby_test/lib/test/helper.rb 2009-04-18 00:34:02.198853097 +0100 |
712 |
-@@ -235,31 +235,34 @@ |
713 |
- # Get the user of the current process. |
714 |
- # |
715 |
- def get_user |
716 |
-- user = ENV['USERNAME'] || ENV['USER'] |
717 |
- if WINDOWS |
718 |
-- if user.nil? |
719 |
-- buf = 0.chr * MAX_PATH |
720 |
-- if GetUserName.call(buf, buf.length) == 0 |
721 |
-- raise "Unable to get user name" |
722 |
-- end |
723 |
-- user = buf.unpack("A*") |
724 |
-+ buf = 0.chr * MAX_PATH |
725 |
-+ if GetUserName.call(buf, buf.length) != 0 |
726 |
-+ buf.unpack("A*") |
727 |
-+ elsif user = ENV['USERNAME'] || ENV['USER'] |
728 |
-+ user |
729 |
-+ else |
730 |
-+ raise "Unable to get user name" |
731 |
- end |
732 |
- else |
733 |
-- user ||= Etc.getpwuid(Process.uid).name |
734 |
-+ Etc.getpwuid(Process.uid).name |
735 |
- end |
736 |
-- user |
737 |
- end |
738 |
- |
739 |
-- # Returns the home directory of the current process owner. |
740 |
-- # |
741 |
-+ # Returns the home directory of the current process owner |
742 |
-+ # according to the HOME/USERPROFILE variable. |
743 |
- def get_home |
744 |
-- home = ENV['HOME'] || ENV['USERPROFILE'] |
745 |
-+ ENV['HOME'] || ENV['USERPROFILE'] || get_real_home |
746 |
-+ end |
747 |
-+ |
748 |
-+ # Returns the home directory of the current process owner |
749 |
-+ # according to the system. |
750 |
-+ def get_real_home |
751 |
- if WINDOWS |
752 |
-- home ||= "C:\\Documents and Settings\\" + get_user |
753 |
-+ "C:\\Documents and Settings\\" + get_user |
754 |
- else |
755 |
-- home ||= Etc.getpwuid(Process.uid).dir |
756 |
-+ Etc.getpwuid(Process.uid).dir |
757 |
- end |
758 |
-- home |
759 |
- end |
760 |
- |
761 |
- # Returns the current umask of the process. |
762 |
-diff -Naur jruby-1.2.0.orig/test/externals/ruby_test/test/core/File/class/tc_expand_path.rb jruby-1.2.0/test/externals/ruby_test/test/core/File/class/tc_expand_path.rb |
763 |
---- jruby-1.2.0.orig/test/externals/ruby_test/test/core/File/class/tc_expand_path.rb 2009-03-16 15:15:49.000000000 +0000 |
764 |
-+++ jruby-1.2.0/test/externals/ruby_test/test/core/File/class/tc_expand_path.rb 2009-04-18 00:20:58.966617568 +0100 |
765 |
-@@ -12,6 +12,7 @@ |
766 |
- def setup |
767 |
- @user = get_user |
768 |
- @home = get_home |
769 |
-+ @real_home = get_real_home |
770 |
- @pwd = Dir.pwd |
771 |
- ENV['HOME'] = ENV['USERPROFILE'] if WINDOWS |
772 |
- end |
773 |
-@@ -88,17 +89,21 @@ |
774 |
- end |
775 |
- |
776 |
- def test_expand_path_with_tilde |
777 |
-- assert_equal(@home, File.expand_path("~#{@user}")) |
778 |
-- assert_equal(File.join(@home, 'bin'), File.expand_path("~#{@user}/bin")) |
779 |
-+ { "~" => @home, "~#{@user}" => @real_home }.each do |tilde,path| |
780 |
-+ assert_equal(path, File.expand_path(tilde)) |
781 |
-+ assert_equal(File.join(path, 'bin'), File.expand_path("#{tilde}/bin")) |
782 |
-+ end |
783 |
- end |
784 |
- |
785 |
- # Second argument ignored if tilde is present and it's at position 0. |
786 |
- def test_expand_path_with_tilde_and_dir |
787 |
-- assert_equal(@home, File.expand_path("~#{@user}", '.')) |
788 |
-- assert_equal(@home, File.expand_path("~#{@user}", '..')) |
789 |
-- assert_equal(@home, File.expand_path("~#{@user}", '/tmp')) |
790 |
-- assert_equal(@home, File.expand_path("~#{@user}", '../tmp')) |
791 |
-- assert_equal(File.join(@home, 'bin'), File.expand_path("~#{@user}/bin", '/tmp')) |
792 |
-+ { "~" => @home, "~#{@user}" => @real_home }.each do |tilde,path| |
793 |
-+ assert_equal(path, File.expand_path(tilde, '.')) |
794 |
-+ assert_equal(path, File.expand_path(tilde, '..')) |
795 |
-+ assert_equal(path, File.expand_path(tilde, '/tmp')) |
796 |
-+ assert_equal(path, File.expand_path(tilde, '../tmp')) |
797 |
-+ assert_equal(File.join(path, 'bin'), File.expand_path("#{tilde}/bin", '/tmp')) |
798 |
-+ end |
799 |
- end |
800 |
- |
801 |
- def test_expand_path_returns_tainted_string |
802 |
-@@ -120,5 +126,6 @@ |
803 |
- @pwd = nil |
804 |
- @user = nil |
805 |
- @home = nil |
806 |
-+ @real_home = nil |
807 |
- end |
808 |
- end |
809 |
-diff -Naur jruby-1.2.0.orig/test/externals/ruby_test/test/core/ProcessGID/class/tc_rid.rb jruby-1.2.0/test/externals/ruby_test/test/core/ProcessGID/class/tc_rid.rb |
810 |
---- jruby-1.2.0.orig/test/externals/ruby_test/test/core/ProcessGID/class/tc_rid.rb 2009-03-16 15:16:00.000000000 +0000 |
811 |
-+++ jruby-1.2.0/test/externals/ruby_test/test/core/ProcessGID/class/tc_rid.rb 2009-04-18 21:24:02.653686353 +0100 |
812 |
-@@ -12,7 +12,7 @@ |
813 |
- |
814 |
- def setup |
815 |
- unless WINDOWS |
816 |
-- @gid = Etc.getpwnam(Etc.getlogin).gid |
817 |
-+ @gid = `id -g`.to_i |
818 |
- end |
819 |
- end |
820 |
- |
821 |
-diff -Naur jruby-1.2.0.orig/test/externals/ruby_test/test/core/ProcessUID/class/tc_rid.rb jruby-1.2.0/test/externals/ruby_test/test/core/ProcessUID/class/tc_rid.rb |
822 |
---- jruby-1.2.0.orig/test/externals/ruby_test/test/core/ProcessUID/class/tc_rid.rb 2009-03-16 15:15:50.000000000 +0000 |
823 |
-+++ jruby-1.2.0/test/externals/ruby_test/test/core/ProcessUID/class/tc_rid.rb 2009-04-18 21:30:26.748686198 +0100 |
824 |
-@@ -12,7 +12,7 @@ |
825 |
- |
826 |
- def setup |
827 |
- unless WINDOWS |
828 |
-- @uid = Etc.getpwnam(Etc.getlogin).uid |
829 |
-+ @uid = `id -u`.to_i |
830 |
- end |
831 |
- end |
832 |
- |
833 |
|
834 |
diff --git a/dev-java/jruby/jruby-1.6.4.ebuild b/dev-java/jruby/jruby-1.6.4.ebuild |
835 |
deleted file mode 100644 |
836 |
index 8d18cad..0000000 |
837 |
--- a/dev-java/jruby/jruby-1.6.4.ebuild |
838 |
+++ /dev/null |
839 |
@@ -1,193 +0,0 @@ |
840 |
-# Copyright 1999-2012 Gentoo Foundation |
841 |
-# Distributed under the terms of the GNU General Public License v2 |
842 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.5.6.ebuild,v 1.2 2011/06/14 18:59:32 maekke Exp $ |
843 |
- |
844 |
-EAPI="2" |
845 |
-JAVA_PKG_IUSE="doc source test" |
846 |
-inherit eutils java-pkg-2 java-ant-2 |
847 |
- |
848 |
-MY_PV="${PV/_rc1/RC1}" |
849 |
- |
850 |
-DESCRIPTION="Java-based Ruby interpreter implementation" |
851 |
-HOMEPAGE="http://jruby.codehaus.org/" |
852 |
-SRC_URI="http://jruby.org.s3.amazonaws.com/downloads/${PV}/${PN}-src-${PV}.tar.gz" |
853 |
-LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )" |
854 |
-SLOT="0" |
855 |
-KEYWORDS="~amd64 ~x86" |
856 |
-IUSE="bsf ssl" |
857 |
- |
858 |
-CDEPEND=">=dev-java/bytelist-1.0.8:0 |
859 |
- >=dev-java/constantine-0.6:0 |
860 |
- >=dev-java/jline-0.9.94:0 |
861 |
- >=dev-java/joni-1.1.3:0 |
862 |
- >=dev-java/jnr-posix-1.1.3:0 |
863 |
- >=dev-java/jnr-netdb-1.0:0 |
864 |
- >=dev-java/jvyamlb-0.2.5:0 |
865 |
- >=dev-java/asm-3.2:3 |
866 |
- >=dev-java/jcodings-1.0.5:0 |
867 |
- >=dev-java/jffi-0.7_pre:0.4 |
868 |
- dev-java/joda-time:0 |
869 |
- dev-util/jay:0[java] |
870 |
- dev-java/nailgun:0 |
871 |
- dev-java/jaffl:0 |
872 |
- dev-java/jgrapht:0 |
873 |
- dev-java/ant-core:0 |
874 |
- dev-java/bsf:2.3 |
875 |
- dev-java/osgi-core-api |
876 |
- dev-java/snakeyaml" |
877 |
- |
878 |
-RDEPEND="${CDEPEND} |
879 |
- >=virtual/jre-1.6" |
880 |
- |
881 |
-DEPEND="${CDEPEND} |
882 |
- >=virtual/jdk-1.6 |
883 |
- test? ( |
884 |
- dev-java/ant-junit4:0 |
885 |
- dev-java/ant-trax:0 |
886 |
- dev-java/junit:4 |
887 |
- java-virtuals/jdk-with-com-sun |
888 |
- dev-java/commons-logging:0 |
889 |
- dev-java/xalan:0 |
890 |
- >=dev-java/jna-posix-1.0.1:0 |
891 |
- ) |
892 |
- !!<dev-ruby/jruby-1.3.1-r1" |
893 |
- |
894 |
-PDEPEND="ssl? ( dev-ruby/jruby-openssl )" |
895 |
- |
896 |
-# Tests fail. |
897 |
-# Need to stop injecting jar's into classpath. |
898 |
-RESTRICT="test" |
899 |
- |
900 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
901 |
- |
902 |
-RUBY_HOME=/usr/share/${PN}/lib/ruby |
903 |
-SITE_RUBY=${RUBY_HOME}/site_ruby |
904 |
-GEMS=${RUBY_HOME}/gems |
905 |
- |
906 |
-JAVA_ANT_REWRITE_CLASSPATH="true" |
907 |
-JAVA_ANT_IGNORE_SYSTEM_CLASSES="true" |
908 |
-EANT_GENTOO_CLASSPATH="ant-core asm-3 bsf-2.3 bytelist constantine jay \ |
909 |
-jcodings jffi-0.4 jline constantine \ |
910 |
-joda-time joni jnr-posix jnr-netdb jvyamlb nailgun jaffl jgrapht osgi-core-api \ |
911 |
-snakeyaml" |
912 |
-EANT_NEEDS_TOOLS="true" |
913 |
- |
914 |
-pkg_setup() { |
915 |
- unset RUBYOPT |
916 |
- java-pkg-2_pkg_setup |
917 |
- |
918 |
- local fail |
919 |
- |
920 |
- for directory in "${GEMS}" "${SITE_RUBY}"; do |
921 |
- if [[ -L ${directory} ]]; then |
922 |
- eerror "${directory} is a symlink. Please do the following to resolve the situation:" |
923 |
- echo 'emerge -an app-portage/gentoolkit' |
924 |
- echo 'equery -qC b '"${directory}"' | sort | uniq | sed s/^/=/ > ~/jruby.fix' |
925 |
- echo 'emerge -1C $(< ~/jruby.fix)' |
926 |
- echo "rm ${directory}" |
927 |
- echo 'emerge -1 $(< ~/jruby.fix)' |
928 |
- echo 'rm ~/jruby.fix' |
929 |
- |
930 |
- eerror "For more information, please see http://bugs.gentoo.org/show_bug.cgi?id=302187" |
931 |
- fail="true" |
932 |
- fi |
933 |
- done |
934 |
- |
935 |
- if [[ -n ${fail} ]]; then |
936 |
- die "Please address the above errors, then run emerge --resume" |
937 |
- fi |
938 |
-} |
939 |
- |
940 |
-java_prepare() { |
941 |
- epatch "${FILESDIR}"/${PN}-1.6.0-system-jars.patch |
942 |
- epatch "${FILESDIR}/1.5.1/build.xml.patch" |
943 |
- |
944 |
- # We don't need to use Retroweaver. There is a jarjar and a regular jar |
945 |
- # target but even with jarjarclean, both are a pain. The latter target |
946 |
- # is slightly easier so go with this one. |
947 |
- sed -r -i \ |
948 |
- -e 's/maxmemory="128m"/maxmemory="192m"/' \ |
949 |
- -e "/RetroWeaverTask/d" \ |
950 |
- -e "/<zipfileset .+\/>/d" \ |
951 |
- build.xml || die |
952 |
- |
953 |
- sed -i -e '/Arndt/d' src/org/jruby/RubyBigDecimal.java |
954 |
- |
955 |
- # Delete the bundled JARs but keep invokedynamic.jar. |
956 |
- # No source is available and it's only a dummy anyway. |
957 |
- find build_lib -name "*.jar" ! -name "jsr292-mock.jar" ! -name "yecht.jar" -delete || die |
958 |
- |
959 |
- # change some defaults for Gentoo to work properly |
960 |
- cat - >> src/org/jruby/jruby.properties <<EOF |
961 |
-ruby.bindir = /usr/bin |
962 |
-EOF |
963 |
-} |
964 |
- |
965 |
-src_compile() { |
966 |
- local flags="" |
967 |
- use bsf && flags="-Dbsf.present=true" |
968 |
- |
969 |
- export RUBYOPT="" |
970 |
- einfo $RUBYOPT |
971 |
- #eant jar $(use_doc apidocs) -Djdk1.5+=true ${flags} |
972 |
- eant -Djdk1.5+=true ${flags} |
973 |
-} |
974 |
- |
975 |
-src_test() { |
976 |
- if [ ${UID} == 0 ] ; then |
977 |
- ewarn 'The tests will fail if run as root so skipping them.' |
978 |
- ewarn 'Enable FEATURES="userpriv" if you want to run them.' |
979 |
- return |
980 |
- fi |
981 |
- # Our jruby.jar is unbundled so we need to add the classpath to this test. |
982 |
- sed -i "s:java -jar:java -Xbootclasspath/a\:#{ENV['JRUBY_CP']} -jar:g" test/test_load_compiled_ruby_class_from_classpath.rb || die |
983 |
- sed -i "s@:refid => 'build.classpath'@:path =>\"#{ENV['JRUBY_CP']}:lib/jruby.jar\"@g" \ |
984 |
- rakelib/commands.rake || die |
985 |
- #sed -i "s@:refid => 'test.class.path'@:path => \"#{ENV['JRUBY_CP']}@g" \ |
986 |
- # rakelib/commands.rake || die |
987 |
- |
988 |
- #bsf optionally depends on jruby, which means that the previously |
989 |
- #installed jruby will be added to classpath, nasty things will happen. |
990 |
- local cpath=`java-pkg_getjars ${EANT_GENTOO_CLASSPATH// /,},junit-4` |
991 |
- cpath="$(echo ${cpath} | sed -e "s_${ROOT}/usr/share/jruby/lib/jruby.jar:__g")" |
992 |
- cpath="${cpath}:$(java-pkg_getjars --build-only commons-logging,xalan)" |
993 |
- EANT_GENTOO_CLASSPATH="" |
994 |
- |
995 |
- local flags="" |
996 |
- use bsf && flags="-Dbsf.present=true" |
997 |
- |
998 |
- #Clear RUBYOPT |
999 |
- export RUBYOPT="" |
1000 |
- export JRUBY_CP="${cpath}" |
1001 |
- ANT_TASKS="ant-junit4 ant-trax" \ |
1002 |
- JRUBY_OPTS="" eant test -Djdk1.5+=true -Djruby.bindir=bin \ |
1003 |
- -Dgentoo.classpath="${cpath}" ${flags} |
1004 |
-} |
1005 |
- |
1006 |
-src_install() { |
1007 |
- local bin |
1008 |
- |
1009 |
- java-pkg_dojar lib/${PN}.jar |
1010 |
- dodoc README docs/{*.txt,README.*} || die |
1011 |
- |
1012 |
- use doc && java-pkg_dojavadoc docs/api |
1013 |
- use source && java-pkg_dosrc src/org |
1014 |
- |
1015 |
- # We run the sed here in install so that we don't get the wrong |
1016 |
- # data during the test phase! |
1017 |
- sed \ |
1018 |
- -e '/++ebuild-cut-here++/, /--ebuild-cut-here--/ d' \ |
1019 |
- -e '/^JRUBY_HOME=/s:=:=/usr/share/jruby:' \ |
1020 |
- bin/jruby.sh > "${T}"/jruby |
1021 |
- |
1022 |
- dobin "${T}"/jruby "${S}"/bin/j{irb{,_swing},rubyc} || die |
1023 |
- |
1024 |
- insinto "${RUBY_HOME}" |
1025 |
- doins -r "${S}"/lib/ruby/{1.8,1.9,site_ruby} || die |
1026 |
- |
1027 |
- # Remove all the references to RubyGems as we're just going to |
1028 |
- # install it through dev-ruby/rubygems. |
1029 |
- find "${D}${RUBY_HOME}" -type f \ |
1030 |
- '(' '(' -path '*rubygems*' -not -name 'jruby.rb' ')' -or -name 'ubygems.rb' -or -name 'datadir.rb' ')' \ |
1031 |
- -delete || die |
1032 |
-} |
1033 |
|
1034 |
diff --git a/dev-java/jruby/jruby-1.6.5.1.ebuild b/dev-java/jruby/jruby-1.6.5.1.ebuild |
1035 |
deleted file mode 100644 |
1036 |
index 13df9c3..0000000 |
1037 |
--- a/dev-java/jruby/jruby-1.6.5.1.ebuild |
1038 |
+++ /dev/null |
1039 |
@@ -1,198 +0,0 @@ |
1040 |
-# Copyright 1999-2012 Gentoo Foundation |
1041 |
-# Distributed under the terms of the GNU General Public License v2 |
1042 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.5.6.ebuild,v 1.2 2011/06/14 18:59:32 maekke Exp $ |
1043 |
- |
1044 |
-EAPI="4" |
1045 |
-JAVA_PKG_IUSE="doc source test" |
1046 |
-inherit eutils java-pkg-2 java-ant-2 |
1047 |
- |
1048 |
-MY_PV="${PV/_rc1/RC1}" |
1049 |
- |
1050 |
-DESCRIPTION="Java-based Ruby interpreter implementation" |
1051 |
-HOMEPAGE="http://jruby.codehaus.org/" |
1052 |
-SRC_URI="http://jruby.org.s3.amazonaws.com/downloads/${PV}/${PN}-src-${PV}.tar.gz" |
1053 |
-LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )" |
1054 |
-SLOT="0" |
1055 |
-KEYWORDS="~amd64 ~x86" |
1056 |
-IUSE="bsf ssl" |
1057 |
- |
1058 |
-# jffi still needed? Or do we call that jnr-ffi? |
1059 |
-# jnr-ffi depends on jffi which depends on libffi |
1060 |
-CDEPEND=">=dev-java/bytelist-1.0.8:0 |
1061 |
- >=dev-java/jline-0.9.94:0 |
1062 |
- >=dev-java/joni-1.1.3:0 |
1063 |
- >=dev-java/jnr-netdb-1.0:0 |
1064 |
- >=dev-java/jvyamlb-0.2.5:0 |
1065 |
- >=dev-java/asm-3.2:3 |
1066 |
- >=dev-java/jcodings-1.0.5:0 |
1067 |
- dev-java/jffi:1.0 |
1068 |
- dev-java/jnr-constants:0 |
1069 |
- dev-java/jnr-ffi:0.5 |
1070 |
- dev-java/jnr-posix:1.1 |
1071 |
- dev-java/joda-time:0 |
1072 |
- dev-util/jay:0[java] |
1073 |
- dev-java/nailgun:0 |
1074 |
- dev-java/jgrapht:0 |
1075 |
- dev-java/ant-core:0 |
1076 |
- dev-java/bsf:2.3 |
1077 |
- dev-java/osgi-core-api:0 |
1078 |
- >=dev-java/snakeyaml-1.9:0" |
1079 |
- |
1080 |
-RDEPEND="${CDEPEND} |
1081 |
- >=virtual/jre-1.6" |
1082 |
- |
1083 |
-# Is jna-posix still needed? Or has that been renamed to jnr-posix? |
1084 |
-# jna-posix is the original project name which was abononed years ago. |
1085 |
-# jnr-posix < 1.1.8 are from the original fork |
1086 |
-# later jnr-posix are from the jnr umbrella project. |
1087 |
-DEPEND="${CDEPEND} |
1088 |
- >=virtual/jdk-1.6 |
1089 |
- test? ( |
1090 |
- dev-java/ant-junit4:0 |
1091 |
- dev-java/ant-trax:0 |
1092 |
- dev-java/junit:4 |
1093 |
- java-virtuals/jdk-with-com-sun |
1094 |
- dev-java/commons-logging:0 |
1095 |
- dev-java/xalan:0 |
1096 |
- ) |
1097 |
- !!<dev-ruby/jruby-1.3.1-r1" |
1098 |
- |
1099 |
-PDEPEND="ssl? ( dev-ruby/jruby-openssl )" |
1100 |
- |
1101 |
-# Tests fail. |
1102 |
-# Need to stop injecting jar's into classpath. |
1103 |
-RESTRICT="test" |
1104 |
- |
1105 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
1106 |
- |
1107 |
-RUBY_HOME=/usr/share/${PN}/lib/ruby |
1108 |
-SITE_RUBY=${RUBY_HOME}/site_ruby |
1109 |
-GEMS=${RUBY_HOME}/gems |
1110 |
- |
1111 |
-JAVA_ANT_REWRITE_CLASSPATH="true" |
1112 |
-JAVA_ANT_IGNORE_SYSTEM_CLASSES="true" |
1113 |
-EANT_GENTOO_CLASSPATH="ant-core asm-3 bsf-2.3 bytelist jnr-constants jay \ |
1114 |
-jcodings jffi-1.0 jline \ |
1115 |
-joda-time joni jnr-ffi-0.5 jnr-posix-1.1 jnr-netdb jvyamlb nailgun jgrapht osgi-core-api \ |
1116 |
-snakeyaml" |
1117 |
-EANT_NEEDS_TOOLS="true" |
1118 |
- |
1119 |
-pkg_setup() { |
1120 |
- unset RUBYOPT |
1121 |
- java-pkg-2_pkg_setup |
1122 |
- |
1123 |
- local fail |
1124 |
- |
1125 |
- for directory in "${GEMS}" "${SITE_RUBY}"; do |
1126 |
- if [[ -L ${directory} ]]; then |
1127 |
- eerror "${directory} is a symlink. Please do the following to resolve the situation:" |
1128 |
- echo 'emerge -an app-portage/gentoolkit' |
1129 |
- echo 'equery -qC b '"${directory}"' | sort | uniq | sed s/^/=/ > ~/jruby.fix' |
1130 |
- echo 'emerge -1C $(< ~/jruby.fix)' |
1131 |
- echo "rm ${directory}" |
1132 |
- echo 'emerge -1 $(< ~/jruby.fix)' |
1133 |
- echo 'rm ~/jruby.fix' |
1134 |
- |
1135 |
- eerror "For more information, please see http://bugs.gentoo.org/show_bug.cgi?id=302187" |
1136 |
- fail="true" |
1137 |
- fi |
1138 |
- done |
1139 |
- |
1140 |
- if [[ -n ${fail} ]]; then |
1141 |
- die "Please address the above errors, then run emerge --resume" |
1142 |
- fi |
1143 |
-} |
1144 |
- |
1145 |
-java_prepare() { |
1146 |
- epatch "${FILESDIR}"/${PN}-bash-launcher.patch |
1147 |
- epatch "${FILESDIR}/1.5.1/build.xml.patch" |
1148 |
- |
1149 |
- # We don't need to use Retroweaver. There is a jarjar and a regular jar |
1150 |
- # target but even with jarjarclean, both are a pain. The latter target |
1151 |
- # is slightly easier so go with this one. |
1152 |
- sed -r -i \ |
1153 |
- -e 's/maxmemory="128m"/maxmemory="192m"/' \ |
1154 |
- -e "/RetroWeaverTask/d" \ |
1155 |
- -e "/yecht/! { /<zipfileset .+\/>/d }" \ |
1156 |
- build.xml || die |
1157 |
- |
1158 |
- sed -i -e '/Arndt/d' src/org/jruby/RubyBigDecimal.java |
1159 |
- |
1160 |
- # Delete the bundled JARs but keep invokedynamic.jar. |
1161 |
- # No source is available and it's only a dummy anyway. |
1162 |
- find build_lib -name "*.jar" ! -name "jsr292-mock.jar" ! -name "yecht.jar" -delete || die |
1163 |
-} |
1164 |
- |
1165 |
-src_compile() { |
1166 |
- # Avoid generating the ri cache since that currently fails. |
1167 |
- local flags="-Dgenerate-ri-cache.hasrun=true" |
1168 |
- #local flags="" |
1169 |
- use bsf && flags="-Dbsf.present=true" |
1170 |
- |
1171 |
- export RUBYOPT="" |
1172 |
- einfo $RUBYOPT |
1173 |
- #eant jar $(use_doc apidocs) -Djdk1.5+=true ${flags} |
1174 |
- eant -Djdk1.5+=true ${flags} |
1175 |
-} |
1176 |
- |
1177 |
-src_test() { |
1178 |
- if [ ${UID} == 0 ] ; then |
1179 |
- ewarn 'The tests will fail if run as root so skipping them.' |
1180 |
- ewarn 'Enable FEATURES="userpriv" if you want to run them.' |
1181 |
- return |
1182 |
- fi |
1183 |
- # Our jruby.jar is unbundled so we need to add the classpath to this test. |
1184 |
- sed -i "s:java -jar:java -Xbootclasspath/a\:#{ENV['JRUBY_CP']} -jar:g" test/test_load_compiled_ruby_class_from_classpath.rb || die |
1185 |
- sed -i "s@:refid => 'build.classpath'@:path =>\"#{ENV['JRUBY_CP']}:lib/jruby.jar\"@g" \ |
1186 |
- rakelib/commands.rake || die |
1187 |
- #sed -i "s@:refid => 'test.class.path'@:path => \"#{ENV['JRUBY_CP']}@g" \ |
1188 |
- # rakelib/commands.rake || die |
1189 |
- |
1190 |
- #bsf optionally depends on jruby, which means that the previously |
1191 |
- #installed jruby will be added to classpath, nasty things will happen. |
1192 |
- local cpath=`java-pkg_getjars ${EANT_GENTOO_CLASSPATH// /,},junit-4` |
1193 |
- cpath="$(echo ${cpath} | sed -e "s_${ROOT}/usr/share/jruby/lib/jruby.jar:__g")" |
1194 |
- cpath="${cpath}:$(java-pkg_getjars --build-only commons-logging,xalan)" |
1195 |
- EANT_GENTOO_CLASSPATH="" |
1196 |
- |
1197 |
- local flags="" |
1198 |
- use bsf && flags="-Dbsf.present=true" |
1199 |
- |
1200 |
- #Clear RUBYOPT |
1201 |
- export RUBYOPT="" |
1202 |
- export JRUBY_CP="${cpath}" |
1203 |
- ANT_TASKS="ant-junit4 ant-trax" \ |
1204 |
- JRUBY_OPTS="" eant test -Djdk1.5+=true -Djruby.bindir=bin \ |
1205 |
- -Dgentoo.classpath="${cpath}" ${flags} |
1206 |
-} |
1207 |
- |
1208 |
-src_install() { |
1209 |
- java-pkg_dojar lib/${PN}.jar |
1210 |
- dodoc README docs/{*.txt,README.*} || die |
1211 |
- |
1212 |
- use doc && java-pkg_dojavadoc docs/api |
1213 |
- use source && java-pkg_dosrc src/org |
1214 |
- |
1215 |
-# Use the bash based launcher to preserve whitespace in arguments. |
1216 |
-# Ie allow >jruby -e "puts 'hello'"< to work otherwise |
1217 |
-# >jruby -e "\"puts 'hello'\""< is needed. |
1218 |
-# |
1219 |
-# # We run the sed here in install so that we don't get the wrong |
1220 |
-# # data during the test phase! |
1221 |
-# sed \ |
1222 |
-# -e '/++ebuild-cut-here++/, /--ebuild-cut-here--/ d' \ |
1223 |
-# -e '/^JRUBY_HOME=/s:=:=/usr/share/jruby:' \ |
1224 |
-# bin/jruby.sh > "${T}"/jruby |
1225 |
- |
1226 |
- newbin bin/jruby.bash jruby |
1227 |
- dobin bin/j{irb{,_swing},rubyc} |
1228 |
- |
1229 |
- insinto "${RUBY_HOME}" |
1230 |
- doins -r "${S}"/lib/ruby/{1.8,1.9,site_ruby} |
1231 |
- |
1232 |
- # Remove all the references to RubyGems as we're just going to |
1233 |
- # install it through dev-ruby/rubygems. |
1234 |
- find "${D}${RUBY_HOME}" -type f \ |
1235 |
- '(' '(' -path '*rubygems*' -not -name 'jruby.rb' ')' -or -name 'ubygems.rb' -or -name 'datadir.rb' ')' \ |
1236 |
- -delete || die |
1237 |
-} |
1238 |
|
1239 |
diff --git a/dev-java/jruby/jruby-1.6.7.ebuild b/dev-java/jruby/jruby-1.6.7.ebuild |
1240 |
deleted file mode 100644 |
1241 |
index 3f85fad..0000000 |
1242 |
--- a/dev-java/jruby/jruby-1.6.7.ebuild |
1243 |
+++ /dev/null |
1244 |
@@ -1,199 +0,0 @@ |
1245 |
-# Copyright 1999-2012 Gentoo Foundation |
1246 |
-# Distributed under the terms of the GNU General Public License v2 |
1247 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jruby/jruby-1.5.6.ebuild,v 1.2 2011/06/14 18:59:32 maekke Exp $ |
1248 |
- |
1249 |
-EAPI="4" |
1250 |
-JAVA_PKG_IUSE="doc source test" |
1251 |
-inherit eutils java-pkg-2 java-ant-2 |
1252 |
- |
1253 |
-MY_PV="${PV/_rc1/RC1}" |
1254 |
- |
1255 |
-DESCRIPTION="Java-based Ruby interpreter implementation" |
1256 |
-HOMEPAGE="http://jruby.codehaus.org/" |
1257 |
-SRC_URI="http://jruby.org.s3.amazonaws.com/downloads/${PV}/${PN}-src-${PV}.tar.gz" |
1258 |
-LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )" |
1259 |
-SLOT="0" |
1260 |
-KEYWORDS="~amd64 ~x86" |
1261 |
-IUSE="bsf ssl" |
1262 |
- |
1263 |
-# jffi still needed? Or do we call that jnr-ffi? |
1264 |
-# jnr-ffi depends on jffi which depends on libffi |
1265 |
-CDEPEND=">=dev-java/bytelist-1.0.8:0 |
1266 |
- >=dev-java/jline-0.9.94:0 |
1267 |
- >=dev-java/joni-1.1.3:0 |
1268 |
- >=dev-java/jnr-netdb-1.0:0 |
1269 |
- >=dev-java/jvyamlb-0.2.5:0 |
1270 |
- >=dev-java/asm-3.2:3 |
1271 |
- >=dev-java/jcodings-1.0.5:0 |
1272 |
- dev-java/jffi:1.0 |
1273 |
- dev-java/jnr-constants:0 |
1274 |
- dev-java/jnr-ffi:0.5 |
1275 |
- dev-java/jnr-posix:1.1 |
1276 |
- dev-java/joda-time:0 |
1277 |
- dev-util/jay:0[java] |
1278 |
- dev-java/nailgun:0 |
1279 |
- dev-java/jgrapht:0 |
1280 |
- dev-java/ant-core:0 |
1281 |
- dev-java/bsf:2.3 |
1282 |
- dev-java/osgi-core-api:0 |
1283 |
- >=dev-java/snakeyaml-1.9:0 |
1284 |
- dev-java/jzlib:1" |
1285 |
- |
1286 |
-RDEPEND="${CDEPEND} |
1287 |
- >=virtual/jre-1.6" |
1288 |
- |
1289 |
-# Is jna-posix still needed? Or has that been renamed to jnr-posix? |
1290 |
-# jna-posix is the original project name which was abononed years ago. |
1291 |
-# jnr-posix < 1.1.8 are from the original fork |
1292 |
-# later jnr-posix are from the jnr umbrella project. |
1293 |
-DEPEND="${CDEPEND} |
1294 |
- >=virtual/jdk-1.6 |
1295 |
- test? ( |
1296 |
- dev-java/ant-junit4:0 |
1297 |
- dev-java/ant-trax:0 |
1298 |
- dev-java/junit:4 |
1299 |
- java-virtuals/jdk-with-com-sun |
1300 |
- dev-java/commons-logging:0 |
1301 |
- dev-java/xalan:0 |
1302 |
- ) |
1303 |
- !!<dev-ruby/jruby-1.3.1-r1" |
1304 |
- |
1305 |
-PDEPEND="ssl? ( dev-ruby/jruby-openssl )" |
1306 |
- |
1307 |
-# Tests fail. |
1308 |
-# Need to stop injecting jar's into classpath. |
1309 |
-RESTRICT="test" |
1310 |
- |
1311 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
1312 |
- |
1313 |
-RUBY_HOME=/usr/share/${PN}/lib/ruby |
1314 |
-SITE_RUBY=${RUBY_HOME}/site_ruby |
1315 |
-GEMS=${RUBY_HOME}/gems |
1316 |
- |
1317 |
-JAVA_ANT_REWRITE_CLASSPATH="true" |
1318 |
-JAVA_ANT_IGNORE_SYSTEM_CLASSES="true" |
1319 |
-EANT_GENTOO_CLASSPATH="ant-core asm-3 bsf-2.3 bytelist jnr-constants jay \ |
1320 |
-jcodings jffi-1.0 jline \ |
1321 |
-joda-time joni jnr-ffi-0.5 jnr-posix-1.1 jnr-netdb jvyamlb nailgun jgrapht osgi-core-api \ |
1322 |
-snakeyaml jzlib-1" |
1323 |
-EANT_NEEDS_TOOLS="true" |
1324 |
- |
1325 |
-pkg_setup() { |
1326 |
- unset RUBYOPT |
1327 |
- java-pkg-2_pkg_setup |
1328 |
- |
1329 |
- local fail |
1330 |
- |
1331 |
- for directory in "${GEMS}" "${SITE_RUBY}"; do |
1332 |
- if [[ -L ${directory} ]]; then |
1333 |
- eerror "${directory} is a symlink. Please do the following to resolve the situation:" |
1334 |
- echo 'emerge -an app-portage/gentoolkit' |
1335 |
- echo 'equery -qC b '"${directory}"' | sort | uniq | sed s/^/=/ > ~/jruby.fix' |
1336 |
- echo 'emerge -1C $(< ~/jruby.fix)' |
1337 |
- echo "rm ${directory}" |
1338 |
- echo 'emerge -1 $(< ~/jruby.fix)' |
1339 |
- echo 'rm ~/jruby.fix' |
1340 |
- |
1341 |
- eerror "For more information, please see http://bugs.gentoo.org/show_bug.cgi?id=302187" |
1342 |
- fail="true" |
1343 |
- fi |
1344 |
- done |
1345 |
- |
1346 |
- if [[ -n ${fail} ]]; then |
1347 |
- die "Please address the above errors, then run emerge --resume" |
1348 |
- fi |
1349 |
-} |
1350 |
- |
1351 |
-java_prepare() { |
1352 |
- epatch "${FILESDIR}"/${PN}-bash-launcher.patch |
1353 |
- epatch "${FILESDIR}/1.5.1/build.xml.patch" |
1354 |
- |
1355 |
- # We don't need to use Retroweaver. There is a jarjar and a regular jar |
1356 |
- # target but even with jarjarclean, both are a pain. The latter target |
1357 |
- # is slightly easier so go with this one. |
1358 |
- sed -r -i \ |
1359 |
- -e 's/maxmemory="128m"/maxmemory="192m"/' \ |
1360 |
- -e "/RetroWeaverTask/d" \ |
1361 |
- -e "/yecht/! { /<zipfileset .+\/>/d }" \ |
1362 |
- build.xml || die |
1363 |
- |
1364 |
- sed -i -e '/Arndt/d' src/org/jruby/RubyBigDecimal.java |
1365 |
- |
1366 |
- # Delete the bundled JARs but keep invokedynamic.jar. |
1367 |
- # No source is available and it's only a dummy anyway. |
1368 |
- find build_lib -name "*.jar" ! -name "jsr292-mock.jar" ! -name "yecht.jar" ! -name 'coro-mock-1.0-SNAPSHOT.jar' -delete || die |
1369 |
-} |
1370 |
- |
1371 |
-src_compile() { |
1372 |
- # Avoid generating the ri cache since that currently fails. |
1373 |
- local flags="-Dgenerate-ri-cache.hasrun=true" |
1374 |
- #local flags="" |
1375 |
- use bsf && flags="-Dbsf.present=true" |
1376 |
- |
1377 |
- export RUBYOPT="" |
1378 |
- einfo $RUBYOPT |
1379 |
- #eant jar $(use_doc apidocs) -Djdk1.5+=true ${flags} |
1380 |
- eant -Djdk1.5+=true ${flags} |
1381 |
-} |
1382 |
- |
1383 |
-src_test() { |
1384 |
- if [ ${UID} == 0 ] ; then |
1385 |
- ewarn 'The tests will fail if run as root so skipping them.' |
1386 |
- ewarn 'Enable FEATURES="userpriv" if you want to run them.' |
1387 |
- return |
1388 |
- fi |
1389 |
- # Our jruby.jar is unbundled so we need to add the classpath to this test. |
1390 |
- sed -i "s:java -jar:java -Xbootclasspath/a\:#{ENV['JRUBY_CP']} -jar:g" test/test_load_compiled_ruby_class_from_classpath.rb || die |
1391 |
- sed -i "s@:refid => 'build.classpath'@:path =>\"#{ENV['JRUBY_CP']}:lib/jruby.jar\"@g" \ |
1392 |
- rakelib/commands.rake || die |
1393 |
- #sed -i "s@:refid => 'test.class.path'@:path => \"#{ENV['JRUBY_CP']}@g" \ |
1394 |
- # rakelib/commands.rake || die |
1395 |
- |
1396 |
- #bsf optionally depends on jruby, which means that the previously |
1397 |
- #installed jruby will be added to classpath, nasty things will happen. |
1398 |
- local cpath=`java-pkg_getjars ${EANT_GENTOO_CLASSPATH// /,},junit-4` |
1399 |
- cpath="$(echo ${cpath} | sed -e "s_${ROOT}/usr/share/jruby/lib/jruby.jar:__g")" |
1400 |
- cpath="${cpath}:$(java-pkg_getjars --build-only commons-logging,xalan)" |
1401 |
- EANT_GENTOO_CLASSPATH="" |
1402 |
- |
1403 |
- local flags="" |
1404 |
- use bsf && flags="-Dbsf.present=true" |
1405 |
- |
1406 |
- #Clear RUBYOPT |
1407 |
- export RUBYOPT="" |
1408 |
- export JRUBY_CP="${cpath}" |
1409 |
- ANT_TASKS="ant-junit4 ant-trax" \ |
1410 |
- JRUBY_OPTS="" eant test -Djdk1.5+=true -Djruby.bindir=bin \ |
1411 |
- -Dgentoo.classpath="${cpath}" ${flags} |
1412 |
-} |
1413 |
- |
1414 |
-src_install() { |
1415 |
- java-pkg_dojar lib/${PN}.jar |
1416 |
- dodoc README docs/{*.txt,README.*} || die |
1417 |
- |
1418 |
- use doc && java-pkg_dojavadoc docs/api |
1419 |
- use source && java-pkg_dosrc src/org |
1420 |
- |
1421 |
-# Use the bash based launcher to preserve whitespace in arguments. |
1422 |
-# Ie allow >jruby -e "puts 'hello'"< to work otherwise |
1423 |
-# >jruby -e "\"puts 'hello'\""< is needed. |
1424 |
-# |
1425 |
-# # We run the sed here in install so that we don't get the wrong |
1426 |
-# # data during the test phase! |
1427 |
-# sed \ |
1428 |
-# -e '/++ebuild-cut-here++/, /--ebuild-cut-here--/ d' \ |
1429 |
-# -e '/^JRUBY_HOME=/s:=:=/usr/share/jruby:' \ |
1430 |
-# bin/jruby.sh > "${T}"/jruby |
1431 |
- |
1432 |
- newbin bin/jruby.bash jruby |
1433 |
- dobin bin/j{irb{,_swing},rubyc} |
1434 |
- |
1435 |
- insinto "${RUBY_HOME}" |
1436 |
- doins -r "${S}"/lib/ruby/{1.8,1.9,site_ruby} |
1437 |
- |
1438 |
- # Remove all the references to RubyGems as we're just going to |
1439 |
- # install it through dev-ruby/rubygems. |
1440 |
- find "${D}${RUBY_HOME}" -type f \ |
1441 |
- '(' '(' -path '*rubygems*' -not -name 'jruby.rb' ')' -or -name 'ubygems.rb' -or -name 'datadir.rb' ')' \ |
1442 |
- -delete || die |
1443 |
-} |
1444 |
|
1445 |
diff --git a/dev-java/jruby/metadata.xml b/dev-java/jruby/metadata.xml |
1446 |
deleted file mode 100644 |
1447 |
index 0b15377..0000000 |
1448 |
--- a/dev-java/jruby/metadata.xml |
1449 |
+++ /dev/null |
1450 |
@@ -1,6 +0,0 @@ |
1451 |
-<?xml version="1.0" encoding="UTF-8"?> |
1452 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1453 |
-<pkgmetadata> |
1454 |
- <herd>java</herd> |
1455 |
- <herd>ruby</herd> |
1456 |
-</pkgmetadata> |
1457 |
|
1458 |
diff --git a/dev-java/jzlib/ChangeLog b/dev-java/jzlib/ChangeLog |
1459 |
deleted file mode 100644 |
1460 |
index 7dc3ef8..0000000 |
1461 |
--- a/dev-java/jzlib/ChangeLog |
1462 |
+++ /dev/null |
1463 |
@@ -1,10 +0,0 @@ |
1464 |
-# ChangeLog for dev-java/jzlib |
1465 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
1466 |
-# $Header: $ |
1467 |
- |
1468 |
-*jzlib-1.1.1 (28 Feb 2012) |
1469 |
- |
1470 |
- 28 Feb 2012; Diego E. Pettenò <flameeyes@g.o> +jzlib-1.1.1.ebuild, |
1471 |
- +metadata.xml: |
1472 |
- Import Chewi's jzlib bump (new slot) as required by JRuby 1.6.7. |
1473 |
- |
1474 |
|
1475 |
diff --git a/dev-java/jzlib/jzlib-1.1.1.ebuild b/dev-java/jzlib/jzlib-1.1.1.ebuild |
1476 |
deleted file mode 100644 |
1477 |
index e3330b6..0000000 |
1478 |
--- a/dev-java/jzlib/jzlib-1.1.1.ebuild |
1479 |
+++ /dev/null |
1480 |
@@ -1,33 +0,0 @@ |
1481 |
-# Copyright 1999-2012 Gentoo Foundation |
1482 |
-# Distributed under the terms of the GNU General Public License v2 |
1483 |
-# $Header: $ |
1484 |
- |
1485 |
-EAPI="4" |
1486 |
-JAVA_PKG_IUSE="doc source" |
1487 |
- |
1488 |
-inherit java-pkg-2 java-pkg-simple |
1489 |
- |
1490 |
-DESCRIPTION="JZlib is a re-implementation of zlib in pure Java" |
1491 |
-HOMEPAGE="http://www.jcraft.com/jzlib/" |
1492 |
-SRC_URI="http://www.jcraft.com/${PN}/${P}.zip" |
1493 |
- |
1494 |
-LICENSE="BSD" |
1495 |
-SLOT="1" |
1496 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1497 |
-IUSE="" |
1498 |
- |
1499 |
-DEPEND=">=virtual/jdk-1.5" |
1500 |
-RDEPEND=">=virtual/jre-1.5" |
1501 |
- |
1502 |
-S="${WORKDIR}/${P}" |
1503 |
-JAVA_SRC_DIR="src/main/java" |
1504 |
- |
1505 |
-java_prepare() { |
1506 |
- # Easier to use java-pkg-simple. |
1507 |
- rm -v pom.xml || die |
1508 |
-} |
1509 |
- |
1510 |
-src_install() { |
1511 |
- java-pkg-simple_src_install |
1512 |
- dodoc README ChangeLog |
1513 |
-} |
1514 |
\ No newline at end of file |
1515 |
|
1516 |
diff --git a/dev-java/jzlib/metadata.xml b/dev-java/jzlib/metadata.xml |
1517 |
deleted file mode 100644 |
1518 |
index 0b15377..0000000 |
1519 |
--- a/dev-java/jzlib/metadata.xml |
1520 |
+++ /dev/null |
1521 |
@@ -1,6 +0,0 @@ |
1522 |
-<?xml version="1.0" encoding="UTF-8"?> |
1523 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1524 |
-<pkgmetadata> |
1525 |
- <herd>java</herd> |
1526 |
- <herd>ruby</herd> |
1527 |
-</pkgmetadata> |