1 |
commit: 3a986dbaac38c90074f35930133343c568a318a7 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 2 05:46:17 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 2 05:46:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a986dba |
7 |
|
8 |
dev-ruby/rjb: cleanup |
9 |
|
10 |
Remove version depending on old jre/jdk. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/787365 |
13 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
14 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
15 |
|
16 |
dev-ruby/rjb/rjb-1.6.4.ebuild | 73 ------------------------------------------- |
17 |
1 file changed, 73 deletions(-) |
18 |
|
19 |
diff --git a/dev-ruby/rjb/rjb-1.6.4.ebuild b/dev-ruby/rjb/rjb-1.6.4.ebuild |
20 |
deleted file mode 100644 |
21 |
index b7a47f4edfd..00000000000 |
22 |
--- a/dev-ruby/rjb/rjb-1.6.4.ebuild |
23 |
+++ /dev/null |
24 |
@@ -1,73 +0,0 @@ |
25 |
-# Copyright 1999-2021 Gentoo Authors |
26 |
-# Distributed under the terms of the GNU General Public License v2 |
27 |
- |
28 |
-EAPI=7 |
29 |
- |
30 |
-USE_RUBY="ruby25 ruby26 ruby27" |
31 |
- |
32 |
-RUBY_FAKEGEM_EXTRADOC="readme.txt ChangeLog" |
33 |
-RUBY_FAKEGEM_TASK_TEST="" |
34 |
- |
35 |
-RUBY_FAKEGEM_EXTRAINSTALL="data" |
36 |
- |
37 |
-RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb) |
38 |
- |
39 |
-inherit java-pkg-2 ruby-fakegem |
40 |
- |
41 |
-DESCRIPTION="Rjb is a Ruby-Java software bridge" |
42 |
-HOMEPAGE="https://github.com/arton/rjb" |
43 |
- |
44 |
-LICENSE="LGPL-2.1" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="~amd64 ~x86" |
47 |
-IUSE="examples hardened" |
48 |
- |
49 |
-DEPEND=">=virtual/jdk-1.5 |
50 |
- hardened? ( sys-apps/paxctl )" |
51 |
-RDEPEND="virtual/jre" |
52 |
- |
53 |
-pkg_setup() { |
54 |
- ruby-ng_pkg_setup |
55 |
- java-pkg-2_pkg_setup |
56 |
-} |
57 |
- |
58 |
-all_ruby_prepare() { |
59 |
- # The console is not available for testing. |
60 |
- sed -i -e '/test_noarg_sinvoke/,/end/ s:^:#:' test/test.rb || die |
61 |
- |
62 |
- # Avoid encoding tests since not all locales may be available. |
63 |
- sed -i -e '/test_kjconv/,/^ end/ s:^:#:' test/test.rb || die |
64 |
- |
65 |
- # Fix build on openjdk-11 |
66 |
- sed -i -e 's#javah -classpath ../data/rjb jp.co.infoseek.hp.arton.rjb.RBridge#javac -h . -classpath ../data/rjb RBridge.java#g' ext/extconf.rb || die |
67 |
-} |
68 |
- |
69 |
-each_ruby_prepare() { |
70 |
- #dev-lang/ruby might need the "hardened" flag to enforce the following: |
71 |
- if use hardened; then |
72 |
- paxctl -v /usr/bin/ruby 2>/dev/null | grep MPROTECT | grep disabled || ewarn '!!! rjb will only work if ruby is MPROTECT disabled\n please disable it if required using paxctl -m /usr/bin/ruby' |
73 |
- fi |
74 |
- # force compilation of class file for our JVM |
75 |
- rm -rf data |
76 |
-} |
77 |
- |
78 |
-each_ruby_install() { |
79 |
- each_fakegem_install |
80 |
- |
81 |
- if use examples; then |
82 |
- dodoc -r samples |
83 |
- fi |
84 |
-} |
85 |
- |
86 |
-each_ruby_test() { |
87 |
- if use hardened; then |
88 |
- paxctl -v ${RUBY} 2>/dev/null | grep MPROTECT | grep -q disabled |
89 |
- if [ $? = 0 ]; then |
90 |
- ${RUBY} -C test -I../lib:.:../ext test.rb || die |
91 |
- else |
92 |
- ewarn "${RUBY} has MPROTECT enabled, rjb will not work until it is disabled, skipping tests." |
93 |
- fi |
94 |
- else |
95 |
- ${RUBY} -C test -I../lib:.:../ext test.rb || die |
96 |
- fi |
97 |
-} |