1 |
commit: 82b87a6e831c2ec176e16688c5460b787a7706a7 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 30 18:47:18 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 30 18:47:33 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82b87a6e |
7 |
|
8 |
dev-lang/ruby: cleanup in 2.2 slot |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-lang/ruby/Manifest | 8 -- |
13 |
dev-lang/ruby/ruby-2.2.2-r1.ebuild | 238 ------------------------------------ |
14 |
dev-lang/ruby/ruby-2.2.3-r1.ebuild | 241 ------------------------------------ |
15 |
dev-lang/ruby/ruby-2.2.3-r2.ebuild | 244 ------------------------------------- |
16 |
dev-lang/ruby/ruby-2.2.3.ebuild | 238 ------------------------------------ |
17 |
dev-lang/ruby/ruby-2.2.4.ebuild | 244 ------------------------------------- |
18 |
6 files changed, 1213 deletions(-) |
19 |
|
20 |
diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest |
21 |
index fcdcc6d..2aed7df 100644 |
22 |
--- a/dev-lang/ruby/Manifest |
23 |
+++ b/dev-lang/ruby/Manifest |
24 |
@@ -3,9 +3,6 @@ DIST ruby-2.0.0-p648.tar.xz 8303584 SHA256 22fe97739110ba9171b13fc4dcd1a92e767f1 |
25 |
DIST ruby-2.1.10.tar.xz 9362868 SHA256 5be9f8d5d29d252cd7f969ab7550e31bbb001feb4a83532301c0dd3b5006e148 SHA512 72406ac133af7f057d4633d2a300e49e133881f6b36ff4cdf6c72b4ff4325de332fc5a45c96ea407140a8bf09cdc307e13107c539196902e5b67b7d24cd72dc9 WHIRLPOOL c069461eca483db74ffd72efb3279eea3949975e504d1b38ef76d4226f6e85cc3d337a358453fb4910f3b1306fc903ce38f156c7af65d207d2a4732571ef9ac1 |
26 |
DIST ruby-2.1.7.tar.xz 9371208 SHA256 225c067d9820fe52fcffbfb91d5b5243708a0b666b9929bea466e9379eb40ad7 SHA512 a4f2a3a684517678442b4ad3bda50433634317c910e8c13c844dffe470532bae5fd8d72b3f83c9a36865f303fe0464703e30854b3e55a558a758252b5e594406 WHIRLPOOL 54fae59b754aebbf1736720e042574ed4a0b4f7c1518742f8215bb396bb7416ee7b50df7d27167337e10eef518f1d488a48d064bfcbfac0065aa8313296fe263 |
27 |
DIST ruby-2.1.9.tar.xz 9395648 SHA256 39f203f7498aed2456fb500147fada5adcbf102d89d4f6aca773ebcadd8ea82a SHA512 1f331a8910fd7a9ab9c41bf56aef12041dd413ad49c696f6df2c9a7ec3a3d5cdf383f2a3d30949ea37b8ecb39f50355e526412b36ed4e07b60733d9db4d2bd14 WHIRLPOOL bb2fa158d837f9c278cab93ecb1a8f6a00ddff12c40d1fa5ffb6b55741dc71268fef40fc9f30508dc89b27a05fe9f3b4fbf739ba69ab4e62f669f82a15d26dfa |
28 |
-DIST ruby-2.2.2.tar.xz 10463044 SHA256 f033b5d08ab57083e48c1d81bcd7399967578c370b664da90e12a32891424462 SHA512 bd72d0a4c017e2527659f64ef2781bbe8bd540a2302eaa60234a12282fd53c359e04205c56385402c67e81bb9dab3b88de53de82e12bb13e3386c26301043b64 WHIRLPOOL ee9c3a664ac1d67bd9ff4ed8fcc7d4c8e9b6e2f5774c938f876223b22022b498932afc41990890a03b560c65ffe29a039761d18bbeeab46fe13cbfff515bc115 |
29 |
-DIST ruby-2.2.3.tar.xz 10453204 SHA256 c6ec90e9ed018e6d9a578fc93755d8565839908d5796809e1aecd1798c7ea8a7 SHA512 e3ce3333e8d59f4f3bfc84cf9bbbc6f74272470e12913d299fd1d41fc166dee21921eed1789591f50c3f3b6e5fd38fd1b99855c16aff28bdc4ae8fcc680c71bd WHIRLPOOL 3fae4fc3112f24004f0f043d29b2e624e559fa3d53e6b0479af03df910d210aaeb8274c294dfe1ef0602f63790b4cdc31147d5fd92707e38ea29f01fd07e8839 |
30 |
-DIST ruby-2.2.4.tar.xz 10464500 SHA256 d28bff4641e382681c58072ddc244d025ac47ff71dd9426a92fcfc3830d1773c SHA512 755257eea0cb79f28f1d2dc6e2a5ee4b1954280f51153e5fe90605a875b1d52077660b87e4e04d11552591a1f60a1241e4c70056f073a217b3bad896f64780da WHIRLPOOL 9d3d549dce991d2d594df624bf2f55f4ff9269c35193b190e3fd774b8883facb568f010a3b79927e083cc5bad277281e4c8a9fc3979f609fca50f86775563484 |
31 |
DIST ruby-2.2.5.tar.xz 10457620 SHA256 f86feaa0a578e8da0924ced3ec68b25b50d69fc9a72cc8d919bc3c73f85f87d7 SHA512 6da4bdb0a43d56c7a8e4dddbcacf237e998ebb54706c8f835b53713dbdf924e40d5f89f63017515e1d66904ca01f28058cf296567104e06540c57f036dcdd0fe WHIRLPOOL 16d7a03c359bf31aeecc67afd72d8290f8f7e2a26b15c069ad623716866b76cea467f550946a27916087343ab3225149681e1555ea9c21459a94f7a038758270 |
32 |
DIST ruby-2.3.0.tar.xz 11294412 SHA256 70125af0cfd7048e813a5eecab3676249582bfb65cfd57b868c3595f966e4097 SHA512 d893c5e6db5a0533e0da48d899c619964388852ef90e7d1b92a4363d5f189cd2dba32a009581f62b9f42a8e6027975fc3c18b64faf356f5e3ac43a8d69ec5327 WHIRLPOOL 1d39136dad87580339f87057649d136e1b76cb58118b275d6847b791be8f6882820de892d9fb7144991a7acf30c355311fd289d1a7931fd018b3b95398945c07 |
33 |
DIST ruby-2.3.1.tar.xz 11407048 SHA256 6725b5534d5a3a21ec4f14d6d7b9921a0d00d08acb88fd04cd50b47b70496338 SHA512 e9d89aeefb1b1e72cee9d3d414b27c793cf09ff3ed5e0ea5277a2b6ae1cae9fdbf6b404a84b42c0c6835754eb04674fc4f1470fbfedabeee3f57e518f13db633 WHIRLPOOL ddfad0f36d61e75209bdc69da0ec549a3443ecb3ed8e1347bb3d0b54ec34073eb05fc8bb78843d59b8b65ec92b8df47f001f5f28f00f685bd2ab60b1ce557558 |
34 |
@@ -14,11 +11,6 @@ DIST ruby-patches-2.0.0_p648.tar.bz2 3341 SHA256 7d82403fed6216baed59ac1fbba888e |
35 |
DIST ruby-patches-2.1.10.tar.bz2 1931 SHA256 7e02c1b6a6352693bfd5828c9d1a7633a52baa57d8770df182ed0d8b450a3341 SHA512 85928207db4f76e58925e50d39d73db2d521674385ce3232828377e7d7bb4252aafb9f93d6045d4c159bf094b472af61ef9307203db313bf28918fe35e0f3a21 WHIRLPOOL 17a698b0a09be15f444ea34b33e9aa1d029fbd572c565072a92480bf7b6b21f1b6b88b0da3183a486bae30e7e65f3172cd72b7336be1dc5974b62bd8e2b9ef7a |
36 |
DIST ruby-patches-2.1.7.tar.bz2 1931 SHA256 7e02c1b6a6352693bfd5828c9d1a7633a52baa57d8770df182ed0d8b450a3341 SHA512 85928207db4f76e58925e50d39d73db2d521674385ce3232828377e7d7bb4252aafb9f93d6045d4c159bf094b472af61ef9307203db313bf28918fe35e0f3a21 WHIRLPOOL 17a698b0a09be15f444ea34b33e9aa1d029fbd572c565072a92480bf7b6b21f1b6b88b0da3183a486bae30e7e65f3172cd72b7336be1dc5974b62bd8e2b9ef7a |
37 |
DIST ruby-patches-2.1.9.tar.bz2 1931 SHA256 7e02c1b6a6352693bfd5828c9d1a7633a52baa57d8770df182ed0d8b450a3341 SHA512 85928207db4f76e58925e50d39d73db2d521674385ce3232828377e7d7bb4252aafb9f93d6045d4c159bf094b472af61ef9307203db313bf28918fe35e0f3a21 WHIRLPOOL 17a698b0a09be15f444ea34b33e9aa1d029fbd572c565072a92480bf7b6b21f1b6b88b0da3183a486bae30e7e65f3172cd72b7336be1dc5974b62bd8e2b9ef7a |
38 |
-DIST ruby-patches-2.2.2-r1.tar.bz2 3066 SHA256 65342c7cd5146f0d5025932d31e2ed40e1247355d68356e17a06b0ff728fbef1 SHA512 1c578b868db179bca6dd7800528ac23076b1f44519d93b92fafd724d8e5a158512b05cb3d5f7a4f5ada156692978f98cab7dd5b4282701e57c33d50bcda977de WHIRLPOOL 241622b25acdc8b2a7cb912bac2f6e29a4331798ba67507821b3fb295791d7bea8b7933540f2cd47cc7e8477df14be478286d018b7afe9ae121cd8c49c58dc83 |
39 |
-DIST ruby-patches-2.2.3-r1.tar.bz2 3143 SHA256 45ce438c31c62313f193546a883afe19ccb6dda3276d1378eb5dfd33bd7b8bbe SHA512 e5799b8008276d98f3cd1bd57b1b76a39d052a7c920d84ef245961c2db55e96e7b7081b71aa04843844786cdeee759eb415b46d8e44611d5ff8f658ad12be7bb WHIRLPOOL d9d6dd5562574c2597cbb81b9dbb15c345cad9096e24cc82515fd021882a4e7fa375f37e660b1ce2075ef66bc7582bae4d0c3e819713549dbe7c5c3d4c658ded |
40 |
-DIST ruby-patches-2.2.3-r2.tar.bz2 3143 SHA256 45ce438c31c62313f193546a883afe19ccb6dda3276d1378eb5dfd33bd7b8bbe SHA512 e5799b8008276d98f3cd1bd57b1b76a39d052a7c920d84ef245961c2db55e96e7b7081b71aa04843844786cdeee759eb415b46d8e44611d5ff8f658ad12be7bb WHIRLPOOL d9d6dd5562574c2597cbb81b9dbb15c345cad9096e24cc82515fd021882a4e7fa375f37e660b1ce2075ef66bc7582bae4d0c3e819713549dbe7c5c3d4c658ded |
41 |
-DIST ruby-patches-2.2.3.tar.bz2 2263 SHA256 a08bfaf193adf8e92e7937c9e8db3ec4a880e80dd9c99a5621a00a9233d4d2cd SHA512 dafbb40254d9703a7ed66314f6d9d0dd4c88485a5cef28ff1e3c7020c28cfaac1561ecfb72a465811b59213dbaf9aece6b52240ae895e47f5be63d7f88bc5543 WHIRLPOOL 54b91871b991d38cd4c573884389aaa4ee81afc14fd918e968f0b82df95264930d71199741be820c816998ca9134c496a028e13d00b93cae3c870981f28c2160 |
42 |
-DIST ruby-patches-2.2.4.tar.bz2 3143 SHA256 45ce438c31c62313f193546a883afe19ccb6dda3276d1378eb5dfd33bd7b8bbe SHA512 e5799b8008276d98f3cd1bd57b1b76a39d052a7c920d84ef245961c2db55e96e7b7081b71aa04843844786cdeee759eb415b46d8e44611d5ff8f658ad12be7bb WHIRLPOOL d9d6dd5562574c2597cbb81b9dbb15c345cad9096e24cc82515fd021882a4e7fa375f37e660b1ce2075ef66bc7582bae4d0c3e819713549dbe7c5c3d4c658ded |
43 |
DIST ruby-patches-2.2.5.tar.bz2 2272 SHA256 f54373704ce8df732490e8d1e7e35188503faacc5278fe0ab0d8c07bdc762fed SHA512 ed8bff8f730ccb114e62784d29541f276b2821d9eb121a9772dc4aabc139b688f2b14f5f27710098a8cd751c62d31b46170b427ad54dc4f6490c003450ae1583 WHIRLPOOL 8598c9284252c1e7cc9f9019c5f468ce5ab8b4ae013e71c631cd00cc8bfde068b041f1bc6851bb2962982a1e46cbde0ddc51c186ea41638a7881c587c658e603 |
44 |
DIST ruby-patches-2.3.0.tar.bz2 2223 SHA256 f0a803173564368e5cf31162e1dba901c46640f9e861255f6cbe14256d18f3eb SHA512 bb47000e516017c1fedf7c5313b0628fa734030e69bd0fed1c06a38dd115b8c50837e3dd917f272e24abf5609c4c12793ae4570bfd7d6210290785bf2f8287bd WHIRLPOOL 0b0d4dcf7df4ff3ff11610bfe7a7b29ed621b45b412cb7618a6572f98a568ac67419bd852b193cfc3aa0968382cf9400a578511e9e8fb8b2125bc876e733bd64 |
45 |
DIST ruby-patches-2.3.1.tar.bz2 2223 SHA256 f0a803173564368e5cf31162e1dba901c46640f9e861255f6cbe14256d18f3eb SHA512 bb47000e516017c1fedf7c5313b0628fa734030e69bd0fed1c06a38dd115b8c50837e3dd917f272e24abf5609c4c12793ae4570bfd7d6210290785bf2f8287bd WHIRLPOOL 0b0d4dcf7df4ff3ff11610bfe7a7b29ed621b45b412cb7618a6572f98a568ac67419bd852b193cfc3aa0968382cf9400a578511e9e8fb8b2125bc876e733bd64 |
46 |
|
47 |
diff --git a/dev-lang/ruby/ruby-2.2.2-r1.ebuild b/dev-lang/ruby/ruby-2.2.2-r1.ebuild |
48 |
deleted file mode 100644 |
49 |
index cad360a..0000000 |
50 |
--- a/dev-lang/ruby/ruby-2.2.2-r1.ebuild |
51 |
+++ /dev/null |
52 |
@@ -1,238 +0,0 @@ |
53 |
-# Copyright 1999-2015 Gentoo Foundation |
54 |
-# Distributed under the terms of the GNU General Public License v2 |
55 |
-# $Id$ |
56 |
- |
57 |
-EAPI=5 |
58 |
- |
59 |
-#PATCHSET=1 |
60 |
- |
61 |
-inherit autotools eutils flag-o-matic multilib versionator |
62 |
- |
63 |
-MY_P="${PN}-$(get_version_component_range 1-3)" |
64 |
-S=${WORKDIR}/${MY_P} |
65 |
- |
66 |
-SLOT=$(get_version_component_range 1-2) |
67 |
-MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
68 |
-RUBYVERSION=2.2.0 |
69 |
- |
70 |
-if [[ -n ${PATCHSET} ]]; then |
71 |
- if [[ ${PVR} == ${PV} ]]; then |
72 |
- PATCHSET="${PV}-r0.${PATCHSET}" |
73 |
- else |
74 |
- PATCHSET="${PVR}.${PATCHSET}" |
75 |
- fi |
76 |
-else |
77 |
- PATCHSET="${PVR}" |
78 |
-fi |
79 |
- |
80 |
-DESCRIPTION="An object-oriented scripting language" |
81 |
-HOMEPAGE="http://www.ruby-lang.org/" |
82 |
-SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz |
83 |
- https://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
84 |
- |
85 |
-LICENSE="|| ( Ruby-BSD BSD-2 )" |
86 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
87 |
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc +rdoc rubytests socks5 ssl xemacs ncurses +readline" |
88 |
- |
89 |
-RDEPEND=" |
90 |
- berkdb? ( sys-libs/db:= ) |
91 |
- gdbm? ( sys-libs/gdbm ) |
92 |
- jemalloc? ( dev-libs/jemalloc ) |
93 |
- ssl? ( dev-libs/openssl:0 ) |
94 |
- socks5? ( >=net-proxy/dante-1.1.13 ) |
95 |
- ncurses? ( sys-libs/ncurses:0= ) |
96 |
- readline? ( sys-libs/readline:0 ) |
97 |
- dev-libs/libyaml |
98 |
- virtual/libffi |
99 |
- sys-libs/zlib |
100 |
- >=app-eselect/eselect-ruby-20141227 |
101 |
- !<dev-ruby/rdoc-3.9.4 |
102 |
- !<dev-ruby/rubygems-1.8.10-r1" |
103 |
- |
104 |
-DEPEND="${RDEPEND}" |
105 |
- |
106 |
-BUNDLED_GEMS=" |
107 |
- >=dev-ruby/minitest-5.4.3[ruby_targets_ruby22] |
108 |
- >=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22] |
109 |
- >=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22] |
110 |
-" |
111 |
- |
112 |
-PDEPEND=" |
113 |
- ${BUNDLED_GEMS} |
114 |
- virtual/rubygems[ruby_targets_ruby22] |
115 |
- >=dev-ruby/json-1.8.1[ruby_targets_ruby22] |
116 |
- >=dev-ruby/rake-0.9.6[ruby_targets_ruby22] |
117 |
- rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] ) |
118 |
- xemacs? ( app-xemacs/ruby-modes )" |
119 |
- |
120 |
-src_prepare() { |
121 |
- EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
122 |
- epatch "${WORKDIR}/patches" |
123 |
- |
124 |
- # We can no longer unbundle all of rake because rubygems now depends |
125 |
- # on this. We leave the actual rake code around to bootstrap |
126 |
- # rubygems, but remove the bits that would cause a file collision. |
127 |
- einfo "Unbundling gems..." |
128 |
- cd "$S" |
129 |
- rm -r \ |
130 |
- {bin,lib}/rake lib/rake.rb man/rake.1 \ |
131 |
- bin/gem || die "removal failed" |
132 |
- # Remove bundled gems that we will install via PDEPEND, bug |
133 |
- # 539700. Use explicit version numbers to ensure rm fails when they |
134 |
- # change so we can update dependencies accordingly. |
135 |
- rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die |
136 |
- |
137 |
- # Fix a hardcoded lib path in configure script |
138 |
- sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
139 |
- configure.in || die "sed failed" |
140 |
- |
141 |
- eautoreconf |
142 |
-} |
143 |
- |
144 |
-src_configure() { |
145 |
- local myconf= |
146 |
- |
147 |
- # The Tk module can no longer be built because the module code is no |
148 |
- # longer compatible with newer stable versions. |
149 |
- # https://bugs.gentoo.org/show_bug.cgi?id=500894 |
150 |
- local modules="tk" |
151 |
- |
152 |
- # -fomit-frame-pointer makes ruby segfault, see bug #150413. |
153 |
- filter-flags -fomit-frame-pointer |
154 |
- # In many places aliasing rules are broken; play it safe |
155 |
- # as it's risky with newer compilers to leave it as it is. |
156 |
- append-flags -fno-strict-aliasing |
157 |
- # SuperH needs this |
158 |
- use sh && append-flags -mieee |
159 |
- |
160 |
- # Socks support via dante |
161 |
- if use socks5 ; then |
162 |
- # Socks support can't be disabled as long as SOCKS_SERVER is |
163 |
- # set and socks library is present, so need to unset |
164 |
- # SOCKS_SERVER in that case. |
165 |
- unset SOCKS_SERVER |
166 |
- fi |
167 |
- |
168 |
- # Increase GC_MALLOC_LIMIT if set (default is 8000000) |
169 |
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
170 |
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
171 |
- fi |
172 |
- |
173 |
- # ipv6 hack, bug 168939. Needs --enable-ipv6. |
174 |
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
175 |
- |
176 |
- # Determine which modules *not* to build depending in the USE flags. |
177 |
- if ! use readline ; then |
178 |
- modules="${modules},readline" |
179 |
- fi |
180 |
- if ! use berkdb ; then |
181 |
- modules="${modules},dbm" |
182 |
- fi |
183 |
- if ! use gdbm ; then |
184 |
- modules="${modules},gdbm" |
185 |
- fi |
186 |
- if ! use ssl ; then |
187 |
- modules="${modules},openssl" |
188 |
- fi |
189 |
- if ! use ncurses ; then |
190 |
- modules="${modules},curses" |
191 |
- fi |
192 |
- |
193 |
- INSTALL="${EPREFIX}/usr/bin/install -c" econf \ |
194 |
- --program-suffix=${MY_SUFFIX} \ |
195 |
- --with-soname=ruby${MY_SUFFIX} \ |
196 |
- --docdir=${EPREFIX}/usr/share/doc/${P} \ |
197 |
- --enable-shared \ |
198 |
- --enable-pthread \ |
199 |
- --disable-rpath \ |
200 |
- --with-out-ext="${modules}" \ |
201 |
- $(use_enable jemalloc jemalloc) \ |
202 |
- $(use_enable socks5 socks) \ |
203 |
- $(use_enable doc install-doc) \ |
204 |
- --enable-ipv6 \ |
205 |
- $(use_enable debug) \ |
206 |
- ${myconf} \ |
207 |
- --enable-option-checking=no \ |
208 |
- || die "econf failed" |
209 |
-} |
210 |
- |
211 |
-src_compile() { |
212 |
- emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
213 |
-} |
214 |
- |
215 |
-src_test() { |
216 |
- emake -j1 V=1 test || die "make test failed" |
217 |
- |
218 |
- elog "Ruby's make test has been run. Ruby also ships with a make check" |
219 |
- elog "that cannot be run until after ruby has been installed." |
220 |
- elog |
221 |
- if use rubytests; then |
222 |
- elog "You have enabled rubytests, so they will be installed to" |
223 |
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
224 |
- elog "than root, and you must place them into a writeable directory." |
225 |
- elog "Then call: " |
226 |
- elog |
227 |
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
228 |
- else |
229 |
- elog "Enable the rubytests USE flag to install the make check tests" |
230 |
- fi |
231 |
-} |
232 |
- |
233 |
-src_install() { |
234 |
- # Remove the remaining bundled gems. We do this late in the process |
235 |
- # since they are used during the build to e.g. create the |
236 |
- # documentation. |
237 |
- rm -rf ext/json || die |
238 |
- |
239 |
- # Ruby is involved in the install process, we don't want interference here. |
240 |
- unset RUBYOPT |
241 |
- |
242 |
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
243 |
- |
244 |
- LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
245 |
- RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
246 |
- for d in $(find "${S}/ext" -type d) ; do |
247 |
- RUBYLIB="${RUBYLIB}:$d" |
248 |
- done |
249 |
- export LD_LIBRARY_PATH RUBYLIB |
250 |
- |
251 |
- emake V=1 DESTDIR="${D}" install || die "make install failed" |
252 |
- |
253 |
- # Remove installed rubygems copy |
254 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
255 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
256 |
- rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
257 |
- |
258 |
- if use doc; then |
259 |
- make DESTDIR="${D}" install-doc || die "make install-doc failed" |
260 |
- fi |
261 |
- |
262 |
- if use examples; then |
263 |
- insinto /usr/share/doc/${PF} |
264 |
- doins -r sample |
265 |
- fi |
266 |
- |
267 |
- dodoc ChangeLog NEWS doc/NEWS* README* || die |
268 |
- |
269 |
- if use rubytests; then |
270 |
- pushd test |
271 |
- insinto /usr/share/${PN}-${SLOT}/test |
272 |
- doins -r . |
273 |
- popd |
274 |
- fi |
275 |
-} |
276 |
- |
277 |
-pkg_postinst() { |
278 |
- if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
279 |
- eselect ruby set ruby${MY_SUFFIX} |
280 |
- fi |
281 |
- |
282 |
- elog |
283 |
- elog "To switch between available Ruby profiles, execute as root:" |
284 |
- elog "\teselect ruby set ruby(19|20|...)" |
285 |
- elog |
286 |
-} |
287 |
- |
288 |
-pkg_postrm() { |
289 |
- eselect ruby cleanup |
290 |
-} |
291 |
|
292 |
diff --git a/dev-lang/ruby/ruby-2.2.3-r1.ebuild b/dev-lang/ruby/ruby-2.2.3-r1.ebuild |
293 |
deleted file mode 100644 |
294 |
index c47b5c4..0000000 |
295 |
--- a/dev-lang/ruby/ruby-2.2.3-r1.ebuild |
296 |
+++ /dev/null |
297 |
@@ -1,241 +0,0 @@ |
298 |
-# Copyright 1999-2015 Gentoo Foundation |
299 |
-# Distributed under the terms of the GNU General Public License v2 |
300 |
-# $Id$ |
301 |
- |
302 |
-EAPI=5 |
303 |
- |
304 |
-#PATCHSET=1 |
305 |
- |
306 |
-inherit autotools eutils flag-o-matic multilib versionator |
307 |
- |
308 |
-MY_P="${PN}-$(get_version_component_range 1-3)" |
309 |
-S=${WORKDIR}/${MY_P} |
310 |
- |
311 |
-SLOT=$(get_version_component_range 1-2) |
312 |
-MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
313 |
-RUBYVERSION=2.2.0 |
314 |
- |
315 |
-if [[ -n ${PATCHSET} ]]; then |
316 |
- if [[ ${PVR} == ${PV} ]]; then |
317 |
- PATCHSET="${PV}-r0.${PATCHSET}" |
318 |
- else |
319 |
- PATCHSET="${PVR}.${PATCHSET}" |
320 |
- fi |
321 |
-else |
322 |
- PATCHSET="${PVR}" |
323 |
-fi |
324 |
- |
325 |
-DESCRIPTION="An object-oriented scripting language" |
326 |
-HOMEPAGE="http://www.ruby-lang.org/" |
327 |
-SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz |
328 |
- https://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
329 |
- |
330 |
-LICENSE="|| ( Ruby-BSD BSD-2 )" |
331 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
332 |
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 ssl xemacs ncurses +readline" |
333 |
- |
334 |
-RDEPEND=" |
335 |
- berkdb? ( sys-libs/db:= ) |
336 |
- gdbm? ( sys-libs/gdbm ) |
337 |
- jemalloc? ( dev-libs/jemalloc ) |
338 |
- ssl? ( |
339 |
- !libressl? ( dev-libs/openssl:0 ) |
340 |
- libressl? ( dev-libs/libressl ) |
341 |
- ) |
342 |
- socks5? ( >=net-proxy/dante-1.1.13 ) |
343 |
- ncurses? ( sys-libs/ncurses:0= ) |
344 |
- readline? ( sys-libs/readline:0 ) |
345 |
- dev-libs/libyaml |
346 |
- virtual/libffi |
347 |
- sys-libs/zlib |
348 |
- >=app-eselect/eselect-ruby-20141227 |
349 |
- !<dev-ruby/rdoc-3.9.4 |
350 |
- !<dev-ruby/rubygems-1.8.10-r1" |
351 |
- |
352 |
-DEPEND="${RDEPEND}" |
353 |
- |
354 |
-BUNDLED_GEMS=" |
355 |
- >=dev-ruby/minitest-5.4.3[ruby_targets_ruby22] |
356 |
- >=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22] |
357 |
- >=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22] |
358 |
-" |
359 |
- |
360 |
-PDEPEND=" |
361 |
- ${BUNDLED_GEMS} |
362 |
- virtual/rubygems[ruby_targets_ruby22] |
363 |
- >=dev-ruby/json-1.8.1[ruby_targets_ruby22] |
364 |
- >=dev-ruby/rake-0.9.6[ruby_targets_ruby22] |
365 |
- rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] ) |
366 |
- xemacs? ( app-xemacs/ruby-modes )" |
367 |
- |
368 |
-src_prepare() { |
369 |
- EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
370 |
- epatch "${WORKDIR}/patches" |
371 |
- |
372 |
- # We can no longer unbundle all of rake because rubygems now depends |
373 |
- # on this. We leave the actual rake code around to bootstrap |
374 |
- # rubygems, but remove the bits that would cause a file collision. |
375 |
- einfo "Unbundling gems..." |
376 |
- cd "$S" |
377 |
- rm -r \ |
378 |
- {bin,lib}/rake lib/rake.rb man/rake.1 \ |
379 |
- bin/gem || die "removal failed" |
380 |
- # Remove bundled gems that we will install via PDEPEND, bug |
381 |
- # 539700. Use explicit version numbers to ensure rm fails when they |
382 |
- # change so we can update dependencies accordingly. |
383 |
- rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die |
384 |
- |
385 |
- # Fix a hardcoded lib path in configure script |
386 |
- sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
387 |
- configure.in || die "sed failed" |
388 |
- |
389 |
- eautoreconf |
390 |
-} |
391 |
- |
392 |
-src_configure() { |
393 |
- local myconf= |
394 |
- |
395 |
- # The Tk module can no longer be built because the module code is no |
396 |
- # longer compatible with newer stable versions. |
397 |
- # https://bugs.gentoo.org/show_bug.cgi?id=500894 |
398 |
- local modules="tk" |
399 |
- |
400 |
- # -fomit-frame-pointer makes ruby segfault, see bug #150413. |
401 |
- filter-flags -fomit-frame-pointer |
402 |
- # In many places aliasing rules are broken; play it safe |
403 |
- # as it's risky with newer compilers to leave it as it is. |
404 |
- append-flags -fno-strict-aliasing |
405 |
- # SuperH needs this |
406 |
- use sh && append-flags -mieee |
407 |
- |
408 |
- # Socks support via dante |
409 |
- if use socks5 ; then |
410 |
- # Socks support can't be disabled as long as SOCKS_SERVER is |
411 |
- # set and socks library is present, so need to unset |
412 |
- # SOCKS_SERVER in that case. |
413 |
- unset SOCKS_SERVER |
414 |
- fi |
415 |
- |
416 |
- # Increase GC_MALLOC_LIMIT if set (default is 8000000) |
417 |
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
418 |
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
419 |
- fi |
420 |
- |
421 |
- # ipv6 hack, bug 168939. Needs --enable-ipv6. |
422 |
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
423 |
- |
424 |
- # Determine which modules *not* to build depending in the USE flags. |
425 |
- if ! use readline ; then |
426 |
- modules="${modules},readline" |
427 |
- fi |
428 |
- if ! use berkdb ; then |
429 |
- modules="${modules},dbm" |
430 |
- fi |
431 |
- if ! use gdbm ; then |
432 |
- modules="${modules},gdbm" |
433 |
- fi |
434 |
- if ! use ssl ; then |
435 |
- modules="${modules},openssl" |
436 |
- fi |
437 |
- if ! use ncurses ; then |
438 |
- modules="${modules},curses" |
439 |
- fi |
440 |
- |
441 |
- INSTALL="${EPREFIX}/usr/bin/install -c" econf \ |
442 |
- --program-suffix=${MY_SUFFIX} \ |
443 |
- --with-soname=ruby${MY_SUFFIX} \ |
444 |
- --docdir=${EPREFIX}/usr/share/doc/${P} \ |
445 |
- --enable-shared \ |
446 |
- --enable-pthread \ |
447 |
- --disable-rpath \ |
448 |
- --with-out-ext="${modules}" \ |
449 |
- $(use_enable jemalloc jemalloc) \ |
450 |
- $(use_enable socks5 socks) \ |
451 |
- $(use_enable doc install-doc) \ |
452 |
- --enable-ipv6 \ |
453 |
- $(use_enable debug) \ |
454 |
- ${myconf} \ |
455 |
- --enable-option-checking=no \ |
456 |
- || die "econf failed" |
457 |
-} |
458 |
- |
459 |
-src_compile() { |
460 |
- emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
461 |
-} |
462 |
- |
463 |
-src_test() { |
464 |
- emake -j1 V=1 test || die "make test failed" |
465 |
- |
466 |
- elog "Ruby's make test has been run. Ruby also ships with a make check" |
467 |
- elog "that cannot be run until after ruby has been installed." |
468 |
- elog |
469 |
- if use rubytests; then |
470 |
- elog "You have enabled rubytests, so they will be installed to" |
471 |
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
472 |
- elog "than root, and you must place them into a writeable directory." |
473 |
- elog "Then call: " |
474 |
- elog |
475 |
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
476 |
- else |
477 |
- elog "Enable the rubytests USE flag to install the make check tests" |
478 |
- fi |
479 |
-} |
480 |
- |
481 |
-src_install() { |
482 |
- # Remove the remaining bundled gems. We do this late in the process |
483 |
- # since they are used during the build to e.g. create the |
484 |
- # documentation. |
485 |
- rm -rf ext/json || die |
486 |
- |
487 |
- # Ruby is involved in the install process, we don't want interference here. |
488 |
- unset RUBYOPT |
489 |
- |
490 |
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
491 |
- |
492 |
- LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
493 |
- RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
494 |
- for d in $(find "${S}/ext" -type d) ; do |
495 |
- RUBYLIB="${RUBYLIB}:$d" |
496 |
- done |
497 |
- export LD_LIBRARY_PATH RUBYLIB |
498 |
- |
499 |
- emake V=1 DESTDIR="${D}" install || die "make install failed" |
500 |
- |
501 |
- # Remove installed rubygems copy |
502 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
503 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
504 |
- rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
505 |
- |
506 |
- if use doc; then |
507 |
- make DESTDIR="${D}" install-doc || die "make install-doc failed" |
508 |
- fi |
509 |
- |
510 |
- if use examples; then |
511 |
- insinto /usr/share/doc/${PF} |
512 |
- doins -r sample |
513 |
- fi |
514 |
- |
515 |
- dodoc ChangeLog NEWS doc/NEWS* README* || die |
516 |
- |
517 |
- if use rubytests; then |
518 |
- pushd test |
519 |
- insinto /usr/share/${PN}-${SLOT}/test |
520 |
- doins -r . |
521 |
- popd |
522 |
- fi |
523 |
-} |
524 |
- |
525 |
-pkg_postinst() { |
526 |
- if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
527 |
- eselect ruby set ruby${MY_SUFFIX} |
528 |
- fi |
529 |
- |
530 |
- elog |
531 |
- elog "To switch between available Ruby profiles, execute as root:" |
532 |
- elog "\teselect ruby set ruby(19|20|...)" |
533 |
- elog |
534 |
-} |
535 |
- |
536 |
-pkg_postrm() { |
537 |
- eselect ruby cleanup |
538 |
-} |
539 |
|
540 |
diff --git a/dev-lang/ruby/ruby-2.2.3-r2.ebuild b/dev-lang/ruby/ruby-2.2.3-r2.ebuild |
541 |
deleted file mode 100644 |
542 |
index 16c694b..0000000 |
543 |
--- a/dev-lang/ruby/ruby-2.2.3-r2.ebuild |
544 |
+++ /dev/null |
545 |
@@ -1,244 +0,0 @@ |
546 |
-# Copyright 1999-2015 Gentoo Foundation |
547 |
-# Distributed under the terms of the GNU General Public License v2 |
548 |
-# $Id$ |
549 |
- |
550 |
-EAPI=5 |
551 |
- |
552 |
-#PATCHSET=1 |
553 |
- |
554 |
-inherit autotools eutils flag-o-matic multilib versionator |
555 |
- |
556 |
-MY_P="${PN}-$(get_version_component_range 1-3)" |
557 |
-S=${WORKDIR}/${MY_P} |
558 |
- |
559 |
-SLOT=$(get_version_component_range 1-2) |
560 |
-MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
561 |
-RUBYVERSION=2.2.0 |
562 |
- |
563 |
-if [[ -n ${PATCHSET} ]]; then |
564 |
- if [[ ${PVR} == ${PV} ]]; then |
565 |
- PATCHSET="${PV}-r0.${PATCHSET}" |
566 |
- else |
567 |
- PATCHSET="${PVR}.${PATCHSET}" |
568 |
- fi |
569 |
-else |
570 |
- PATCHSET="${PVR}" |
571 |
-fi |
572 |
- |
573 |
-DESCRIPTION="An object-oriented scripting language" |
574 |
-HOMEPAGE="http://www.ruby-lang.org/" |
575 |
-SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz |
576 |
- https://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
577 |
- |
578 |
-LICENSE="|| ( Ruby-BSD BSD-2 )" |
579 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
580 |
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 ssl xemacs ncurses +readline" |
581 |
- |
582 |
-RDEPEND=" |
583 |
- berkdb? ( sys-libs/db:= ) |
584 |
- gdbm? ( sys-libs/gdbm ) |
585 |
- jemalloc? ( dev-libs/jemalloc ) |
586 |
- ssl? ( |
587 |
- !libressl? ( dev-libs/openssl:0 ) |
588 |
- libressl? ( dev-libs/libressl ) |
589 |
- ) |
590 |
- socks5? ( >=net-proxy/dante-1.1.13 ) |
591 |
- ncurses? ( sys-libs/ncurses:0= ) |
592 |
- readline? ( sys-libs/readline:0 ) |
593 |
- dev-libs/libyaml |
594 |
- virtual/libffi |
595 |
- sys-libs/zlib |
596 |
- >=app-eselect/eselect-ruby-20141227 |
597 |
- !<dev-ruby/rdoc-3.9.4 |
598 |
- !<dev-ruby/rubygems-1.8.10-r1" |
599 |
- |
600 |
-DEPEND="${RDEPEND}" |
601 |
- |
602 |
-BUNDLED_GEMS=" |
603 |
- >=dev-ruby/minitest-5.4.3[ruby_targets_ruby22] |
604 |
- >=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22] |
605 |
- >=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22] |
606 |
-" |
607 |
- |
608 |
-PDEPEND=" |
609 |
- ${BUNDLED_GEMS} |
610 |
- virtual/rubygems[ruby_targets_ruby22] |
611 |
- >=dev-ruby/json-1.8.1[ruby_targets_ruby22] |
612 |
- >=dev-ruby/rake-0.9.6[ruby_targets_ruby22] |
613 |
- rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] ) |
614 |
- xemacs? ( app-xemacs/ruby-modes )" |
615 |
- |
616 |
-src_prepare() { |
617 |
- EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
618 |
- epatch "${WORKDIR}/patches" |
619 |
- |
620 |
- # We can no longer unbundle all of rake because rubygems now depends |
621 |
- # on this. We leave the actual rake code around to bootstrap |
622 |
- # rubygems, but remove the bits that would cause a file collision. |
623 |
- einfo "Unbundling gems..." |
624 |
- cd "$S" |
625 |
- rm -r \ |
626 |
- {bin,lib}/rake lib/rake.rb man/rake.1 \ |
627 |
- bin/gem || die "removal failed" |
628 |
- # Remove bundled gems that we will install via PDEPEND, bug |
629 |
- # 539700. Use explicit version numbers to ensure rm fails when they |
630 |
- # change so we can update dependencies accordingly. |
631 |
- rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die |
632 |
- |
633 |
- # Fix a hardcoded lib path in configure script |
634 |
- sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
635 |
- configure.in || die "sed failed" |
636 |
- |
637 |
- eautoreconf |
638 |
-} |
639 |
- |
640 |
-src_configure() { |
641 |
- local myconf= |
642 |
- |
643 |
- # The Tk module can no longer be built because the module code is no |
644 |
- # longer compatible with newer stable versions. |
645 |
- # https://bugs.gentoo.org/show_bug.cgi?id=500894 |
646 |
- local modules="tk" |
647 |
- |
648 |
- # -fomit-frame-pointer makes ruby segfault, see bug #150413. |
649 |
- filter-flags -fomit-frame-pointer |
650 |
- # In many places aliasing rules are broken; play it safe |
651 |
- # as it's risky with newer compilers to leave it as it is. |
652 |
- append-flags -fno-strict-aliasing |
653 |
- # SuperH needs this |
654 |
- use sh && append-flags -mieee |
655 |
- |
656 |
- # Socks support via dante |
657 |
- if use socks5 ; then |
658 |
- # Socks support can't be disabled as long as SOCKS_SERVER is |
659 |
- # set and socks library is present, so need to unset |
660 |
- # SOCKS_SERVER in that case. |
661 |
- unset SOCKS_SERVER |
662 |
- fi |
663 |
- |
664 |
- # Increase GC_MALLOC_LIMIT if set (default is 8000000) |
665 |
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
666 |
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
667 |
- fi |
668 |
- |
669 |
- # ipv6 hack, bug 168939. Needs --enable-ipv6. |
670 |
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
671 |
- |
672 |
- # Determine which modules *not* to build depending in the USE flags. |
673 |
- if ! use readline ; then |
674 |
- modules="${modules},readline" |
675 |
- fi |
676 |
- if ! use berkdb ; then |
677 |
- modules="${modules},dbm" |
678 |
- fi |
679 |
- if ! use gdbm ; then |
680 |
- modules="${modules},gdbm" |
681 |
- fi |
682 |
- if ! use ssl ; then |
683 |
- modules="${modules},openssl" |
684 |
- fi |
685 |
- if ! use ncurses ; then |
686 |
- modules="${modules},curses" |
687 |
- fi |
688 |
- |
689 |
- # Provide an empty LIBPATHENV because we disable rpath but we do not |
690 |
- # need LD_LIBRARY_PATH by default since that breaks USE=multitarget |
691 |
- # #564272 |
692 |
- INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \ |
693 |
- --program-suffix=${MY_SUFFIX} \ |
694 |
- --with-soname=ruby${MY_SUFFIX} \ |
695 |
- --docdir=${EPREFIX}/usr/share/doc/${P} \ |
696 |
- --enable-shared \ |
697 |
- --enable-pthread \ |
698 |
- --disable-rpath \ |
699 |
- --with-out-ext="${modules}" \ |
700 |
- $(use_enable jemalloc jemalloc) \ |
701 |
- $(use_enable socks5 socks) \ |
702 |
- $(use_enable doc install-doc) \ |
703 |
- --enable-ipv6 \ |
704 |
- $(use_enable debug) \ |
705 |
- ${myconf} \ |
706 |
- --enable-option-checking=no \ |
707 |
- || die "econf failed" |
708 |
-} |
709 |
- |
710 |
-src_compile() { |
711 |
- emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
712 |
-} |
713 |
- |
714 |
-src_test() { |
715 |
- emake -j1 V=1 test || die "make test failed" |
716 |
- |
717 |
- elog "Ruby's make test has been run. Ruby also ships with a make check" |
718 |
- elog "that cannot be run until after ruby has been installed." |
719 |
- elog |
720 |
- if use rubytests; then |
721 |
- elog "You have enabled rubytests, so they will be installed to" |
722 |
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
723 |
- elog "than root, and you must place them into a writeable directory." |
724 |
- elog "Then call: " |
725 |
- elog |
726 |
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
727 |
- else |
728 |
- elog "Enable the rubytests USE flag to install the make check tests" |
729 |
- fi |
730 |
-} |
731 |
- |
732 |
-src_install() { |
733 |
- # Remove the remaining bundled gems. We do this late in the process |
734 |
- # since they are used during the build to e.g. create the |
735 |
- # documentation. |
736 |
- rm -rf ext/json || die |
737 |
- |
738 |
- # Ruby is involved in the install process, we don't want interference here. |
739 |
- unset RUBYOPT |
740 |
- |
741 |
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
742 |
- |
743 |
- LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
744 |
- RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
745 |
- for d in $(find "${S}/ext" -type d) ; do |
746 |
- RUBYLIB="${RUBYLIB}:$d" |
747 |
- done |
748 |
- export LD_LIBRARY_PATH RUBYLIB |
749 |
- |
750 |
- emake V=1 DESTDIR="${D}" install || die "make install failed" |
751 |
- |
752 |
- # Remove installed rubygems copy |
753 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
754 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
755 |
- rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
756 |
- |
757 |
- if use doc; then |
758 |
- make DESTDIR="${D}" install-doc || die "make install-doc failed" |
759 |
- fi |
760 |
- |
761 |
- if use examples; then |
762 |
- insinto /usr/share/doc/${PF} |
763 |
- doins -r sample |
764 |
- fi |
765 |
- |
766 |
- dodoc ChangeLog NEWS doc/NEWS* README* || die |
767 |
- |
768 |
- if use rubytests; then |
769 |
- pushd test |
770 |
- insinto /usr/share/${PN}-${SLOT}/test |
771 |
- doins -r . |
772 |
- popd |
773 |
- fi |
774 |
-} |
775 |
- |
776 |
-pkg_postinst() { |
777 |
- if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
778 |
- eselect ruby set ruby${MY_SUFFIX} |
779 |
- fi |
780 |
- |
781 |
- elog |
782 |
- elog "To switch between available Ruby profiles, execute as root:" |
783 |
- elog "\teselect ruby set ruby(19|20|...)" |
784 |
- elog |
785 |
-} |
786 |
- |
787 |
-pkg_postrm() { |
788 |
- eselect ruby cleanup |
789 |
-} |
790 |
|
791 |
diff --git a/dev-lang/ruby/ruby-2.2.3.ebuild b/dev-lang/ruby/ruby-2.2.3.ebuild |
792 |
deleted file mode 100644 |
793 |
index cad360a..0000000 |
794 |
--- a/dev-lang/ruby/ruby-2.2.3.ebuild |
795 |
+++ /dev/null |
796 |
@@ -1,238 +0,0 @@ |
797 |
-# Copyright 1999-2015 Gentoo Foundation |
798 |
-# Distributed under the terms of the GNU General Public License v2 |
799 |
-# $Id$ |
800 |
- |
801 |
-EAPI=5 |
802 |
- |
803 |
-#PATCHSET=1 |
804 |
- |
805 |
-inherit autotools eutils flag-o-matic multilib versionator |
806 |
- |
807 |
-MY_P="${PN}-$(get_version_component_range 1-3)" |
808 |
-S=${WORKDIR}/${MY_P} |
809 |
- |
810 |
-SLOT=$(get_version_component_range 1-2) |
811 |
-MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
812 |
-RUBYVERSION=2.2.0 |
813 |
- |
814 |
-if [[ -n ${PATCHSET} ]]; then |
815 |
- if [[ ${PVR} == ${PV} ]]; then |
816 |
- PATCHSET="${PV}-r0.${PATCHSET}" |
817 |
- else |
818 |
- PATCHSET="${PVR}.${PATCHSET}" |
819 |
- fi |
820 |
-else |
821 |
- PATCHSET="${PVR}" |
822 |
-fi |
823 |
- |
824 |
-DESCRIPTION="An object-oriented scripting language" |
825 |
-HOMEPAGE="http://www.ruby-lang.org/" |
826 |
-SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz |
827 |
- https://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
828 |
- |
829 |
-LICENSE="|| ( Ruby-BSD BSD-2 )" |
830 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
831 |
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc +rdoc rubytests socks5 ssl xemacs ncurses +readline" |
832 |
- |
833 |
-RDEPEND=" |
834 |
- berkdb? ( sys-libs/db:= ) |
835 |
- gdbm? ( sys-libs/gdbm ) |
836 |
- jemalloc? ( dev-libs/jemalloc ) |
837 |
- ssl? ( dev-libs/openssl:0 ) |
838 |
- socks5? ( >=net-proxy/dante-1.1.13 ) |
839 |
- ncurses? ( sys-libs/ncurses:0= ) |
840 |
- readline? ( sys-libs/readline:0 ) |
841 |
- dev-libs/libyaml |
842 |
- virtual/libffi |
843 |
- sys-libs/zlib |
844 |
- >=app-eselect/eselect-ruby-20141227 |
845 |
- !<dev-ruby/rdoc-3.9.4 |
846 |
- !<dev-ruby/rubygems-1.8.10-r1" |
847 |
- |
848 |
-DEPEND="${RDEPEND}" |
849 |
- |
850 |
-BUNDLED_GEMS=" |
851 |
- >=dev-ruby/minitest-5.4.3[ruby_targets_ruby22] |
852 |
- >=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22] |
853 |
- >=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22] |
854 |
-" |
855 |
- |
856 |
-PDEPEND=" |
857 |
- ${BUNDLED_GEMS} |
858 |
- virtual/rubygems[ruby_targets_ruby22] |
859 |
- >=dev-ruby/json-1.8.1[ruby_targets_ruby22] |
860 |
- >=dev-ruby/rake-0.9.6[ruby_targets_ruby22] |
861 |
- rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] ) |
862 |
- xemacs? ( app-xemacs/ruby-modes )" |
863 |
- |
864 |
-src_prepare() { |
865 |
- EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
866 |
- epatch "${WORKDIR}/patches" |
867 |
- |
868 |
- # We can no longer unbundle all of rake because rubygems now depends |
869 |
- # on this. We leave the actual rake code around to bootstrap |
870 |
- # rubygems, but remove the bits that would cause a file collision. |
871 |
- einfo "Unbundling gems..." |
872 |
- cd "$S" |
873 |
- rm -r \ |
874 |
- {bin,lib}/rake lib/rake.rb man/rake.1 \ |
875 |
- bin/gem || die "removal failed" |
876 |
- # Remove bundled gems that we will install via PDEPEND, bug |
877 |
- # 539700. Use explicit version numbers to ensure rm fails when they |
878 |
- # change so we can update dependencies accordingly. |
879 |
- rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die |
880 |
- |
881 |
- # Fix a hardcoded lib path in configure script |
882 |
- sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
883 |
- configure.in || die "sed failed" |
884 |
- |
885 |
- eautoreconf |
886 |
-} |
887 |
- |
888 |
-src_configure() { |
889 |
- local myconf= |
890 |
- |
891 |
- # The Tk module can no longer be built because the module code is no |
892 |
- # longer compatible with newer stable versions. |
893 |
- # https://bugs.gentoo.org/show_bug.cgi?id=500894 |
894 |
- local modules="tk" |
895 |
- |
896 |
- # -fomit-frame-pointer makes ruby segfault, see bug #150413. |
897 |
- filter-flags -fomit-frame-pointer |
898 |
- # In many places aliasing rules are broken; play it safe |
899 |
- # as it's risky with newer compilers to leave it as it is. |
900 |
- append-flags -fno-strict-aliasing |
901 |
- # SuperH needs this |
902 |
- use sh && append-flags -mieee |
903 |
- |
904 |
- # Socks support via dante |
905 |
- if use socks5 ; then |
906 |
- # Socks support can't be disabled as long as SOCKS_SERVER is |
907 |
- # set and socks library is present, so need to unset |
908 |
- # SOCKS_SERVER in that case. |
909 |
- unset SOCKS_SERVER |
910 |
- fi |
911 |
- |
912 |
- # Increase GC_MALLOC_LIMIT if set (default is 8000000) |
913 |
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
914 |
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
915 |
- fi |
916 |
- |
917 |
- # ipv6 hack, bug 168939. Needs --enable-ipv6. |
918 |
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
919 |
- |
920 |
- # Determine which modules *not* to build depending in the USE flags. |
921 |
- if ! use readline ; then |
922 |
- modules="${modules},readline" |
923 |
- fi |
924 |
- if ! use berkdb ; then |
925 |
- modules="${modules},dbm" |
926 |
- fi |
927 |
- if ! use gdbm ; then |
928 |
- modules="${modules},gdbm" |
929 |
- fi |
930 |
- if ! use ssl ; then |
931 |
- modules="${modules},openssl" |
932 |
- fi |
933 |
- if ! use ncurses ; then |
934 |
- modules="${modules},curses" |
935 |
- fi |
936 |
- |
937 |
- INSTALL="${EPREFIX}/usr/bin/install -c" econf \ |
938 |
- --program-suffix=${MY_SUFFIX} \ |
939 |
- --with-soname=ruby${MY_SUFFIX} \ |
940 |
- --docdir=${EPREFIX}/usr/share/doc/${P} \ |
941 |
- --enable-shared \ |
942 |
- --enable-pthread \ |
943 |
- --disable-rpath \ |
944 |
- --with-out-ext="${modules}" \ |
945 |
- $(use_enable jemalloc jemalloc) \ |
946 |
- $(use_enable socks5 socks) \ |
947 |
- $(use_enable doc install-doc) \ |
948 |
- --enable-ipv6 \ |
949 |
- $(use_enable debug) \ |
950 |
- ${myconf} \ |
951 |
- --enable-option-checking=no \ |
952 |
- || die "econf failed" |
953 |
-} |
954 |
- |
955 |
-src_compile() { |
956 |
- emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
957 |
-} |
958 |
- |
959 |
-src_test() { |
960 |
- emake -j1 V=1 test || die "make test failed" |
961 |
- |
962 |
- elog "Ruby's make test has been run. Ruby also ships with a make check" |
963 |
- elog "that cannot be run until after ruby has been installed." |
964 |
- elog |
965 |
- if use rubytests; then |
966 |
- elog "You have enabled rubytests, so they will be installed to" |
967 |
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
968 |
- elog "than root, and you must place them into a writeable directory." |
969 |
- elog "Then call: " |
970 |
- elog |
971 |
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
972 |
- else |
973 |
- elog "Enable the rubytests USE flag to install the make check tests" |
974 |
- fi |
975 |
-} |
976 |
- |
977 |
-src_install() { |
978 |
- # Remove the remaining bundled gems. We do this late in the process |
979 |
- # since they are used during the build to e.g. create the |
980 |
- # documentation. |
981 |
- rm -rf ext/json || die |
982 |
- |
983 |
- # Ruby is involved in the install process, we don't want interference here. |
984 |
- unset RUBYOPT |
985 |
- |
986 |
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
987 |
- |
988 |
- LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
989 |
- RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
990 |
- for d in $(find "${S}/ext" -type d) ; do |
991 |
- RUBYLIB="${RUBYLIB}:$d" |
992 |
- done |
993 |
- export LD_LIBRARY_PATH RUBYLIB |
994 |
- |
995 |
- emake V=1 DESTDIR="${D}" install || die "make install failed" |
996 |
- |
997 |
- # Remove installed rubygems copy |
998 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
999 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
1000 |
- rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
1001 |
- |
1002 |
- if use doc; then |
1003 |
- make DESTDIR="${D}" install-doc || die "make install-doc failed" |
1004 |
- fi |
1005 |
- |
1006 |
- if use examples; then |
1007 |
- insinto /usr/share/doc/${PF} |
1008 |
- doins -r sample |
1009 |
- fi |
1010 |
- |
1011 |
- dodoc ChangeLog NEWS doc/NEWS* README* || die |
1012 |
- |
1013 |
- if use rubytests; then |
1014 |
- pushd test |
1015 |
- insinto /usr/share/${PN}-${SLOT}/test |
1016 |
- doins -r . |
1017 |
- popd |
1018 |
- fi |
1019 |
-} |
1020 |
- |
1021 |
-pkg_postinst() { |
1022 |
- if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
1023 |
- eselect ruby set ruby${MY_SUFFIX} |
1024 |
- fi |
1025 |
- |
1026 |
- elog |
1027 |
- elog "To switch between available Ruby profiles, execute as root:" |
1028 |
- elog "\teselect ruby set ruby(19|20|...)" |
1029 |
- elog |
1030 |
-} |
1031 |
- |
1032 |
-pkg_postrm() { |
1033 |
- eselect ruby cleanup |
1034 |
-} |
1035 |
|
1036 |
diff --git a/dev-lang/ruby/ruby-2.2.4.ebuild b/dev-lang/ruby/ruby-2.2.4.ebuild |
1037 |
deleted file mode 100644 |
1038 |
index 16c694b..0000000 |
1039 |
--- a/dev-lang/ruby/ruby-2.2.4.ebuild |
1040 |
+++ /dev/null |
1041 |
@@ -1,244 +0,0 @@ |
1042 |
-# Copyright 1999-2015 Gentoo Foundation |
1043 |
-# Distributed under the terms of the GNU General Public License v2 |
1044 |
-# $Id$ |
1045 |
- |
1046 |
-EAPI=5 |
1047 |
- |
1048 |
-#PATCHSET=1 |
1049 |
- |
1050 |
-inherit autotools eutils flag-o-matic multilib versionator |
1051 |
- |
1052 |
-MY_P="${PN}-$(get_version_component_range 1-3)" |
1053 |
-S=${WORKDIR}/${MY_P} |
1054 |
- |
1055 |
-SLOT=$(get_version_component_range 1-2) |
1056 |
-MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
1057 |
-RUBYVERSION=2.2.0 |
1058 |
- |
1059 |
-if [[ -n ${PATCHSET} ]]; then |
1060 |
- if [[ ${PVR} == ${PV} ]]; then |
1061 |
- PATCHSET="${PV}-r0.${PATCHSET}" |
1062 |
- else |
1063 |
- PATCHSET="${PVR}.${PATCHSET}" |
1064 |
- fi |
1065 |
-else |
1066 |
- PATCHSET="${PVR}" |
1067 |
-fi |
1068 |
- |
1069 |
-DESCRIPTION="An object-oriented scripting language" |
1070 |
-HOMEPAGE="http://www.ruby-lang.org/" |
1071 |
-SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz |
1072 |
- https://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
1073 |
- |
1074 |
-LICENSE="|| ( Ruby-BSD BSD-2 )" |
1075 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
1076 |
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 ssl xemacs ncurses +readline" |
1077 |
- |
1078 |
-RDEPEND=" |
1079 |
- berkdb? ( sys-libs/db:= ) |
1080 |
- gdbm? ( sys-libs/gdbm ) |
1081 |
- jemalloc? ( dev-libs/jemalloc ) |
1082 |
- ssl? ( |
1083 |
- !libressl? ( dev-libs/openssl:0 ) |
1084 |
- libressl? ( dev-libs/libressl ) |
1085 |
- ) |
1086 |
- socks5? ( >=net-proxy/dante-1.1.13 ) |
1087 |
- ncurses? ( sys-libs/ncurses:0= ) |
1088 |
- readline? ( sys-libs/readline:0 ) |
1089 |
- dev-libs/libyaml |
1090 |
- virtual/libffi |
1091 |
- sys-libs/zlib |
1092 |
- >=app-eselect/eselect-ruby-20141227 |
1093 |
- !<dev-ruby/rdoc-3.9.4 |
1094 |
- !<dev-ruby/rubygems-1.8.10-r1" |
1095 |
- |
1096 |
-DEPEND="${RDEPEND}" |
1097 |
- |
1098 |
-BUNDLED_GEMS=" |
1099 |
- >=dev-ruby/minitest-5.4.3[ruby_targets_ruby22] |
1100 |
- >=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22] |
1101 |
- >=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22] |
1102 |
-" |
1103 |
- |
1104 |
-PDEPEND=" |
1105 |
- ${BUNDLED_GEMS} |
1106 |
- virtual/rubygems[ruby_targets_ruby22] |
1107 |
- >=dev-ruby/json-1.8.1[ruby_targets_ruby22] |
1108 |
- >=dev-ruby/rake-0.9.6[ruby_targets_ruby22] |
1109 |
- rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] ) |
1110 |
- xemacs? ( app-xemacs/ruby-modes )" |
1111 |
- |
1112 |
-src_prepare() { |
1113 |
- EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
1114 |
- epatch "${WORKDIR}/patches" |
1115 |
- |
1116 |
- # We can no longer unbundle all of rake because rubygems now depends |
1117 |
- # on this. We leave the actual rake code around to bootstrap |
1118 |
- # rubygems, but remove the bits that would cause a file collision. |
1119 |
- einfo "Unbundling gems..." |
1120 |
- cd "$S" |
1121 |
- rm -r \ |
1122 |
- {bin,lib}/rake lib/rake.rb man/rake.1 \ |
1123 |
- bin/gem || die "removal failed" |
1124 |
- # Remove bundled gems that we will install via PDEPEND, bug |
1125 |
- # 539700. Use explicit version numbers to ensure rm fails when they |
1126 |
- # change so we can update dependencies accordingly. |
1127 |
- rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die |
1128 |
- |
1129 |
- # Fix a hardcoded lib path in configure script |
1130 |
- sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
1131 |
- configure.in || die "sed failed" |
1132 |
- |
1133 |
- eautoreconf |
1134 |
-} |
1135 |
- |
1136 |
-src_configure() { |
1137 |
- local myconf= |
1138 |
- |
1139 |
- # The Tk module can no longer be built because the module code is no |
1140 |
- # longer compatible with newer stable versions. |
1141 |
- # https://bugs.gentoo.org/show_bug.cgi?id=500894 |
1142 |
- local modules="tk" |
1143 |
- |
1144 |
- # -fomit-frame-pointer makes ruby segfault, see bug #150413. |
1145 |
- filter-flags -fomit-frame-pointer |
1146 |
- # In many places aliasing rules are broken; play it safe |
1147 |
- # as it's risky with newer compilers to leave it as it is. |
1148 |
- append-flags -fno-strict-aliasing |
1149 |
- # SuperH needs this |
1150 |
- use sh && append-flags -mieee |
1151 |
- |
1152 |
- # Socks support via dante |
1153 |
- if use socks5 ; then |
1154 |
- # Socks support can't be disabled as long as SOCKS_SERVER is |
1155 |
- # set and socks library is present, so need to unset |
1156 |
- # SOCKS_SERVER in that case. |
1157 |
- unset SOCKS_SERVER |
1158 |
- fi |
1159 |
- |
1160 |
- # Increase GC_MALLOC_LIMIT if set (default is 8000000) |
1161 |
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
1162 |
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
1163 |
- fi |
1164 |
- |
1165 |
- # ipv6 hack, bug 168939. Needs --enable-ipv6. |
1166 |
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
1167 |
- |
1168 |
- # Determine which modules *not* to build depending in the USE flags. |
1169 |
- if ! use readline ; then |
1170 |
- modules="${modules},readline" |
1171 |
- fi |
1172 |
- if ! use berkdb ; then |
1173 |
- modules="${modules},dbm" |
1174 |
- fi |
1175 |
- if ! use gdbm ; then |
1176 |
- modules="${modules},gdbm" |
1177 |
- fi |
1178 |
- if ! use ssl ; then |
1179 |
- modules="${modules},openssl" |
1180 |
- fi |
1181 |
- if ! use ncurses ; then |
1182 |
- modules="${modules},curses" |
1183 |
- fi |
1184 |
- |
1185 |
- # Provide an empty LIBPATHENV because we disable rpath but we do not |
1186 |
- # need LD_LIBRARY_PATH by default since that breaks USE=multitarget |
1187 |
- # #564272 |
1188 |
- INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \ |
1189 |
- --program-suffix=${MY_SUFFIX} \ |
1190 |
- --with-soname=ruby${MY_SUFFIX} \ |
1191 |
- --docdir=${EPREFIX}/usr/share/doc/${P} \ |
1192 |
- --enable-shared \ |
1193 |
- --enable-pthread \ |
1194 |
- --disable-rpath \ |
1195 |
- --with-out-ext="${modules}" \ |
1196 |
- $(use_enable jemalloc jemalloc) \ |
1197 |
- $(use_enable socks5 socks) \ |
1198 |
- $(use_enable doc install-doc) \ |
1199 |
- --enable-ipv6 \ |
1200 |
- $(use_enable debug) \ |
1201 |
- ${myconf} \ |
1202 |
- --enable-option-checking=no \ |
1203 |
- || die "econf failed" |
1204 |
-} |
1205 |
- |
1206 |
-src_compile() { |
1207 |
- emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
1208 |
-} |
1209 |
- |
1210 |
-src_test() { |
1211 |
- emake -j1 V=1 test || die "make test failed" |
1212 |
- |
1213 |
- elog "Ruby's make test has been run. Ruby also ships with a make check" |
1214 |
- elog "that cannot be run until after ruby has been installed." |
1215 |
- elog |
1216 |
- if use rubytests; then |
1217 |
- elog "You have enabled rubytests, so they will be installed to" |
1218 |
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
1219 |
- elog "than root, and you must place them into a writeable directory." |
1220 |
- elog "Then call: " |
1221 |
- elog |
1222 |
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
1223 |
- else |
1224 |
- elog "Enable the rubytests USE flag to install the make check tests" |
1225 |
- fi |
1226 |
-} |
1227 |
- |
1228 |
-src_install() { |
1229 |
- # Remove the remaining bundled gems. We do this late in the process |
1230 |
- # since they are used during the build to e.g. create the |
1231 |
- # documentation. |
1232 |
- rm -rf ext/json || die |
1233 |
- |
1234 |
- # Ruby is involved in the install process, we don't want interference here. |
1235 |
- unset RUBYOPT |
1236 |
- |
1237 |
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
1238 |
- |
1239 |
- LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
1240 |
- RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
1241 |
- for d in $(find "${S}/ext" -type d) ; do |
1242 |
- RUBYLIB="${RUBYLIB}:$d" |
1243 |
- done |
1244 |
- export LD_LIBRARY_PATH RUBYLIB |
1245 |
- |
1246 |
- emake V=1 DESTDIR="${D}" install || die "make install failed" |
1247 |
- |
1248 |
- # Remove installed rubygems copy |
1249 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
1250 |
- rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
1251 |
- rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
1252 |
- |
1253 |
- if use doc; then |
1254 |
- make DESTDIR="${D}" install-doc || die "make install-doc failed" |
1255 |
- fi |
1256 |
- |
1257 |
- if use examples; then |
1258 |
- insinto /usr/share/doc/${PF} |
1259 |
- doins -r sample |
1260 |
- fi |
1261 |
- |
1262 |
- dodoc ChangeLog NEWS doc/NEWS* README* || die |
1263 |
- |
1264 |
- if use rubytests; then |
1265 |
- pushd test |
1266 |
- insinto /usr/share/${PN}-${SLOT}/test |
1267 |
- doins -r . |
1268 |
- popd |
1269 |
- fi |
1270 |
-} |
1271 |
- |
1272 |
-pkg_postinst() { |
1273 |
- if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
1274 |
- eselect ruby set ruby${MY_SUFFIX} |
1275 |
- fi |
1276 |
- |
1277 |
- elog |
1278 |
- elog "To switch between available Ruby profiles, execute as root:" |
1279 |
- elog "\teselect ruby set ruby(19|20|...)" |
1280 |
- elog |
1281 |
-} |
1282 |
- |
1283 |
-pkg_postrm() { |
1284 |
- eselect ruby cleanup |
1285 |
-} |