1 |
commit: 9be62a622b4127df3243f213c6afd609609ba3b9 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 1 07:22:44 2017 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 1 07:22:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9be62a62 |
7 |
|
8 |
dev-lang/ruby: cleanup |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-lang/ruby/Manifest | 3 - |
13 |
dev-lang/ruby/ruby-2.4.1-r1.ebuild | 240 ------------------------------------ |
14 |
dev-lang/ruby/ruby-2.4.1-r2.ebuild | 243 ------------------------------------- |
15 |
dev-lang/ruby/ruby-2.4.1.ebuild | 240 ------------------------------------ |
16 |
4 files changed, 726 deletions(-) |
17 |
|
18 |
diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest |
19 |
index 24d024beef9..65c072113cb 100644 |
20 |
--- a/dev-lang/ruby/Manifest |
21 |
+++ b/dev-lang/ruby/Manifest |
22 |
@@ -9,7 +9,4 @@ DIST ruby-patches-2.1.9.tar.bz2 1931 SHA256 7e02c1b6a6352693bfd5828c9d1a7633a52b |
23 |
DIST ruby-patches-2.2.6.tar.bz2 2272 SHA256 f54373704ce8df732490e8d1e7e35188503faacc5278fe0ab0d8c07bdc762fed SHA512 ed8bff8f730ccb114e62784d29541f276b2821d9eb121a9772dc4aabc139b688f2b14f5f27710098a8cd751c62d31b46170b427ad54dc4f6490c003450ae1583 WHIRLPOOL 8598c9284252c1e7cc9f9019c5f468ce5ab8b4ae013e71c631cd00cc8bfde068b041f1bc6851bb2962982a1e46cbde0ddc51c186ea41638a7881c587c658e603 |
24 |
DIST ruby-patches-2.2.7-r3.tar.bz2 5757 SHA256 3470915805a6264ad74a9c7cb7280c4be3585b4dc255685e53205eb4c90536f9 SHA512 9766a44633ddc33e575e2f82d0954ea54620ce7ff7f73d58e76dc3c8ab1cb664c02bc3dac5ca5834d955d5cdfc8d3b647f91c19160e3a9f62c9a69839705702e WHIRLPOOL 6476c46449424a73b75ce4605b2501240b20972960064f0c6380afba67c5472563292dd7d1965400c641b746715c3ff547566d674244b127699196043ab87d18 |
25 |
DIST ruby-patches-2.3.4-r3.tar.bz2 4698 SHA256 196bbafe0c43718b4e2120e2e4d681befe9ccba1d2607fb9459d670c74d5bd38 SHA512 f2867c3460e3a276849b09bd367949024aa8c0e4631fef6bd46e1ef44d56dfe2a7baa88ea640b8953252e566d7927178da50195b6382d8fd8e1b9ef7d9ceb2fc WHIRLPOOL 9ba584dcc0055f4401f4345da7b161d08b4a4651ea669b7a26c7504d3aeb650051080d089652c2ae39e0163609cbef1f480a46555a4f3af8297180215929d472 |
26 |
-DIST ruby-patches-2.4.1-r1.tar.bz2 2047 SHA256 9560b8e8dc4a5517814df07aa635c9269f5e7cff5a15827a25a9f0811194e450 SHA512 b35db875a7e4a226e75eb6f7bc68b4bc97cc699bdc5f6930015e55cdc324b67b9883a2aa574c9c9a8b5dc5345c4df8a5ca8ace5b794b3e4de6517f3eefd25745 WHIRLPOOL fc5d226f46fe4ee1c86f6fff51ec9184b8c0ec08a1793eab365437d4ce2fd573cfc8857386cd10932f7dde05254bc975eff5b7986aea429730c606147fae2a5c |
27 |
-DIST ruby-patches-2.4.1-r2.tar.bz2 4030 SHA256 f1beac832d3bd94b8a0be137da845ce96edd574be61f25945150e9a351e4ee73 SHA512 e3f141710a23e4716696fdd5fd898386b32ce6e9d729738591bde8a74f9af8353e0a3f5f9c48403443c6c1ee074b5c2f3b5e9503d96b57de5c6c484ccb337b40 WHIRLPOOL 327404741b8448f7d49ad3ca3cfe915b60881348fc98e18027276f26d4381237f67b7f8d849df765e76184c2f4a92861b585ddf9b25dcb485e4ac5e2b4ad43cd |
28 |
DIST ruby-patches-2.4.1-r3.tar.bz2 4589 SHA256 6a096f444d1281ac1ce8fd391d085741d3f41527ed0f9b893d7276c17e7b9bdd SHA512 8507189b192fd9f7f2591a2e417526e7f8baf9d2330669b13f79759c06f7729684772e74fee88c78b0ae5b266ad08c5694fcd173f4fb44c34f4cb4d1042cd773 WHIRLPOOL 81c992c4bf5bdc8a9091c68a31ffea1e52cb024388be193173bc6ad254b005bed0d3fec2a50bf4fd6e07044e386ab41f5e5b102ed27742cb53f1d381cf0a3d4a |
29 |
-DIST ruby-patches-2.4.1.tar.bz2 2047 SHA256 9560b8e8dc4a5517814df07aa635c9269f5e7cff5a15827a25a9f0811194e450 SHA512 b35db875a7e4a226e75eb6f7bc68b4bc97cc699bdc5f6930015e55cdc324b67b9883a2aa574c9c9a8b5dc5345c4df8a5ca8ace5b794b3e4de6517f3eefd25745 WHIRLPOOL fc5d226f46fe4ee1c86f6fff51ec9184b8c0ec08a1793eab365437d4ce2fd573cfc8857386cd10932f7dde05254bc975eff5b7986aea429730c606147fae2a5c |
30 |
|
31 |
diff --git a/dev-lang/ruby/ruby-2.4.1-r1.ebuild b/dev-lang/ruby/ruby-2.4.1-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 18a9fd3fe32..00000000000 |
34 |
--- a/dev-lang/ruby/ruby-2.4.1-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,240 +0,0 @@ |
37 |
-# Copyright 1999-2017 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
- |
42 |
-#PATCHSET=1 |
43 |
- |
44 |
-inherit autotools eutils flag-o-matic multilib versionator |
45 |
- |
46 |
-MY_P="${PN}-$(get_version_component_range 1-3)" |
47 |
-S=${WORKDIR}/${MY_P} |
48 |
- |
49 |
-SLOT=$(get_version_component_range 1-2) |
50 |
-MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
51 |
-RUBYVERSION=${SLOT}.0 |
52 |
- |
53 |
-if [[ -n ${PATCHSET} ]]; then |
54 |
- if [[ ${PVR} == ${PV} ]]; then |
55 |
- PATCHSET="${PV}-r0.${PATCHSET}" |
56 |
- else |
57 |
- PATCHSET="${PVR}.${PATCHSET}" |
58 |
- fi |
59 |
-else |
60 |
- PATCHSET="${PVR}" |
61 |
-fi |
62 |
- |
63 |
-DESCRIPTION="An object-oriented scripting language" |
64 |
-HOMEPAGE="http://www.ruby-lang.org/" |
65 |
-SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz |
66 |
- https://dev.gentoo.org/~graaff/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
67 |
- |
68 |
-LICENSE="|| ( Ruby-BSD BSD-2 )" |
69 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
70 |
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 ssl tk xemacs" |
71 |
- |
72 |
-RDEPEND=" |
73 |
- berkdb? ( sys-libs/db:= ) |
74 |
- gdbm? ( sys-libs/gdbm ) |
75 |
- jemalloc? ( dev-libs/jemalloc ) |
76 |
- ssl? ( |
77 |
- !libressl? ( dev-libs/openssl:0= ) |
78 |
- libressl? ( dev-libs/libressl ) |
79 |
- ) |
80 |
- socks5? ( >=net-proxy/dante-1.1.13 ) |
81 |
- tk? ( |
82 |
- dev-lang/tcl:0=[threads] |
83 |
- dev-lang/tk:0=[threads] |
84 |
- ) |
85 |
- dev-libs/libyaml |
86 |
- virtual/libffi |
87 |
- sys-libs/zlib |
88 |
- >=app-eselect/eselect-ruby-20161226 |
89 |
- !<dev-ruby/rdoc-3.9.4 |
90 |
- !<dev-ruby/rubygems-1.8.10-r1" |
91 |
- |
92 |
-DEPEND="${RDEPEND}" |
93 |
- |
94 |
-BUNDLED_GEMS=" |
95 |
- >=dev-ruby/did_you_mean-1.1.0:2.4[ruby_targets_ruby24] |
96 |
- >=dev-ruby/minitest-5.10.1[ruby_targets_ruby24] |
97 |
- >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby24] |
98 |
- >=dev-ruby/power_assert-0.4.1[ruby_targets_ruby24] |
99 |
- >=dev-ruby/rake-12.0.0[ruby_targets_ruby24] |
100 |
- >=dev-ruby/test-unit-3.2.3[ruby_targets_ruby24] |
101 |
- >=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24] |
102 |
-" |
103 |
- |
104 |
-PDEPEND=" |
105 |
- ${BUNDLED_GEMS} |
106 |
- virtual/rubygems[ruby_targets_ruby24] |
107 |
- >=dev-ruby/json-2.0.2[ruby_targets_ruby24] |
108 |
- rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby24] ) |
109 |
- xemacs? ( app-xemacs/ruby-modes )" |
110 |
- |
111 |
-src_prepare() { |
112 |
- EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
113 |
- epatch "${WORKDIR}/patches" |
114 |
- |
115 |
- einfo "Unbundling gems..." |
116 |
- cd "$S" |
117 |
- # Remove bundled gems that we will install via PDEPEND, bug |
118 |
- # 539700. Use explicit version numbers to ensure rm fails when they |
119 |
- # change so we can update dependencies accordingly. |
120 |
- rm -f gems/{did_you_mean-1.1.0,minitest-5.10.1,net-telnet-0.1.1,power_assert-0.4.1,rake-12.0.0,test-unit-3.2.3,xmlrpc-0.2.1}.gem || die |
121 |
- |
122 |
- einfo "Removing bundled libraries..." |
123 |
- rm -fr ext/fiddle/libffi-3.2.1 || die |
124 |
- |
125 |
- # Fix a hardcoded lib path in configure script |
126 |
- sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
127 |
- configure.in || die "sed failed" |
128 |
- |
129 |
- eapply_user |
130 |
- |
131 |
- eautoreconf |
132 |
-} |
133 |
- |
134 |
-src_configure() { |
135 |
- local modules= myconf= |
136 |
- |
137 |
- # -fomit-frame-pointer makes ruby segfault, see bug #150413. |
138 |
- filter-flags -fomit-frame-pointer |
139 |
- # In many places aliasing rules are broken; play it safe |
140 |
- # as it's risky with newer compilers to leave it as it is. |
141 |
- append-flags -fno-strict-aliasing |
142 |
- # SuperH needs this |
143 |
- use sh && append-flags -mieee |
144 |
- |
145 |
- # Socks support via dante |
146 |
- if use socks5 ; then |
147 |
- # Socks support can't be disabled as long as SOCKS_SERVER is |
148 |
- # set and socks library is present, so need to unset |
149 |
- # SOCKS_SERVER in that case. |
150 |
- unset SOCKS_SERVER |
151 |
- fi |
152 |
- |
153 |
- # Increase GC_MALLOC_LIMIT if set (default is 8000000) |
154 |
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
155 |
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
156 |
- fi |
157 |
- |
158 |
- # ipv6 hack, bug 168939. Needs --enable-ipv6. |
159 |
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
160 |
- |
161 |
- # Determine which modules *not* to build depending in the USE flags. |
162 |
- if ! use berkdb ; then |
163 |
- modules="${modules},dbm" |
164 |
- fi |
165 |
- if ! use gdbm ; then |
166 |
- modules="${modules},gdbm" |
167 |
- fi |
168 |
- if ! use ssl ; then |
169 |
- modules="${modules},openssl" |
170 |
- fi |
171 |
- if ! use tk ; then |
172 |
- modules="${modules},tk" |
173 |
- fi |
174 |
- |
175 |
- # Provide an empty LIBPATHENV because we disable rpath but we do not |
176 |
- # need LD_LIBRARY_PATH by default since that breaks USE=multitarget |
177 |
- # #564272 |
178 |
- INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \ |
179 |
- --program-suffix=${MY_SUFFIX} \ |
180 |
- --with-soname=ruby${MY_SUFFIX} \ |
181 |
- --docdir=${EPREFIX}/usr/share/doc/${P} \ |
182 |
- --enable-shared \ |
183 |
- --enable-pthread \ |
184 |
- --disable-rpath \ |
185 |
- --with-out-ext="${modules}" \ |
186 |
- $(use_with jemalloc jemalloc) \ |
187 |
- $(use_enable socks5 socks) \ |
188 |
- $(use_enable doc install-doc) \ |
189 |
- --enable-ipv6 \ |
190 |
- $(use_enable debug) \ |
191 |
- ${myconf} \ |
192 |
- --enable-option-checking=no \ |
193 |
- || die "econf failed" |
194 |
-} |
195 |
- |
196 |
-src_compile() { |
197 |
- emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
198 |
-} |
199 |
- |
200 |
-src_test() { |
201 |
- emake -j1 V=1 test || die "make test failed" |
202 |
- |
203 |
- elog "Ruby's make test has been run. Ruby also ships with a make check" |
204 |
- elog "that cannot be run until after ruby has been installed." |
205 |
- elog |
206 |
- if use rubytests; then |
207 |
- elog "You have enabled rubytests, so they will be installed to" |
208 |
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
209 |
- elog "than root, and you must place them into a writeable directory." |
210 |
- elog "Then call: " |
211 |
- elog |
212 |
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
213 |
- else |
214 |
- elog "Enable the rubytests USE flag to install the make check tests" |
215 |
- fi |
216 |
-} |
217 |
- |
218 |
-src_install() { |
219 |
- # Remove the remaining bundled gems. We do this late in the process |
220 |
- # since they are used during the build to e.g. create the |
221 |
- # documentation. |
222 |
- rm -rf ext/json || die |
223 |
- |
224 |
- # Ruby is involved in the install process, we don't want interference here. |
225 |
- unset RUBYOPT |
226 |
- |
227 |
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
228 |
- |
229 |
- LD_LIBRARY_PATH="${S}:${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
230 |
- RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
231 |
- for d in $(find "${S}/ext" -type d) ; do |
232 |
- RUBYLIB="${RUBYLIB}:$d" |
233 |
- done |
234 |
- export LD_LIBRARY_PATH RUBYLIB |
235 |
- |
236 |
- emake V=1 DESTDIR="${D}" install || die "make install failed" |
237 |
- |
238 |
- # Remove installed rubygems and rdoc copy |
239 |
- rm -rf "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
240 |
- rm -rf "${D}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed" |
241 |
- rm -rf "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
242 |
- rm -rf "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
243 |
- |
244 |
- if use doc; then |
245 |
- make DESTDIR="${D}" install-doc || die "make install-doc failed" |
246 |
- fi |
247 |
- |
248 |
- if use examples; then |
249 |
- insinto /usr/share/doc/${PF} |
250 |
- doins -r sample |
251 |
- fi |
252 |
- |
253 |
- dodoc ChangeLog NEWS doc/NEWS* README* || die |
254 |
- |
255 |
- if use rubytests; then |
256 |
- pushd test |
257 |
- insinto /usr/share/${PN}-${SLOT}/test |
258 |
- doins -r . |
259 |
- popd |
260 |
- fi |
261 |
-} |
262 |
- |
263 |
-pkg_postinst() { |
264 |
- if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
265 |
- eselect ruby set ruby${MY_SUFFIX} |
266 |
- fi |
267 |
- |
268 |
- elog |
269 |
- elog "To switch between available Ruby profiles, execute as root:" |
270 |
- elog "\teselect ruby set ruby(19|20|...)" |
271 |
- elog |
272 |
-} |
273 |
- |
274 |
-pkg_postrm() { |
275 |
- eselect ruby cleanup |
276 |
-} |
277 |
|
278 |
diff --git a/dev-lang/ruby/ruby-2.4.1-r2.ebuild b/dev-lang/ruby/ruby-2.4.1-r2.ebuild |
279 |
deleted file mode 100644 |
280 |
index 157a4e057d9..00000000000 |
281 |
--- a/dev-lang/ruby/ruby-2.4.1-r2.ebuild |
282 |
+++ /dev/null |
283 |
@@ -1,243 +0,0 @@ |
284 |
-# Copyright 1999-2017 Gentoo Foundation |
285 |
-# Distributed under the terms of the GNU General Public License v2 |
286 |
- |
287 |
-EAPI=6 |
288 |
- |
289 |
-#PATCHSET=1 |
290 |
- |
291 |
-inherit autotools eutils flag-o-matic multilib versionator |
292 |
- |
293 |
-MY_P="${PN}-$(get_version_component_range 1-3)" |
294 |
-S=${WORKDIR}/${MY_P} |
295 |
- |
296 |
-SLOT=$(get_version_component_range 1-2) |
297 |
-MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
298 |
-RUBYVERSION=${SLOT}.0 |
299 |
- |
300 |
-if [[ -n ${PATCHSET} ]]; then |
301 |
- if [[ ${PVR} == ${PV} ]]; then |
302 |
- PATCHSET="${PV}-r0.${PATCHSET}" |
303 |
- else |
304 |
- PATCHSET="${PVR}.${PATCHSET}" |
305 |
- fi |
306 |
-else |
307 |
- PATCHSET="${PVR}" |
308 |
-fi |
309 |
- |
310 |
-DESCRIPTION="An object-oriented scripting language" |
311 |
-HOMEPAGE="http://www.ruby-lang.org/" |
312 |
-SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz |
313 |
- https://dev.gentoo.org/~graaff/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
314 |
- |
315 |
-LICENSE="|| ( Ruby-BSD BSD-2 )" |
316 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
317 |
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 ssl static-libs tk xemacs" |
318 |
- |
319 |
-RDEPEND=" |
320 |
- berkdb? ( sys-libs/db:= ) |
321 |
- gdbm? ( sys-libs/gdbm ) |
322 |
- jemalloc? ( dev-libs/jemalloc ) |
323 |
- ssl? ( |
324 |
- !libressl? ( dev-libs/openssl:0= ) |
325 |
- libressl? ( dev-libs/libressl ) |
326 |
- ) |
327 |
- socks5? ( >=net-proxy/dante-1.1.13 ) |
328 |
- tk? ( |
329 |
- dev-lang/tcl:0=[threads] |
330 |
- dev-lang/tk:0=[threads] |
331 |
- ) |
332 |
- dev-libs/libyaml |
333 |
- virtual/libffi |
334 |
- sys-libs/zlib |
335 |
- >=app-eselect/eselect-ruby-20161226 |
336 |
- !<dev-ruby/rdoc-3.9.4 |
337 |
- !<dev-ruby/rubygems-1.8.10-r1" |
338 |
- |
339 |
-DEPEND="${RDEPEND}" |
340 |
- |
341 |
-BUNDLED_GEMS=" |
342 |
- >=dev-ruby/did_you_mean-1.1.0:2.4[ruby_targets_ruby24] |
343 |
- >=dev-ruby/minitest-5.10.1[ruby_targets_ruby24] |
344 |
- >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby24] |
345 |
- >=dev-ruby/power_assert-0.4.1[ruby_targets_ruby24] |
346 |
- >=dev-ruby/rake-12.0.0[ruby_targets_ruby24] |
347 |
- >=dev-ruby/test-unit-3.2.3[ruby_targets_ruby24] |
348 |
- >=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24] |
349 |
-" |
350 |
- |
351 |
-PDEPEND=" |
352 |
- ${BUNDLED_GEMS} |
353 |
- virtual/rubygems[ruby_targets_ruby24] |
354 |
- >=dev-ruby/json-2.0.2[ruby_targets_ruby24] |
355 |
- rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby24] ) |
356 |
- xemacs? ( app-xemacs/ruby-modes )" |
357 |
- |
358 |
-src_prepare() { |
359 |
- EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
360 |
- epatch "${WORKDIR}/patches" |
361 |
- |
362 |
- einfo "Unbundling gems..." |
363 |
- cd "$S" |
364 |
- # Remove bundled gems that we will install via PDEPEND, bug |
365 |
- # 539700. Use explicit version numbers to ensure rm fails when they |
366 |
- # change so we can update dependencies accordingly. |
367 |
- rm -f gems/{did_you_mean-1.1.0,minitest-5.10.1,net-telnet-0.1.1,power_assert-0.4.1,rake-12.0.0,test-unit-3.2.3,xmlrpc-0.2.1}.gem || die |
368 |
- |
369 |
- einfo "Removing bundled libraries..." |
370 |
- rm -fr ext/fiddle/libffi-3.2.1 || die |
371 |
- |
372 |
- # Fix a hardcoded lib path in configure script |
373 |
- sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
374 |
- configure.in || die "sed failed" |
375 |
- |
376 |
- eapply_user |
377 |
- |
378 |
- eautoreconf |
379 |
-} |
380 |
- |
381 |
-src_configure() { |
382 |
- local modules= myconf= |
383 |
- |
384 |
- # -fomit-frame-pointer makes ruby segfault, see bug #150413. |
385 |
- filter-flags -fomit-frame-pointer |
386 |
- # In many places aliasing rules are broken; play it safe |
387 |
- # as it's risky with newer compilers to leave it as it is. |
388 |
- append-flags -fno-strict-aliasing |
389 |
- # SuperH needs this |
390 |
- use sh && append-flags -mieee |
391 |
- |
392 |
- # Socks support via dante |
393 |
- if use socks5 ; then |
394 |
- # Socks support can't be disabled as long as SOCKS_SERVER is |
395 |
- # set and socks library is present, so need to unset |
396 |
- # SOCKS_SERVER in that case. |
397 |
- unset SOCKS_SERVER |
398 |
- fi |
399 |
- |
400 |
- # Increase GC_MALLOC_LIMIT if set (default is 8000000) |
401 |
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
402 |
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
403 |
- fi |
404 |
- |
405 |
- # ipv6 hack, bug 168939. Needs --enable-ipv6. |
406 |
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
407 |
- |
408 |
- # Determine which modules *not* to build depending in the USE flags. |
409 |
- if ! use berkdb ; then |
410 |
- modules="${modules},dbm" |
411 |
- fi |
412 |
- if ! use gdbm ; then |
413 |
- modules="${modules},gdbm" |
414 |
- fi |
415 |
- if ! use ssl ; then |
416 |
- modules="${modules},openssl" |
417 |
- fi |
418 |
- if ! use tk ; then |
419 |
- modules="${modules},tk" |
420 |
- fi |
421 |
- |
422 |
- # Provide an empty LIBPATHENV because we disable rpath but we do not |
423 |
- # need LD_LIBRARY_PATH by default since that breaks USE=multitarget |
424 |
- # #564272 |
425 |
- INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \ |
426 |
- --program-suffix=${MY_SUFFIX} \ |
427 |
- --with-soname=ruby${MY_SUFFIX} \ |
428 |
- --docdir=${EPREFIX}/usr/share/doc/${P} \ |
429 |
- --enable-shared \ |
430 |
- --enable-pthread \ |
431 |
- --disable-rpath \ |
432 |
- --with-out-ext="${modules}" \ |
433 |
- $(use_with jemalloc jemalloc) \ |
434 |
- $(use_enable socks5 socks) \ |
435 |
- $(use_enable doc install-doc) \ |
436 |
- --enable-ipv6 \ |
437 |
- $(use_enable static-libs static) \ |
438 |
- $(use_enable static-libs install-static-library) \ |
439 |
- $(use_with static-libs static-linked-ext) \ |
440 |
- $(use_enable debug) \ |
441 |
- ${myconf} \ |
442 |
- --enable-option-checking=no \ |
443 |
- || die "econf failed" |
444 |
-} |
445 |
- |
446 |
-src_compile() { |
447 |
- emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
448 |
-} |
449 |
- |
450 |
-src_test() { |
451 |
- emake -j1 V=1 test || die "make test failed" |
452 |
- |
453 |
- elog "Ruby's make test has been run. Ruby also ships with a make check" |
454 |
- elog "that cannot be run until after ruby has been installed." |
455 |
- elog |
456 |
- if use rubytests; then |
457 |
- elog "You have enabled rubytests, so they will be installed to" |
458 |
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
459 |
- elog "than root, and you must place them into a writeable directory." |
460 |
- elog "Then call: " |
461 |
- elog |
462 |
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
463 |
- else |
464 |
- elog "Enable the rubytests USE flag to install the make check tests" |
465 |
- fi |
466 |
-} |
467 |
- |
468 |
-src_install() { |
469 |
- # Remove the remaining bundled gems. We do this late in the process |
470 |
- # since they are used during the build to e.g. create the |
471 |
- # documentation. |
472 |
- rm -rf ext/json || die |
473 |
- |
474 |
- # Ruby is involved in the install process, we don't want interference here. |
475 |
- unset RUBYOPT |
476 |
- |
477 |
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
478 |
- |
479 |
- LD_LIBRARY_PATH="${S}:${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
480 |
- RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
481 |
- for d in $(find "${S}/ext" -type d) ; do |
482 |
- RUBYLIB="${RUBYLIB}:$d" |
483 |
- done |
484 |
- export LD_LIBRARY_PATH RUBYLIB |
485 |
- |
486 |
- emake V=1 DESTDIR="${D}" install || die "make install failed" |
487 |
- |
488 |
- # Remove installed rubygems and rdoc copy |
489 |
- rm -rf "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
490 |
- rm -rf "${D}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed" |
491 |
- rm -rf "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
492 |
- rm -rf "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
493 |
- |
494 |
- if use doc; then |
495 |
- make DESTDIR="${D}" install-doc || die "make install-doc failed" |
496 |
- fi |
497 |
- |
498 |
- if use examples; then |
499 |
- insinto /usr/share/doc/${PF} |
500 |
- doins -r sample |
501 |
- fi |
502 |
- |
503 |
- dodoc ChangeLog NEWS doc/NEWS* README* || die |
504 |
- |
505 |
- if use rubytests; then |
506 |
- pushd test |
507 |
- insinto /usr/share/${PN}-${SLOT}/test |
508 |
- doins -r . |
509 |
- popd |
510 |
- fi |
511 |
-} |
512 |
- |
513 |
-pkg_postinst() { |
514 |
- if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
515 |
- eselect ruby set ruby${MY_SUFFIX} |
516 |
- fi |
517 |
- |
518 |
- elog |
519 |
- elog "To switch between available Ruby profiles, execute as root:" |
520 |
- elog "\teselect ruby set ruby(19|20|...)" |
521 |
- elog |
522 |
-} |
523 |
- |
524 |
-pkg_postrm() { |
525 |
- eselect ruby cleanup |
526 |
-} |
527 |
|
528 |
diff --git a/dev-lang/ruby/ruby-2.4.1.ebuild b/dev-lang/ruby/ruby-2.4.1.ebuild |
529 |
deleted file mode 100644 |
530 |
index 1f1300c8139..00000000000 |
531 |
--- a/dev-lang/ruby/ruby-2.4.1.ebuild |
532 |
+++ /dev/null |
533 |
@@ -1,240 +0,0 @@ |
534 |
-# Copyright 1999-2017 Gentoo Foundation |
535 |
-# Distributed under the terms of the GNU General Public License v2 |
536 |
- |
537 |
-EAPI=6 |
538 |
- |
539 |
-#PATCHSET=1 |
540 |
- |
541 |
-inherit autotools eutils flag-o-matic multilib versionator |
542 |
- |
543 |
-MY_P="${PN}-$(get_version_component_range 1-3)" |
544 |
-S=${WORKDIR}/${MY_P} |
545 |
- |
546 |
-SLOT=$(get_version_component_range 1-2) |
547 |
-MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
548 |
-RUBYVERSION=${SLOT}.0 |
549 |
- |
550 |
-if [[ -n ${PATCHSET} ]]; then |
551 |
- if [[ ${PVR} == ${PV} ]]; then |
552 |
- PATCHSET="${PV}-r0.${PATCHSET}" |
553 |
- else |
554 |
- PATCHSET="${PVR}.${PATCHSET}" |
555 |
- fi |
556 |
-else |
557 |
- PATCHSET="${PVR}" |
558 |
-fi |
559 |
- |
560 |
-DESCRIPTION="An object-oriented scripting language" |
561 |
-HOMEPAGE="http://www.ruby-lang.org/" |
562 |
-SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz |
563 |
- https://dev.gentoo.org/~graaff/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
564 |
- |
565 |
-LICENSE="|| ( Ruby-BSD BSD-2 )" |
566 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
567 |
-IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 ssl tk xemacs" |
568 |
- |
569 |
-RDEPEND=" |
570 |
- berkdb? ( sys-libs/db:= ) |
571 |
- gdbm? ( sys-libs/gdbm ) |
572 |
- jemalloc? ( dev-libs/jemalloc ) |
573 |
- ssl? ( |
574 |
- !libressl? ( dev-libs/openssl:0= ) |
575 |
- libressl? ( dev-libs/libressl ) |
576 |
- ) |
577 |
- socks5? ( >=net-proxy/dante-1.1.13 ) |
578 |
- tk? ( |
579 |
- dev-lang/tcl:0=[threads] |
580 |
- dev-lang/tk:0=[threads] |
581 |
- ) |
582 |
- dev-libs/libyaml |
583 |
- virtual/libffi |
584 |
- sys-libs/zlib |
585 |
- >=app-eselect/eselect-ruby-20161226 |
586 |
- !<dev-ruby/rdoc-3.9.4 |
587 |
- !<dev-ruby/rubygems-1.8.10-r1" |
588 |
- |
589 |
-DEPEND="${RDEPEND}" |
590 |
- |
591 |
-BUNDLED_GEMS=" |
592 |
- >=dev-ruby/did_you_mean-1.1.0:2.4[ruby_targets_ruby24] |
593 |
- >=dev-ruby/minitest-5.10.1[ruby_targets_ruby24] |
594 |
- >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby24] |
595 |
- >=dev-ruby/power_assert-0.4.1[ruby_targets_ruby24] |
596 |
- >=dev-ruby/rake-12.0.0[ruby_targets_ruby24] |
597 |
- >=dev-ruby/test-unit-3.2.3[ruby_targets_ruby24] |
598 |
- >=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24] |
599 |
-" |
600 |
- |
601 |
-PDEPEND=" |
602 |
- ${BUNDLED_GEMS} |
603 |
- virtual/rubygems[ruby_targets_ruby24] |
604 |
- >=dev-ruby/json-2.0.2[ruby_targets_ruby24] |
605 |
- rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby24] ) |
606 |
- xemacs? ( app-xemacs/ruby-modes )" |
607 |
- |
608 |
-src_prepare() { |
609 |
- EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
610 |
- epatch "${WORKDIR}/patches" |
611 |
- |
612 |
- einfo "Unbundling gems..." |
613 |
- cd "$S" |
614 |
- # Remove bundled gems that we will install via PDEPEND, bug |
615 |
- # 539700. Use explicit version numbers to ensure rm fails when they |
616 |
- # change so we can update dependencies accordingly. |
617 |
- rm -f gems/{did_you_mean-1.1.0,minitest-5.10.1,net-telnet-0.1.1,power_assert-0.4.1,rake-12.0.0,test-unit-3.2.3,xmlrpc-0.2.1}.gem || die |
618 |
- |
619 |
- einfo "Removing bundled libraries..." |
620 |
- rm -fr ext/fiddle/libffi-3.2.1 || die |
621 |
- |
622 |
- # Fix a hardcoded lib path in configure script |
623 |
- sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
624 |
- configure.in || die "sed failed" |
625 |
- |
626 |
- eapply_user |
627 |
- |
628 |
- eautoreconf |
629 |
-} |
630 |
- |
631 |
-src_configure() { |
632 |
- local modules= myconf= |
633 |
- |
634 |
- # -fomit-frame-pointer makes ruby segfault, see bug #150413. |
635 |
- filter-flags -fomit-frame-pointer |
636 |
- # In many places aliasing rules are broken; play it safe |
637 |
- # as it's risky with newer compilers to leave it as it is. |
638 |
- append-flags -fno-strict-aliasing |
639 |
- # SuperH needs this |
640 |
- use sh && append-flags -mieee |
641 |
- |
642 |
- # Socks support via dante |
643 |
- if use socks5 ; then |
644 |
- # Socks support can't be disabled as long as SOCKS_SERVER is |
645 |
- # set and socks library is present, so need to unset |
646 |
- # SOCKS_SERVER in that case. |
647 |
- unset SOCKS_SERVER |
648 |
- fi |
649 |
- |
650 |
- # Increase GC_MALLOC_LIMIT if set (default is 8000000) |
651 |
- if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
652 |
- append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
653 |
- fi |
654 |
- |
655 |
- # ipv6 hack, bug 168939. Needs --enable-ipv6. |
656 |
- use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
657 |
- |
658 |
- # Determine which modules *not* to build depending in the USE flags. |
659 |
- if ! use berkdb ; then |
660 |
- modules="${modules},dbm" |
661 |
- fi |
662 |
- if ! use gdbm ; then |
663 |
- modules="${modules},gdbm" |
664 |
- fi |
665 |
- if ! use ssl ; then |
666 |
- modules="${modules},openssl" |
667 |
- fi |
668 |
- if ! use tk ; then |
669 |
- modules="${modules},tk" |
670 |
- fi |
671 |
- |
672 |
- # Provide an empty LIBPATHENV because we disable rpath but we do not |
673 |
- # need LD_LIBRARY_PATH by default since that breaks USE=multitarget |
674 |
- # #564272 |
675 |
- INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \ |
676 |
- --program-suffix=${MY_SUFFIX} \ |
677 |
- --with-soname=ruby${MY_SUFFIX} \ |
678 |
- --docdir=${EPREFIX}/usr/share/doc/${P} \ |
679 |
- --enable-shared \ |
680 |
- --enable-pthread \ |
681 |
- --disable-rpath \ |
682 |
- --with-out-ext="${modules}" \ |
683 |
- $(use_enable jemalloc jemalloc) \ |
684 |
- $(use_enable socks5 socks) \ |
685 |
- $(use_enable doc install-doc) \ |
686 |
- --enable-ipv6 \ |
687 |
- $(use_enable debug) \ |
688 |
- ${myconf} \ |
689 |
- --enable-option-checking=no \ |
690 |
- || die "econf failed" |
691 |
-} |
692 |
- |
693 |
-src_compile() { |
694 |
- emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
695 |
-} |
696 |
- |
697 |
-src_test() { |
698 |
- emake -j1 V=1 test || die "make test failed" |
699 |
- |
700 |
- elog "Ruby's make test has been run. Ruby also ships with a make check" |
701 |
- elog "that cannot be run until after ruby has been installed." |
702 |
- elog |
703 |
- if use rubytests; then |
704 |
- elog "You have enabled rubytests, so they will be installed to" |
705 |
- elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
706 |
- elog "than root, and you must place them into a writeable directory." |
707 |
- elog "Then call: " |
708 |
- elog |
709 |
- elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
710 |
- else |
711 |
- elog "Enable the rubytests USE flag to install the make check tests" |
712 |
- fi |
713 |
-} |
714 |
- |
715 |
-src_install() { |
716 |
- # Remove the remaining bundled gems. We do this late in the process |
717 |
- # since they are used during the build to e.g. create the |
718 |
- # documentation. |
719 |
- rm -rf ext/json || die |
720 |
- |
721 |
- # Ruby is involved in the install process, we don't want interference here. |
722 |
- unset RUBYOPT |
723 |
- |
724 |
- local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
725 |
- |
726 |
- LD_LIBRARY_PATH="${S}:${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
727 |
- RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
728 |
- for d in $(find "${S}/ext" -type d) ; do |
729 |
- RUBYLIB="${RUBYLIB}:$d" |
730 |
- done |
731 |
- export LD_LIBRARY_PATH RUBYLIB |
732 |
- |
733 |
- emake V=1 DESTDIR="${D}" install || die "make install failed" |
734 |
- |
735 |
- # Remove installed rubygems and rdoc copy |
736 |
- rm -rf "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
737 |
- rm -rf "${D}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed" |
738 |
- rm -rf "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
739 |
- rm -rf "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
740 |
- |
741 |
- if use doc; then |
742 |
- make DESTDIR="${D}" install-doc || die "make install-doc failed" |
743 |
- fi |
744 |
- |
745 |
- if use examples; then |
746 |
- insinto /usr/share/doc/${PF} |
747 |
- doins -r sample |
748 |
- fi |
749 |
- |
750 |
- dodoc ChangeLog NEWS doc/NEWS* README* || die |
751 |
- |
752 |
- if use rubytests; then |
753 |
- pushd test |
754 |
- insinto /usr/share/${PN}-${SLOT}/test |
755 |
- doins -r . |
756 |
- popd |
757 |
- fi |
758 |
-} |
759 |
- |
760 |
-pkg_postinst() { |
761 |
- if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
762 |
- eselect ruby set ruby${MY_SUFFIX} |
763 |
- fi |
764 |
- |
765 |
- elog |
766 |
- elog "To switch between available Ruby profiles, execute as root:" |
767 |
- elog "\teselect ruby set ruby(19|20|...)" |
768 |
- elog |
769 |
-} |
770 |
- |
771 |
-pkg_postrm() { |
772 |
- eselect ruby cleanup |
773 |
-} |