1 |
commit: 8f0b870080166d1a6148109205aaaf47101cee5b |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 9 15:45:35 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 9 15:49:26 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f0b8700 |
7 |
|
8 |
dev-lang/rubinius: add 3.43 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-lang/rubinius/Manifest | 1 + |
13 |
dev-lang/rubinius/rubinius-3.43.ebuild | 89 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 90 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/rubinius/Manifest b/dev-lang/rubinius/Manifest |
17 |
index 71c8a2d..d780d9e 100644 |
18 |
--- a/dev-lang/rubinius/Manifest |
19 |
+++ b/dev-lang/rubinius/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST rubinius-2.5.3.tar.bz2 11636033 SHA256 9af4d6e9d1e78a586579c86b9eb9a082cb863885d4a7cf33989d73280461e5fc SHA512 b923446d325dc3ce5ad28af9ee527607fae3259b85e85aeff97c1bebbb4520daf70616957b1c0ded900ed19e59025826dee66977c19cd2a2d4e9a0296811eb20 WHIRLPOOL 9ec26e62fde5d55153ce8f7fc8b57297fc365f94fc43d18c1a99c94823999494653e5d44ad1a27e31ae0803fc0c2d23d04fea7c7669210754236a9aa38e68b19 |
22 |
DIST rubinius-2.5.5.tar.bz2 11659850 SHA256 217659849ca2c67322d24ce7167e760dc835f32a701ca6e558703914ca82d02f SHA512 a862146ddbbdcd4439eb64e78bfe6d09ae4cca540d19869618426d3f451544658713fe8eb7d46493785eb0cc721077e624293cc44d68eea3ef584967b43a18d7 WHIRLPOOL 82e45406f330339a3dc06ee26cb0baf39bd4ab10147ebbfbe2eaf12c72e44fe683d3eff3156af0f09feee4bc3d50334d041f497727a6ae86fd24347f75a658ae |
23 |
+DIST rubinius-3.43.tar.bz2 13013106 SHA256 2c573257518774e464036515cc7283bc934a41566599afe94612c605844481ad SHA512 80ca70f1aeea2f48e9f4bbd9dc646e0fdabf266cde879fd6acb46bcc38140a2738fddf7d63fa72c386f0411046f457af02deb1162b249c7942bdc0e4a8138023 WHIRLPOOL 63f53a69a16772cfaa560cb5c8ed21dafe5b2eae221948be56f34b4a4755f878f3f9ff5ae7d181479770c1e9ca9c9be48a521d5e9465d1dc15c0641aca803d34 |
24 |
|
25 |
diff --git a/dev-lang/rubinius/rubinius-3.43.ebuild b/dev-lang/rubinius/rubinius-3.43.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..a5ff327 |
28 |
--- /dev/null |
29 |
+++ b/dev-lang/rubinius/rubinius-3.43.ebuild |
30 |
@@ -0,0 +1,89 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+inherit eutils flag-o-matic multilib versionator |
37 |
+ |
38 |
+DESCRIPTION="A re-implementation of the Ruby VM designed for speed" |
39 |
+HOMEPAGE="http://rubini.us" |
40 |
+SRC_URI="https://rubinius-releases-rubinius-com.s3.amazonaws.com/${P}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+KEYWORDS="~amd64" |
44 |
+SLOT="0" |
45 |
+IUSE="+llvm" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ llvm? ( >=sys-devel/llvm-3.6 ) |
49 |
+ dev-libs/openssl:0 |
50 |
+ sys-libs/ncurses |
51 |
+ sys-libs/readline:0 |
52 |
+ dev-libs/libyaml |
53 |
+ virtual/libffi |
54 |
+ sys-libs/zlib |
55 |
+" |
56 |
+ |
57 |
+DEPEND="${RDEPEND} |
58 |
+ =dev-ruby/rake-10* |
59 |
+ dev-ruby/bundler |
60 |
+" |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ unset RUBYOPT |
64 |
+} |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ # src_test will wait until all processes are reaped, so tune down |
68 |
+ # the long sleep process a bit. |
69 |
+ sed -i -e 's/sleep 1000/sleep 300/' spec/ruby/core/io/popen_spec.rb || die |
70 |
+ |
71 |
+ # Avoid specs that cannot work in the portage context |
72 |
+ rm -f spec/ruby/core/argf/read_nonblock_spec.rb || die |
73 |
+ |
74 |
+ # Drop error CFLAGS per Gentoo policy. |
75 |
+ sed -i -e '/Werror/ s:^:#:' rakelib/blueprint.rb || die |
76 |
+ |
77 |
+ bundle --local || die |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ conf="" |
82 |
+ if ! use llvm ; then |
83 |
+ conf+="--disable-llvm " |
84 |
+ fi |
85 |
+ |
86 |
+ #Rubinius uses a non-autoconf ./configure script which balks at econf |
87 |
+ INSTALL="${EPREFIX}/usr/bin/install -c" ./configure \ |
88 |
+ --prefix /usr/$(get_libdir) \ |
89 |
+ --mandir /usr/share/man \ |
90 |
+ --without-rpath \ |
91 |
+ --with-vendor-zlib \ |
92 |
+ ${conf} \ |
93 |
+ || die "Configure failed" |
94 |
+} |
95 |
+ |
96 |
+src_compile() { |
97 |
+ RBXOPT="-Xsystem.log=syslog" rake build || die "Compilation failed" |
98 |
+} |
99 |
+ |
100 |
+src_test() { |
101 |
+ rake spec || die "Tests failed" |
102 |
+ einfo "Waiting for forked processes to die" |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ # The install phase tries to determine if there are relevant |
107 |
+ addpredict /usr/local/lib64/ruby |
108 |
+ |
109 |
+ local minor_version=$(get_version_component_range 1-2) |
110 |
+ local librbx="usr/$(get_libdir)/rubinius" |
111 |
+ |
112 |
+ RBXOPT="-Xsystem.log=syslog" DESTDIR="${D}" rake install || die "Installation failed" |
113 |
+ |
114 |
+ dosym /${librbx}/bin/rbx /usr/bin/rbx || die "Couldn't make rbx symlink" |
115 |
+ |
116 |
+ insinto /${librbx}/${minor_version}/site |
117 |
+ doins "${FILESDIR}/auto_gem.rb" || die "Couldn't install rbx auto_gem.rb" |
118 |
+ RBXOPT="-Xsystem.log=syslog" RBX_RUNTIME="${S}/runtime" RBX_LIB="${S}/lib" bin/rbx compile "${D}/${librbx}/${minor_version}/site/auto_gem.rb" || die "Couldn't bytecompile auto_gem.rb" |
119 |
+} |