Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: dev-lang/ruby/, dev-lang/ruby/files/2.7/
Date: Sat, 30 May 2020 16:11:24
Message-Id: 1590855055.55220359aece30b756e16faa2d5d1a42139ce008.grobian@gentoo
1 commit: 55220359aece30b756e16faa2d5d1a42139ce008
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 30 16:10:55 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sat May 30 16:10:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=55220359
7
8 dev-lang/ruby: sync with gx86
9
10 Package-Manager: Portage-2.3.84-prefix, Repoman-2.3.22
11 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
12
13 dev-lang/ruby/Manifest | 12 +-
14 .../ruby/files/2.7/010-default-gem-location.patch | 20 ++
15 dev-lang/ruby/metadata.xml | 17 +-
16 .../ruby/{ruby-2.4.7.ebuild => ruby-2.4.10.ebuild} | 22 +-
17 dev-lang/ruby/ruby-2.4.3.ebuild | 252 ---------------------
18 dev-lang/ruby/ruby-2.4.6.ebuild | 246 --------------------
19 dev-lang/ruby/ruby-2.5.5.ebuild | 238 -------------------
20 .../{ruby-2.5.6.ebuild => ruby-2.5.8-r1.ebuild} | 26 +--
21 .../{ruby-2.6.4.ebuild => ruby-2.6.6-r2.ebuild} | 30 ++-
22 .../{ruby-2.6.3.ebuild => ruby-2.7.1-r2.ebuild} | 59 ++---
23 10 files changed, 98 insertions(+), 824 deletions(-)
24
25 diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest
26 index 803823ab90..8c1b5866ae 100644
27 --- a/dev-lang/ruby/Manifest
28 +++ b/dev-lang/ruby/Manifest
29 @@ -1,8 +1,4 @@
30 -DIST ruby-2.4.3.tar.xz 10040072 BLAKE2B 87ad9700312a104a60b079f4ef95804d2a9e01109e9fef6e83e593464f1d2c5077af54cbbaff6e0d25a925d05f513cade6c76f05960d9bcc1817bdee51ad4a0f SHA512 8bcf60c994a96787da5d743c66f5609a5a6d834d6d61243cdea7fd059197c3b10da43c99e5649be85e2f2329eedcbb1dd76e89ce3ac586be9056348f7449ed09
31 -DIST ruby-2.4.6.tar.xz 10005544 BLAKE2B 2af984d96dad4d7ef4d467b317bd4bb54b0614d96619377bc46f7588cd1c72bee47202b61d6ec54f00113fd25672d2831221dbf0a4491aa271541a34c634ee84 SHA512 eafb2257747f99e2ed262af142e71175b70f7cceaa4d1253b92c8337f075a9a58a2d93b029d75e11a9b124f112a8f0983273b2b30afc147b5cf71a8dbb5fa0ba
32 -DIST ruby-2.4.7.tar.xz 10118948 BLAKE2B e85e051e9dbac8e7f87bd6187dc105b89a6bc7197c811bd51bf25b109781b8ec79c02e48887cbac841d38922d278da4ee32d8cf14e180083f4a902d77c4ec2dc SHA512 df637c5803ddd83f759e9c24b0e7ca1f6cae7c7b353409583d92dbffece0d9d02b48905d6552327a1522a4a37d4e2d22c6c11bd991383835be35e2f31739d649
33 -DIST ruby-2.5.5.tar.xz 11459832 BLAKE2B ced1105a87e7df8f82a65ca8d1d329d5a9d110d2f3f88b27a79262c4ac1484dda16d8646c0c03f18c1bb25f8b154075eb03a0614355ec62f677c2fa56ab3c956 SHA512 06b1d58536ebfacb7b56c1e6ed4b8ab816fadc4f48c845a452554cd262e7908199a30e5793f3cbaec2db56a8803aa5c6089abf7bf06c8fc47867e97870b7dfec
34 -DIST ruby-2.5.6.tar.xz 11323612 BLAKE2B 5db6d573089a9fba95a1027891a0116c14d495b342ca8f055bd1ad55942f2a15a65a61cc1a0f6f249cd10fe2f6161f3ab0066a6dbce8e480e55b76ca5bdb5cd9 SHA512 4fe5f8bad5d320f8f17b02ce15afee341e7b0074efcfd98d8944e0cb7c448e0660c4553dd5c0328ee3b49fea3247642f85c60bdce431ed57f58b6326dfd48ee1
35 -DIST ruby-2.6.3.tar.xz 11904360 BLAKE2B 8113e5a19b967cdf995a3c8d3c83aeab3bf89e975d3b039c64259e97f20dbe9ebd96ada093f9d330516d16ef78bb0ecbbac8f3facd467aa13f1f70b23b992f82 SHA512 959a613f5cf5b3185a1d7a7ba0e1921166b3930f30461b391b1c9fcfe396f56dc3c736123dfc7b4e72c32a97dc5a1eb1fd7f09bcc3793a3c5526f6644ba421c8
36 -DIST ruby-2.6.4.tar.xz 11727940 BLAKE2B abeff89d50612d6426e1dc5fd7c15c83ef9714ddb38c64ed14bff6331c619b0a55d4a64bff49177576c3fae8cfcee30127e808f49d11b3e64a2230a043e16bd3 SHA512 930a4162fdb008d2446247908c14269fd13db4dc80bd2bb201a65a69c03f5933f97b4c5079ccd2a12db4934ff97b2debaa10a6c6f5c3060e55873f4397747eaa
37 -DIST ruby-patches-2.4.3.tar.bz2 2898 BLAKE2B e46502dbb0aa25c3d71693a6c04b433bd4de60f194cdd283517c4b08da190356885d9bca4a6765402088185fa8ec681156e8e8eecf0703a2c1ea7bb81adc0bf9 SHA512 d767d43c7df737469247e42e1c4205b8c6850c8f335a2869c884f145c037e9bab10492cc7cd2903f5c33e232cdc5bbdabb3e8da837c7bf420b9d58d1d33149ed
38 +DIST ruby-2.4.10.tar.xz 10100664 BLAKE2B 7301f34b94bb6d88c0d049eed4220ddb290c877b130e90c822226bc454b3e72c90ae151db0e828068c8fe02b21cd41c8f3cd43d4e95ab688d2cd6f3f3840ea9d SHA512 11c7a9ea1353f752763b189815ac34674cc8ebf7141517838b7f040823e892780d94ec3091c1f5d1415f9bc1b838b7f6f9de13a706df7bef80ce3b146a7d6660
39 +DIST ruby-2.5.8.tar.xz 11298404 BLAKE2B 3256c0448e72b63c0bd89f89a27fa9c09c8feed54d42cd79899b7d5cfe9dbc29ca708d12c630b3f52ff85b0c6a4011ae7ff0483d64b2fd445700a72a91028035 SHA512 2886be764a454425c5beef2777c64a70ee0d048b07896b327633d904f5077fea4299526689f9e2ac4dcd2fc4811cf9a6c8ce75367ed35d29dfe1a54222872e0d
40 +DIST ruby-2.6.6.tar.xz 11567284 BLAKE2B 45e910dd9b128c46bff3003834c4fdcbbc2e2e4d3e44f298ff4356a285de2c375d6b6021a3aa28d89336b32a1655fa4a7c086d07f4a0f6bcd578a11dd4a894da SHA512 86caf93dbf61d03781767ab5375a7edf4761f13ba08ccfefe16c0a7550499237e7390c2f72a95d42670d4fe76b2401b4218936187c62ec1572799e9e04c50d62
41 +DIST ruby-2.7.1.tar.xz 12003684 BLAKE2B 90a35c3e246cfe982a146be29a3d121d6e2c251ed96703dbc46b98c21e0e43e5445132e6119e584ae35f7193f063ff1b14822f947a4e07037c37fbba5e4038da SHA512 79f98b1ea98e0b10ec79da1883e8fc84d48ffe5c09ae945cbebde94365e35a589d919aac965f74d70ca7e21370ecee631ac5a8f9c4eac61d62f5aa629f27bf31
42
43 diff --git a/dev-lang/ruby/files/2.7/010-default-gem-location.patch b/dev-lang/ruby/files/2.7/010-default-gem-location.patch
44 new file mode 100644
45 index 0000000000..7a50c35ff6
46 --- /dev/null
47 +++ b/dev-lang/ruby/files/2.7/010-default-gem-location.patch
48 @@ -0,0 +1,20 @@
49 +--- a/tool/rbinstall.rb.~1~ 2019-01-24 02:00:07.000000000 +0100
50 ++++ b/tool/rbinstall.rb 2019-02-03 08:39:49.778007118 +0100
51 +@@ -806,7 +806,7 @@
52 + end
53 +
54 + def install_default_gem(dir, srcdir)
55 +- gem_dir = Gem.default_dir
56 ++ gem_dir = ENV['GEM_DESTDIR']
57 + directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
58 + prepare "default gems from #{dir}", gem_dir, directories
59 +
60 +@@ -844,7 +844,7 @@
61 + end
62 +
63 + install?(:ext, :comm, :gem, :'bundled-gems') do
64 +- gem_dir = Gem.default_dir
65 ++ gem_dir = ENV['GEM_DESTDIR']
66 + directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
67 + prepare "bundled gems", gem_dir, directories
68 + install_dir = with_destdir(gem_dir)
69
70 diff --git a/dev-lang/ruby/metadata.xml b/dev-lang/ruby/metadata.xml
71 index ad18c95606..3a5415201c 100644
72 --- a/dev-lang/ruby/metadata.xml
73 +++ b/dev-lang/ruby/metadata.xml
74 @@ -1,12 +1,13 @@
75 <?xml version="1.0" encoding="UTF-8"?>
76 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
77 <pkgmetadata>
78 - <maintainer type="project">
79 - <email>ruby@g.o</email>
80 - <name>Gentoo Ruby Project</name>
81 - </maintainer>
82 - <use>
83 - <flag name="rubytests">Install ruby tests that can only be run after ruby is installed</flag>
84 - <flag name="rdoc">Install <pkg>dev-ruby/rdoc</pkg> after installing Ruby.</flag>
85 - </use>
86 + <maintainer type="project">
87 + <email>ruby@g.o</email>
88 + <name>Gentoo Ruby Project</name>
89 + </maintainer>
90 + <use>
91 + <flag name="rubytests">Install ruby tests that can only be run after ruby is installed</flag>
92 + <flag name="rdoc">Install <pkg>dev-ruby/rdoc</pkg> after installing Ruby.</flag>
93 + <flag name="systemtap">Enable SystemTAP/DTrace tracing</flag>
94 + </use>
95 </pkgmetadata>
96
97 diff --git a/dev-lang/ruby/ruby-2.4.7.ebuild b/dev-lang/ruby/ruby-2.4.10.ebuild
98 similarity index 93%
99 rename from dev-lang/ruby/ruby-2.4.7.ebuild
100 rename to dev-lang/ruby/ruby-2.4.10.ebuild
101 index 3851c75066..ff56701602 100644
102 --- a/dev-lang/ruby/ruby-2.4.7.ebuild
103 +++ b/dev-lang/ruby/ruby-2.4.10.ebuild
104 @@ -1,4 +1,4 @@
105 -# Copyright 1999-2019 Gentoo Authors
106 +# Copyright 1999-2020 Gentoo Authors
107 # Distributed under the terms of the GNU General Public License v2
108
109 EAPI=7
110 @@ -14,7 +14,7 @@ RUBYVERSION=${SLOT}.0
111
112 DESCRIPTION="An object-oriented scripting language"
113 HOMEPAGE="https://www.ruby-lang.org/"
114 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
115 +SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
116
117 LICENSE="|| ( Ruby-BSD BSD-2 )"
118 KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
119 @@ -34,7 +34,7 @@ RDEPEND="
120 dev-lang/tk:0=[threads]
121 )
122 dev-libs/libyaml
123 - virtual/libffi:=
124 + dev-libs/libffi:=
125 sys-libs/readline:0=
126 sys-libs/zlib
127 >=app-eselect/eselect-ruby-20161226
128 @@ -103,8 +103,6 @@ src_configure() {
129 # In many places aliasing rules are broken; play it safe
130 # as it's risky with newer compilers to leave it as it is.
131 append-flags -fno-strict-aliasing
132 - # SuperH needs this
133 - use sh && append-flags -mieee
134
135 # Socks support via dante
136 if use socks5 ; then
137 @@ -158,16 +156,15 @@ src_configure() {
138 $(use_enable debug) \
139 ${myconf} \
140 --with-readline-dir="${EPREFIX}"/usr \
141 - --enable-option-checking=no \
142 - || die "econf failed"
143 + --enable-option-checking=no
144 }
145
146 src_compile() {
147 - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
148 + emake V=1 EXTLDFLAGS="${LDFLAGS}"
149 }
150
151 src_test() {
152 - emake -j1 V=1 test || die "make test failed"
153 + emake -j1 V=1 test
154
155 elog "Ruby's make test has been run. Ruby also ships with a make check"
156 elog "that cannot be run until after ruby has been installed."
157 @@ -203,7 +200,7 @@ src_install() {
158 done
159 export LD_LIBRARY_PATH DYLD_LIBRARY_PATH RUBYLIB
160
161 - emake V=1 DESTDIR="${D}" install || die "make install failed"
162 + emake V=1 DESTDIR="${D}" install
163
164 # Remove installed rubygems and rdoc copy
165 rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
166 @@ -216,11 +213,10 @@ src_install() {
167 fi
168
169 if use examples; then
170 - insinto /usr/share/doc/${PF}
171 - doins -r sample
172 + dodoc -r sample
173 fi
174
175 - dodoc ChangeLog NEWS doc/NEWS* README* || die
176 + dodoc ChangeLog NEWS doc/NEWS* README*
177
178 if use rubytests; then
179 pushd test
180
181 diff --git a/dev-lang/ruby/ruby-2.4.3.ebuild b/dev-lang/ruby/ruby-2.4.3.ebuild
182 deleted file mode 100644
183 index 795546bf84..0000000000
184 --- a/dev-lang/ruby/ruby-2.4.3.ebuild
185 +++ /dev/null
186 @@ -1,252 +0,0 @@
187 -# Copyright 1999-2018 Gentoo Foundation
188 -# Distributed under the terms of the GNU General Public License v2
189 -
190 -EAPI=6
191 -
192 -#PATCHSET=1
193 -
194 -inherit autotools eutils flag-o-matic multilib versionator
195 -
196 -MY_P="${PN}-$(get_version_component_range 1-3)"
197 -S=${WORKDIR}/${MY_P}
198 -
199 -SLOT=$(get_version_component_range 1-2)
200 -MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
201 -RUBYVERSION=${SLOT}.0
202 -
203 -if [[ -n ${PATCHSET} ]]; then
204 - if [[ ${PVR} == ${PV} ]]; then
205 - PATCHSET="${PV}-r0.${PATCHSET}"
206 - else
207 - PATCHSET="${PVR}.${PATCHSET}"
208 - fi
209 -else
210 - PATCHSET="${PVR}"
211 -fi
212 -
213 -DESCRIPTION="An object-oriented scripting language"
214 -HOMEPAGE="http://www.ruby-lang.org/"
215 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz
216 - https://dev.gentoo.org/~graaff/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
217 -
218 -LICENSE="|| ( Ruby-BSD BSD-2 )"
219 -KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
220 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 ssl static-libs tk xemacs"
221 -
222 -RDEPEND="
223 - berkdb? ( sys-libs/db:= )
224 - gdbm? ( sys-libs/gdbm:= )
225 - jemalloc? ( dev-libs/jemalloc )
226 - ssl? (
227 - !libressl? ( dev-libs/openssl:0= )
228 - libressl? ( dev-libs/libressl )
229 - )
230 - socks5? ( >=net-proxy/dante-1.1.13 )
231 - tk? (
232 - dev-lang/tcl:0=[threads]
233 - dev-lang/tk:0=[threads]
234 - )
235 - dev-libs/libyaml
236 - virtual/libffi
237 - sys-libs/zlib
238 - >=app-eselect/eselect-ruby-20161226
239 - !<dev-ruby/rdoc-3.9.4
240 - !<dev-ruby/rubygems-1.8.10-r1"
241 -
242 -DEPEND="${RDEPEND}"
243 -
244 -BUNDLED_GEMS="
245 - >=dev-ruby/did_you_mean-1.1.0:2.4[ruby_targets_ruby24]
246 - >=dev-ruby/minitest-5.10.1[ruby_targets_ruby24]
247 - >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby24]
248 - >=dev-ruby/power_assert-0.4.1[ruby_targets_ruby24]
249 - >=dev-ruby/rake-12.0.0[ruby_targets_ruby24]
250 - >=dev-ruby/test-unit-3.2.3[ruby_targets_ruby24]
251 - >=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24]
252 -"
253 -
254 -PDEPEND="
255 - ${BUNDLED_GEMS}
256 - virtual/rubygems[ruby_targets_ruby24]
257 - >=dev-ruby/json-2.0.2[ruby_targets_ruby24]
258 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby24] )
259 - xemacs? ( app-xemacs/ruby-modes )"
260 -
261 -src_prepare() {
262 - epatch "${FILESDIR}/${PN}-1.9.1-prefix.patch"
263 - EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
264 - epatch "${WORKDIR}/patches"
265 -
266 - einfo "Unbundling gems..."
267 - cd "$S"
268 - # Remove bundled gems that we will install via PDEPEND, bug
269 - # 539700. Use explicit version numbers to ensure rm fails when they
270 - # change so we can update dependencies accordingly.
271 - 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
272 -
273 - einfo "Removing bundled libraries..."
274 - rm -fr ext/fiddle/libffi-3.2.1 || die
275 -
276 - # Fix a hardcoded lib path in configure script
277 - sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
278 - configure.in || die "sed failed"
279 - # Fix hardcoded SHELL var in mkmf library
280 - sed -i -e "s#\(SHELL = \).*#\1${EPREFIX}/bin/sh#" lib/mkmf.rb
281 - # avoid symlink loop on Darwin (?!)
282 - sed -i -e '/LIBRUBY_ALIASES=/s/lib$(RUBY_INSTALL_NAME).dylib//' \
283 - configure.in || die "sed failed"
284 -
285 - eapply_user
286 -
287 - eautoreconf
288 -}
289 -
290 -src_configure() {
291 - local modules= myconf=
292 -
293 - # -fomit-frame-pointer makes ruby segfault, see bug #150413.
294 - filter-flags -fomit-frame-pointer
295 - # In many places aliasing rules are broken; play it safe
296 - # as it's risky with newer compilers to leave it as it is.
297 - append-flags -fno-strict-aliasing
298 - # SuperH needs this
299 - use sh && append-flags -mieee
300 -
301 - # Socks support via dante
302 - if use socks5 ; then
303 - # Socks support can't be disabled as long as SOCKS_SERVER is
304 - # set and socks library is present, so need to unset
305 - # SOCKS_SERVER in that case.
306 - unset SOCKS_SERVER
307 - fi
308 -
309 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
310 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
311 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
312 - fi
313 -
314 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
315 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
316 -
317 - # Determine which modules *not* to build depending in the USE flags.
318 - if ! use berkdb ; then
319 - modules="${modules},dbm"
320 - fi
321 - if ! use gdbm ; then
322 - modules="${modules},gdbm"
323 - fi
324 - if ! use ssl ; then
325 - modules="${modules},openssl"
326 - fi
327 - if ! use tk ; then
328 - modules="${modules},tk"
329 - fi
330 -
331 - # Provide an empty LIBPATHENV because we disable rpath but we do not
332 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
333 - # #564272
334 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
335 - --program-suffix=${MY_SUFFIX} \
336 - --with-soname=ruby${MY_SUFFIX} \
337 - --docdir=${EPREFIX}/usr/share/doc/${P} \
338 - --enable-shared \
339 - --enable-pthread \
340 - --disable-rpath \
341 - --disable-dtrace \
342 - --with-out-ext="${modules}" \
343 - $(use_with jemalloc jemalloc) \
344 - $(use_enable socks5 socks) \
345 - $(use_enable doc install-doc) \
346 - --enable-ipv6 \
347 - $(use_enable static-libs static) \
348 - $(use_enable static-libs install-static-library) \
349 - $(use_with static-libs static-linked-ext) \
350 - $(use_enable debug) \
351 - ${myconf} \
352 - --with-readline-dir="${EPREFIX}"/usr \
353 - --enable-option-checking=no \
354 - || die "econf failed"
355 -}
356 -
357 -src_compile() {
358 - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
359 -}
360 -
361 -src_test() {
362 - emake -j1 V=1 test || die "make test failed"
363 -
364 - elog "Ruby's make test has been run. Ruby also ships with a make check"
365 - elog "that cannot be run until after ruby has been installed."
366 - elog
367 - if use rubytests; then
368 - elog "You have enabled rubytests, so they will be installed to"
369 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
370 - elog "than root, and you must place them into a writeable directory."
371 - elog "Then call: "
372 - elog
373 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
374 - else
375 - elog "Enable the rubytests USE flag to install the make check tests"
376 - fi
377 -}
378 -
379 -src_install() {
380 - # Remove the remaining bundled gems. We do this late in the process
381 - # since they are used during the build to e.g. create the
382 - # documentation.
383 - rm -rf ext/json || die
384 -
385 - # Ruby is involved in the install process, we don't want interference here.
386 - unset RUBYOPT
387 -
388 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
389 -
390 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
391 - DYLD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${DYLD_LIBRARY_PATH+:}${DYLD_LIBRARY_PATH}"
392 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
393 - for d in $(find "${S}/ext" -type d) ; do
394 - RUBYLIB="${RUBYLIB}:$d"
395 - done
396 - export LD_LIBRARY_PATH DYLD_LIBRARY_PATH RUBYLIB
397 -
398 - emake V=1 DESTDIR="${D}" install || die "make install failed"
399 -
400 - # Remove installed rubygems and rdoc copy
401 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
402 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
403 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
404 - rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
405 -
406 - if use doc; then
407 - make DESTDIR="${D}" install-doc || die "make install-doc failed"
408 - fi
409 -
410 - if use examples; then
411 - insinto /usr/share/doc/${PF}
412 - doins -r sample
413 - fi
414 -
415 - dodoc ChangeLog NEWS doc/NEWS* README* || die
416 -
417 - if use rubytests; then
418 - pushd test
419 - insinto /usr/share/${PN}-${SLOT}/test
420 - doins -r .
421 - popd
422 - fi
423 -}
424 -
425 -pkg_postinst() {
426 - if [[ ! -n $(readlink "${EROOT}"usr/bin/ruby) ]] ; then
427 - eselect ruby set ruby${MY_SUFFIX}
428 - fi
429 -
430 - elog
431 - elog "To switch between available Ruby profiles, execute as root:"
432 - elog "\teselect ruby set ruby(23|24|...)"
433 - elog
434 -}
435 -
436 -pkg_postrm() {
437 - eselect ruby cleanup
438 -}
439
440 diff --git a/dev-lang/ruby/ruby-2.4.6.ebuild b/dev-lang/ruby/ruby-2.4.6.ebuild
441 deleted file mode 100644
442 index 5ea4db8ec6..0000000000
443 --- a/dev-lang/ruby/ruby-2.4.6.ebuild
444 +++ /dev/null
445 @@ -1,246 +0,0 @@
446 -# Copyright 1999-2019 Gentoo Authors
447 -# Distributed under the terms of the GNU General Public License v2
448 -
449 -EAPI=7
450 -
451 -inherit autotools flag-o-matic multilib
452 -
453 -MY_P="${PN}-$(ver_cut 1-3)"
454 -S=${WORKDIR}/${MY_P}
455 -
456 -SLOT=$(ver_cut 1-2)
457 -MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
458 -RUBYVERSION=${SLOT}.0
459 -
460 -DESCRIPTION="An object-oriented scripting language"
461 -HOMEPAGE="https://www.ruby-lang.org/"
462 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
463 -
464 -LICENSE="|| ( Ruby-BSD BSD-2 )"
465 -KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
466 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
467 -
468 -RDEPEND="
469 - berkdb? ( sys-libs/db:= )
470 - gdbm? ( sys-libs/gdbm:= )
471 - jemalloc? ( dev-libs/jemalloc )
472 - ssl? (
473 - !libressl? ( dev-libs/openssl:0= )
474 - libressl? ( dev-libs/libressl )
475 - )
476 - socks5? ( >=net-proxy/dante-1.1.13 )
477 - tk? (
478 - dev-lang/tcl:0=[threads]
479 - dev-lang/tk:0=[threads]
480 - )
481 - dev-libs/libyaml
482 - virtual/libffi:=
483 - sys-libs/readline:0=
484 - sys-libs/zlib
485 - >=app-eselect/eselect-ruby-20161226
486 - !<dev-ruby/rdoc-3.9.4
487 - !<dev-ruby/rubygems-1.8.10-r1"
488 -
489 -DEPEND="${RDEPEND}"
490 -
491 -BUNDLED_GEMS="
492 - >=dev-ruby/did_you_mean-1.1.0:2.4[ruby_targets_ruby24]
493 - >=dev-ruby/minitest-5.10.1[ruby_targets_ruby24]
494 - >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby24]
495 - >=dev-ruby/power_assert-0.4.1[ruby_targets_ruby24]
496 - >=dev-ruby/rake-12.0.0[ruby_targets_ruby24]
497 - >=dev-ruby/test-unit-3.2.3[ruby_targets_ruby24]
498 - >=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24]
499 -"
500 -
501 -PDEPEND="
502 - ${BUNDLED_GEMS}
503 - virtual/rubygems[ruby_targets_ruby24]
504 - >=dev-ruby/json-2.0.2[ruby_targets_ruby24]
505 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby24] )
506 - xemacs? ( app-xemacs/ruby-modes )"
507 -
508 -src_prepare() {
509 - eapply "${FILESDIR}/${PN}-1.9.1-prefix.patch"
510 - eapply "${FILESDIR}"/${SLOT}/{002,005,009,012}*.patch
511 -
512 - einfo "Unbundling gems..."
513 - cd "$S"
514 - # Remove bundled gems that we will install via PDEPEND, bug
515 - # 539700. Use explicit version numbers to ensure rm fails when they
516 - # change so we can update dependencies accordingly.
517 - 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
518 -
519 - einfo "Removing bundled libraries..."
520 - rm -fr ext/fiddle/libffi-3.2.1 || die
521 -
522 - # Fix a hardcoded lib path in configure script
523 - sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
524 - configure.in || die "sed failed"
525 - # Fix hardcoded SHELL var in mkmf library
526 - sed -i -e "s#\(SHELL = \).*#\1${EPREFIX}/bin/sh#" lib/mkmf.rb || die
527 - # avoid symlink loop on Darwin (?!)
528 - sed -i -e '/LIBRUBY_ALIASES=/s/lib$(RUBY_INSTALL_NAME).dylib//' \
529 - configure.in || die
530 - # make ar/libtool hack for Darwin work
531 - sed -i \
532 - -e "s/ac_cv_prog_ac_ct_AR='libtool/ac_cv_prog_AR='${CHOST}-libtool/" \
533 - configure.in || die
534 - # Fix using installed ruby
535 - sed -i -e '/^libs << File.expand_path("lib", srcdir)/s/^/#/' \
536 - tool/runruby.rb || die
537 -
538 - eapply_user
539 -
540 - eautoreconf
541 -}
542 -
543 -src_configure() {
544 - local modules= myconf=
545 -
546 - # -fomit-frame-pointer makes ruby segfault, see bug #150413.
547 - filter-flags -fomit-frame-pointer
548 - # In many places aliasing rules are broken; play it safe
549 - # as it's risky with newer compilers to leave it as it is.
550 - append-flags -fno-strict-aliasing
551 - # SuperH needs this
552 - use sh && append-flags -mieee
553 -
554 - # Socks support via dante
555 - if use socks5 ; then
556 - # Socks support can't be disabled as long as SOCKS_SERVER is
557 - # set and socks library is present, so need to unset
558 - # SOCKS_SERVER in that case.
559 - unset SOCKS_SERVER
560 - fi
561 -
562 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
563 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
564 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
565 - fi
566 -
567 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
568 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
569 -
570 - # Determine which modules *not* to build depending in the USE flags.
571 - if ! use berkdb ; then
572 - modules="${modules},dbm"
573 - fi
574 - if ! use gdbm ; then
575 - modules="${modules},gdbm"
576 - fi
577 - if ! use ssl ; then
578 - modules="${modules},openssl"
579 - fi
580 - if ! use tk ; then
581 - modules="${modules},tk"
582 - fi
583 -
584 - # Provide an empty LIBPATHENV because we disable rpath but we do not
585 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
586 - # #564272
587 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
588 - --program-suffix=${MY_SUFFIX} \
589 - --with-soname=ruby${MY_SUFFIX} \
590 - --docdir=${EPREFIX}/usr/share/doc/${P} \
591 - --enable-shared \
592 - --enable-pthread \
593 - --disable-rpath \
594 - --disable-dtrace \
595 - --with-out-ext="${modules}" \
596 - $(use_with jemalloc jemalloc) \
597 - $(use_enable socks5 socks) \
598 - $(use_enable doc install-doc) \
599 - --enable-ipv6 \
600 - $(use_enable static-libs static) \
601 - $(use_enable static-libs install-static-library) \
602 - $(use_with static-libs static-linked-ext) \
603 - $(use_enable debug) \
604 - ${myconf} \
605 - --with-readline-dir="${EPREFIX}"/usr \
606 - --enable-option-checking=no \
607 - || die "econf failed"
608 -}
609 -
610 -src_compile() {
611 - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
612 -}
613 -
614 -src_test() {
615 - emake -j1 V=1 test || die "make test failed"
616 -
617 - elog "Ruby's make test has been run. Ruby also ships with a make check"
618 - elog "that cannot be run until after ruby has been installed."
619 - elog
620 - if use rubytests; then
621 - elog "You have enabled rubytests, so they will be installed to"
622 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
623 - elog "than root, and you must place them into a writeable directory."
624 - elog "Then call: "
625 - elog
626 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
627 - else
628 - elog "Enable the rubytests USE flag to install the make check tests"
629 - fi
630 -}
631 -
632 -src_install() {
633 - # Remove the remaining bundled gems. We do this late in the process
634 - # since they are used during the build to e.g. create the
635 - # documentation.
636 - rm -rf ext/json || die
637 -
638 - # Ruby is involved in the install process, we don't want interference here.
639 - unset RUBYOPT
640 -
641 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
642 -
643 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
644 - DYLD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${DYLD_LIBRARY_PATH+:}${DYLD_LIBRARY_PATH}"
645 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
646 - for d in $(find "${S}/ext" -type d) ; do
647 - RUBYLIB="${RUBYLIB}:$d"
648 - done
649 - export LD_LIBRARY_PATH DYLD_LIBRARY_PATH RUBYLIB
650 -
651 - emake V=1 DESTDIR="${D}" install || die "make install failed"
652 -
653 - # Remove installed rubygems and rdoc copy
654 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
655 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
656 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
657 - rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
658 -
659 - if use doc; then
660 - make DESTDIR="${D}" install-doc || die "make install-doc failed"
661 - fi
662 -
663 - if use examples; then
664 - insinto /usr/share/doc/${PF}
665 - doins -r sample
666 - fi
667 -
668 - dodoc ChangeLog NEWS doc/NEWS* README* || die
669 -
670 - if use rubytests; then
671 - pushd test
672 - insinto /usr/share/${PN}-${SLOT}/test
673 - doins -r .
674 - popd
675 - fi
676 -}
677 -
678 -pkg_postinst() {
679 - if [[ ! -n $(readlink "${EROOT}"usr/bin/ruby) ]] ; then
680 - eselect ruby set ruby${MY_SUFFIX}
681 - fi
682 -
683 - elog
684 - elog "To switch between available Ruby profiles, execute as root:"
685 - elog "\teselect ruby set ruby(23|24|...)"
686 - elog
687 -}
688 -
689 -pkg_postrm() {
690 - eselect ruby cleanup
691 -}
692
693 diff --git a/dev-lang/ruby/ruby-2.5.5.ebuild b/dev-lang/ruby/ruby-2.5.5.ebuild
694 deleted file mode 100644
695 index 177b65de97..0000000000
696 --- a/dev-lang/ruby/ruby-2.5.5.ebuild
697 +++ /dev/null
698 @@ -1,238 +0,0 @@
699 -# Copyright 1999-2019 Gentoo Authors
700 -# Distributed under the terms of the GNU General Public License v2
701 -
702 -EAPI=7
703 -
704 -inherit autotools flag-o-matic multilib
705 -
706 -MY_P="${PN}-$(ver_cut 1-3)"
707 -S=${WORKDIR}/${MY_P}
708 -
709 -SLOT=$(ver_cut 1-2)
710 -MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
711 -RUBYVERSION=${SLOT}.0
712 -
713 -DESCRIPTION="An object-oriented scripting language"
714 -HOMEPAGE="https://www.ruby-lang.org/"
715 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
716 -
717 -LICENSE="|| ( Ruby-BSD BSD-2 )"
718 -KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
719 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
720 -
721 -RDEPEND="
722 - berkdb? ( sys-libs/db:= )
723 - gdbm? ( sys-libs/gdbm:= )
724 - jemalloc? ( dev-libs/jemalloc )
725 - ssl? (
726 - !libressl? ( dev-libs/openssl:0= )
727 - libressl? ( dev-libs/libressl )
728 - )
729 - socks5? ( >=net-proxy/dante-1.1.13 )
730 - tk? (
731 - dev-lang/tcl:0=[threads]
732 - dev-lang/tk:0=[threads]
733 - )
734 - dev-libs/libyaml
735 - virtual/libffi:=
736 - sys-libs/readline:0=
737 - sys-libs/zlib
738 - >=app-eselect/eselect-ruby-20171225
739 -"
740 -
741 -DEPEND="${RDEPEND}"
742 -
743 -BUNDLED_GEMS="
744 - >=dev-ruby/did_you_mean-1.2.0:2.5[ruby_targets_ruby25]
745 - >=dev-ruby/minitest-5.10.3[ruby_targets_ruby25]
746 - >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby25]
747 - >=dev-ruby/power_assert-1.1.1[ruby_targets_ruby25]
748 - >=dev-ruby/rake-12.3.0[ruby_targets_ruby25]
749 - >=dev-ruby/test-unit-3.2.7[ruby_targets_ruby25]
750 - >=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby25]
751 -"
752 -
753 -PDEPEND="
754 - ${BUNDLED_GEMS}
755 - virtual/rubygems[ruby_targets_ruby25]
756 - >=dev-ruby/json-2.0.2[ruby_targets_ruby25]
757 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby25] )
758 - xemacs? ( app-xemacs/ruby-modes )"
759 -
760 -src_prepare() {
761 - eapply "${FILESDIR}"/${SLOT}/{001,005,011}*.patch
762 -
763 - einfo "Unbundling gems..."
764 - cd "$S"
765 - # Remove bundled gems that we will install via PDEPEND, bug
766 - # 539700. Use explicit version numbers to ensure rm fails when they
767 - # change so we can update dependencies accordingly.
768 - rm -f gems/{did_you_mean-1.2.0,minitest-5.10.3,net-telnet-0.1.1,power_assert-1.1.1,rake-12.3.0,test-unit-3.2.7,xmlrpc-0.3.0}.gem || die
769 -
770 - einfo "Removing bundled libraries..."
771 - rm -fr ext/fiddle/libffi-3.2.1 || die
772 -
773 - # Fix hardcoded SHELL var in mkmf library
774 - sed -i -e "s#\(SHELL = \).*#\1${EPREFIX}/bin/sh#" lib/mkmf.rb || die
775 - # avoid symlink loop on Darwin (?!)
776 - sed -i -e '/LIBRUBY_ALIASES=/s/lib$(RUBY_INSTALL_NAME).$(SOEXT)//' \
777 - configure.ac || die
778 - # make ar/libtool hack for Darwin work
779 - sed -i \
780 - -e "s/ac_cv_prog_ac_ct_AR='libtool/ac_cv_prog_AR='${CHOST}-libtool/" \
781 - configure.ac || die
782 -
783 - eapply_user
784 -
785 - eautoreconf
786 -}
787 -
788 -src_configure() {
789 - local modules= myconf=
790 -
791 - # -fomit-frame-pointer makes ruby segfault, see bug #150413.
792 - filter-flags -fomit-frame-pointer
793 - # In many places aliasing rules are broken; play it safe
794 - # as it's risky with newer compilers to leave it as it is.
795 - append-flags -fno-strict-aliasing
796 - # SuperH needs this
797 - use sh && append-flags -mieee
798 -
799 - # Socks support via dante
800 - if use socks5 ; then
801 - # Socks support can't be disabled as long as SOCKS_SERVER is
802 - # set and socks library is present, so need to unset
803 - # SOCKS_SERVER in that case.
804 - unset SOCKS_SERVER
805 - fi
806 -
807 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
808 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
809 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
810 - fi
811 -
812 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
813 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
814 -
815 - # Determine which modules *not* to build depending in the USE flags.
816 - if ! use berkdb ; then
817 - modules="${modules},dbm"
818 - fi
819 - if ! use gdbm ; then
820 - modules="${modules},gdbm"
821 - fi
822 - if ! use ssl ; then
823 - modules="${modules},openssl"
824 - fi
825 - if ! use tk ; then
826 - modules="${modules},tk"
827 - fi
828 -
829 - # Provide an empty LIBPATHENV because we disable rpath but we do not
830 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
831 - # #564272
832 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
833 - --program-suffix=${MY_SUFFIX} \
834 - --with-soname=ruby${MY_SUFFIX} \
835 - --docdir=${EPREFIX}/usr/share/doc/${P} \
836 - --enable-shared \
837 - --enable-pthread \
838 - --disable-rpath \
839 - --disable-dtrace \
840 - --with-out-ext="${modules}" \
841 - $(use_with jemalloc jemalloc) \
842 - $(use_enable socks5 socks) \
843 - $(use_enable doc install-doc) \
844 - --enable-ipv6 \
845 - $(use_enable static-libs static) \
846 - $(use_enable static-libs install-static-library) \
847 - $(use_with static-libs static-linked-ext) \
848 - $(use_enable debug) \
849 - ${myconf} \
850 - --with-readline-dir="${EPREFIX}"/usr \
851 - --enable-option-checking=no \
852 - || die "econf failed"
853 -}
854 -
855 -src_compile() {
856 - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
857 -}
858 -
859 -src_test() {
860 - emake -j1 V=1 test || die "make test failed"
861 -
862 - elog "Ruby's make test has been run. Ruby also ships with a make check"
863 - elog "that cannot be run until after ruby has been installed."
864 - elog
865 - if use rubytests; then
866 - elog "You have enabled rubytests, so they will be installed to"
867 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
868 - elog "than root, and you must place them into a writeable directory."
869 - elog "Then call: "
870 - elog
871 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
872 - else
873 - elog "Enable the rubytests USE flag to install the make check tests"
874 - fi
875 -}
876 -
877 -src_install() {
878 - # Remove the remaining bundled gems. We do this late in the process
879 - # since they are used during the build to e.g. create the
880 - # documentation.
881 - rm -rf ext/json || die
882 -
883 - # Ruby is involved in the install process, we don't want interference here.
884 - unset RUBYOPT
885 -
886 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
887 -
888 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
889 - DYLD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${DYLD_LIBRARY_PATH+:}${DYLD_LIBRARY_PATH}"
890 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
891 - for d in $(find "${S}/ext" -type d) ; do
892 - RUBYLIB="${RUBYLIB}:$d"
893 - done
894 - export LD_LIBRARY_PATH DYLD_LIBRARY_PATH RUBYLIB
895 -
896 - emake V=1 DESTDIR="${D}" install || die "make install failed"
897 -
898 - # Remove installed rubygems and rdoc copy
899 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
900 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
901 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
902 - rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
903 -
904 - if use doc; then
905 - make DESTDIR="${D}" install-doc || die "make install-doc failed"
906 - fi
907 -
908 - if use examples; then
909 - insinto /usr/share/doc/${PF}
910 - doins -r sample
911 - fi
912 -
913 - dodoc ChangeLog NEWS doc/NEWS* README* || die
914 -
915 - if use rubytests; then
916 - pushd test
917 - insinto /usr/share/${PN}-${SLOT}/test
918 - doins -r .
919 - popd
920 - fi
921 -}
922 -
923 -pkg_postinst() {
924 - if [[ ! -n $(readlink "${EROOT}"usr/bin/ruby) ]] ; then
925 - eselect ruby set ruby${MY_SUFFIX}
926 - fi
927 -
928 - elog
929 - elog "To switch between available Ruby profiles, execute as root:"
930 - elog "\teselect ruby set ruby(23|24|...)"
931 - elog
932 -}
933 -
934 -pkg_postrm() {
935 - eselect ruby cleanup
936 -}
937
938 diff --git a/dev-lang/ruby/ruby-2.5.6.ebuild b/dev-lang/ruby/ruby-2.5.8-r1.ebuild
939 similarity index 92%
940 rename from dev-lang/ruby/ruby-2.5.6.ebuild
941 rename to dev-lang/ruby/ruby-2.5.8-r1.ebuild
942 index 21ce746cf6..7d10e481d9 100644
943 --- a/dev-lang/ruby/ruby-2.5.6.ebuild
944 +++ b/dev-lang/ruby/ruby-2.5.8-r1.ebuild
945 @@ -1,4 +1,4 @@
946 -# Copyright 1999-2019 Gentoo Authors
947 +# Copyright 1999-2020 Gentoo Authors
948 # Distributed under the terms of the GNU General Public License v2
949
950 EAPI=7
951 @@ -14,11 +14,11 @@ RUBYVERSION=${SLOT}.0
952
953 DESCRIPTION="An object-oriented scripting language"
954 HOMEPAGE="https://www.ruby-lang.org/"
955 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
956 +SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
957
958 LICENSE="|| ( Ruby-BSD BSD-2 )"
959 KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
960 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
961 +IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 +ssl static-libs systemtap tk xemacs"
962
963 RDEPEND="
964 berkdb? ( sys-libs/db:= )
965 @@ -29,12 +29,13 @@ RDEPEND="
966 libressl? ( dev-libs/libressl )
967 )
968 socks5? ( >=net-proxy/dante-1.1.13 )
969 + systemtap? ( dev-util/systemtap )
970 tk? (
971 dev-lang/tcl:0=[threads]
972 dev-lang/tk:0=[threads]
973 )
974 dev-libs/libyaml
975 - virtual/libffi:=
976 + dev-libs/libffi:=
977 sys-libs/readline:0=
978 sys-libs/zlib
979 >=app-eselect/eselect-ruby-20171225
980 @@ -95,8 +96,6 @@ src_configure() {
981 # In many places aliasing rules are broken; play it safe
982 # as it's risky with newer compilers to leave it as it is.
983 append-flags -fno-strict-aliasing
984 - # SuperH needs this
985 - use sh && append-flags -mieee
986
987 # Socks support via dante
988 if use socks5 ; then
989 @@ -142,6 +141,7 @@ src_configure() {
990 --with-out-ext="${modules}" \
991 $(use_with jemalloc jemalloc) \
992 $(use_enable socks5 socks) \
993 + $(use_enable systemtap dtrace) \
994 $(use_enable doc install-doc) \
995 --enable-ipv6 \
996 $(use_enable static-libs static) \
997 @@ -150,16 +150,15 @@ src_configure() {
998 $(use_enable debug) \
999 ${myconf} \
1000 --with-readline-dir="${EPREFIX}"/usr \
1001 - --enable-option-checking=no \
1002 - || die "econf failed"
1003 + --enable-option-checking=no
1004 }
1005
1006 src_compile() {
1007 - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
1008 + emake V=1 EXTLDFLAGS="${LDFLAGS}"
1009 }
1010
1011 src_test() {
1012 - emake -j1 V=1 test || die "make test failed"
1013 + emake -j1 V=1 test
1014
1015 elog "Ruby's make test has been run. Ruby also ships with a make check"
1016 elog "that cannot be run until after ruby has been installed."
1017 @@ -195,7 +194,7 @@ src_install() {
1018 done
1019 export LD_LIBRARY_PATH DYLD_LIBRARY_PATH RUBYLIB
1020
1021 - emake V=1 DESTDIR="${D}" install || die "make install failed"
1022 + emake V=1 DESTDIR="${D}" install
1023
1024 # Remove installed rubygems and rdoc copy
1025 rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
1026 @@ -208,11 +207,10 @@ src_install() {
1027 fi
1028
1029 if use examples; then
1030 - insinto /usr/share/doc/${PF}
1031 - doins -r sample
1032 + dodoc -r sample
1033 fi
1034
1035 - dodoc ChangeLog NEWS doc/NEWS* README* || die
1036 + dodoc ChangeLog NEWS doc/NEWS* README*
1037
1038 if use rubytests; then
1039 pushd test
1040
1041 diff --git a/dev-lang/ruby/ruby-2.6.4.ebuild b/dev-lang/ruby/ruby-2.6.6-r2.ebuild
1042 similarity index 91%
1043 rename from dev-lang/ruby/ruby-2.6.4.ebuild
1044 rename to dev-lang/ruby/ruby-2.6.6-r2.ebuild
1045 index 94c2d66b4d..acacc0035c 100644
1046 --- a/dev-lang/ruby/ruby-2.6.4.ebuild
1047 +++ b/dev-lang/ruby/ruby-2.6.6-r2.ebuild
1048 @@ -1,4 +1,4 @@
1049 -# Copyright 1999-2019 Gentoo Authors
1050 +# Copyright 1999-2020 Gentoo Authors
1051 # Distributed under the terms of the GNU General Public License v2
1052
1053 EAPI=7
1054 @@ -14,11 +14,11 @@ RUBYVERSION=${SLOT}.0
1055
1056 DESCRIPTION="An object-oriented scripting language"
1057 HOMEPAGE="https://www.ruby-lang.org/"
1058 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
1059 +SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
1060
1061 LICENSE="|| ( Ruby-BSD BSD-2 )"
1062 KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1063 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
1064 +IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs systemtap tk xemacs"
1065
1066 RDEPEND="
1067 berkdb? ( sys-libs/db:= )
1068 @@ -30,15 +30,16 @@ RDEPEND="
1069 libressl? ( dev-libs/libressl )
1070 )
1071 socks5? ( >=net-proxy/dante-1.1.13 )
1072 + systemtap? ( dev-util/systemtap )
1073 tk? (
1074 dev-lang/tcl:0=[threads]
1075 dev-lang/tk:0=[threads]
1076 )
1077 dev-libs/libyaml
1078 - virtual/libffi:=
1079 + dev-libs/libffi:=
1080 sys-libs/readline:0=
1081 sys-libs/zlib
1082 - >=app-eselect/eselect-ruby-20171225
1083 + >=app-eselect/eselect-ruby-20181225
1084 "
1085
1086 DEPEND="${RDEPEND}"
1087 @@ -98,8 +99,6 @@ src_configure() {
1088 # In many places aliasing rules are broken; play it safe
1089 # as it's risky with newer compilers to leave it as it is.
1090 append-flags -fno-strict-aliasing
1091 - # SuperH needs this
1092 - use sh && append-flags -mieee
1093
1094 # Socks support via dante
1095 if use socks5 ; then
1096 @@ -146,6 +145,7 @@ src_configure() {
1097 $(use_with jemalloc jemalloc) \
1098 $(use_enable jit jit-support ) \
1099 $(use_enable socks5 socks) \
1100 + $(use_enable systemtap dtrace) \
1101 $(use_enable doc install-doc) \
1102 --enable-ipv6 \
1103 $(use_enable static-libs static) \
1104 @@ -154,19 +154,18 @@ src_configure() {
1105 $(use_enable debug) \
1106 ${myconf} \
1107 --with-readline-dir="${EPREFIX}"/usr \
1108 - --enable-option-checking=no \
1109 - || die "econf failed"
1110 + --enable-option-checking=no
1111
1112 # Makefile is broken because it lacks -ldl
1113 rm -rf ext/-test-/popen_deadlock || die
1114 }
1115
1116 src_compile() {
1117 - emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS="" || die "emake failed"
1118 + emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS=""
1119 }
1120
1121 src_test() {
1122 - emake -j1 V=1 test || die "make test failed"
1123 + emake -j1 V=1 test
1124
1125 elog "Ruby's make test has been run. Ruby also ships with a make check"
1126 elog "that cannot be run until after ruby has been installed."
1127 @@ -207,7 +206,7 @@ src_install() {
1128 local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
1129 mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
1130
1131 - emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install || die "make install failed"
1132 + emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install
1133
1134 # Remove installed rubygems and rdoc copy
1135 rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
1136 @@ -216,15 +215,14 @@ src_install() {
1137 rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
1138
1139 if use doc; then
1140 - emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc || die "make install-doc failed"
1141 + emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc
1142 fi
1143
1144 if use examples; then
1145 - insinto /usr/share/doc/${PF}
1146 - doins -r sample
1147 + dodoc -r sample
1148 fi
1149
1150 - dodoc ChangeLog NEWS doc/NEWS* README* || die
1151 + dodoc ChangeLog NEWS doc/NEWS* README*
1152
1153 if use rubytests; then
1154 pushd test
1155
1156 diff --git a/dev-lang/ruby/ruby-2.6.3.ebuild b/dev-lang/ruby/ruby-2.7.1-r2.ebuild
1157 similarity index 82%
1158 rename from dev-lang/ruby/ruby-2.6.3.ebuild
1159 rename to dev-lang/ruby/ruby-2.7.1-r2.ebuild
1160 index 21cf31af81..eba19f4fd6 100644
1161 --- a/dev-lang/ruby/ruby-2.6.3.ebuild
1162 +++ b/dev-lang/ruby/ruby-2.7.1-r2.ebuild
1163 @@ -1,4 +1,4 @@
1164 -# Copyright 1999-2019 Gentoo Authors
1165 +# Copyright 1999-2020 Gentoo Authors
1166 # Distributed under the terms of the GNU General Public License v2
1167
1168 EAPI=7
1169 @@ -14,11 +14,11 @@ RUBYVERSION=${SLOT}.0
1170
1171 DESCRIPTION="An object-oriented scripting language"
1172 HOMEPAGE="https://www.ruby-lang.org/"
1173 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
1174 +SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
1175
1176 LICENSE="|| ( Ruby-BSD BSD-2 )"
1177 KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1178 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
1179 +IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs systemtap tk xemacs"
1180
1181 RDEPEND="
1182 berkdb? ( sys-libs/db:= )
1183 @@ -30,47 +30,51 @@ RDEPEND="
1184 libressl? ( dev-libs/libressl )
1185 )
1186 socks5? ( >=net-proxy/dante-1.1.13 )
1187 + systemtap? ( dev-util/systemtap )
1188 tk? (
1189 dev-lang/tcl:0=[threads]
1190 dev-lang/tk:0=[threads]
1191 )
1192 dev-libs/libyaml
1193 - virtual/libffi:=
1194 + dev-libs/libffi:=
1195 sys-libs/readline:0=
1196 sys-libs/zlib
1197 - >=app-eselect/eselect-ruby-20171225
1198 + >=app-eselect/eselect-ruby-20191222
1199 "
1200
1201 DEPEND="${RDEPEND}"
1202
1203 BUNDLED_GEMS="
1204 - >=dev-ruby/did_you_mean-1.2.1[ruby_targets_ruby26]
1205 - >=dev-ruby/minitest-5.11.3[ruby_targets_ruby26]
1206 - >=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby26]
1207 - >=dev-ruby/power_assert-1.1.3[ruby_targets_ruby26]
1208 - >=dev-ruby/rake-12.3.2[ruby_targets_ruby26]
1209 - >=dev-ruby/test-unit-3.2.9[ruby_targets_ruby26]
1210 - >=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby26]
1211 + >=dev-ruby/minitest-5.13.0[ruby_targets_ruby27]
1212 + >=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby27]
1213 + >=dev-ruby/power_assert-1.1.7[ruby_targets_ruby27]
1214 + >=dev-ruby/rake-13.0.1[ruby_targets_ruby27]
1215 + >=dev-ruby/test-unit-3.3.4[ruby_targets_ruby27]
1216 + >=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby27]
1217 "
1218
1219 PDEPEND="
1220 ${BUNDLED_GEMS}
1221 - virtual/rubygems[ruby_targets_ruby26]
1222 - >=dev-ruby/bundler-1.17.2[ruby_targets_ruby26]
1223 - >=dev-ruby/json-2.0.2[ruby_targets_ruby26]
1224 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby26] )
1225 + virtual/rubygems[ruby_targets_ruby27]
1226 + >=dev-ruby/bundler-2.1.4[ruby_targets_ruby27]
1227 + >=dev-ruby/did_you_mean-1.3.1[ruby_targets_ruby27]
1228 + >=dev-ruby/json-2.0.2[ruby_targets_ruby27]
1229 + rdoc? ( >=dev-ruby/rdoc-6.1.2[ruby_targets_ruby27] )
1230 xemacs? ( app-xemacs/ruby-modes )"
1231
1232 src_prepare() {
1233 # 005 does not compile bigdecimal and is questionable because it
1234 # compiles ruby in a non-standard way, may be dropped
1235 - eapply "${FILESDIR}"/2.6/010*.patch
1236 + eapply "${FILESDIR}"/2.7/010*.patch
1237
1238 einfo "Unbundling gems..."
1239 cd "$S"
1240 # Remove bundled gems that we will install via PDEPEND, bug
1241 # 539700.
1242 rm -fr gems/* || die
1243 + # Don't install CLI tools since they will clash with the gem
1244 + rm -f bin/{racc,racc2y,y2racc} || die
1245 + sed -i -e '/executables/ s:^:#:' lib/racc/racc.gemspec || die
1246
1247 einfo "Removing bundled libraries..."
1248 rm -fr ext/fiddle/libffi-3.2.1 || die
1249 @@ -98,8 +102,6 @@ src_configure() {
1250 # In many places aliasing rules are broken; play it safe
1251 # as it's risky with newer compilers to leave it as it is.
1252 append-flags -fno-strict-aliasing
1253 - # SuperH needs this
1254 - use sh && append-flags -mieee
1255
1256 # Socks support via dante
1257 if use socks5 ; then
1258 @@ -146,6 +148,7 @@ src_configure() {
1259 $(use_with jemalloc jemalloc) \
1260 $(use_enable jit jit-support ) \
1261 $(use_enable socks5 socks) \
1262 + $(use_enable systemtap dtrace) \
1263 $(use_enable doc install-doc) \
1264 --enable-ipv6 \
1265 $(use_enable static-libs static) \
1266 @@ -154,19 +157,18 @@ src_configure() {
1267 $(use_enable debug) \
1268 ${myconf} \
1269 --with-readline-dir="${EPREFIX}"/usr \
1270 - --enable-option-checking=no \
1271 - || die "econf failed"
1272 + --enable-option-checking=no
1273
1274 # Makefile is broken because it lacks -ldl
1275 rm -rf ext/-test-/popen_deadlock || die
1276 }
1277
1278 src_compile() {
1279 - emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS="" || die "emake failed"
1280 + emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS=""
1281 }
1282
1283 src_test() {
1284 - emake -j1 V=1 test || die "make test failed"
1285 + emake -j1 V=1 test
1286
1287 elog "Ruby's make test has been run. Ruby also ships with a make check"
1288 elog "that cannot be run until after ruby has been installed."
1289 @@ -207,7 +209,7 @@ src_install() {
1290 local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
1291 mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
1292
1293 - emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install || die "make install failed"
1294 + emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install
1295
1296 # Remove installed rubygems and rdoc copy
1297 rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
1298 @@ -216,15 +218,14 @@ src_install() {
1299 rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
1300
1301 if use doc; then
1302 - emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc || die "make install-doc failed"
1303 + emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc
1304 fi
1305
1306 if use examples; then
1307 - insinto /usr/share/doc/${PF}
1308 - doins -r sample
1309 + dodoc -r sample
1310 fi
1311
1312 - dodoc ChangeLog NEWS doc/NEWS* README* || die
1313 + dodoc ChangeLog NEWS doc/NEWS* README*
1314
1315 if use rubytests; then
1316 pushd test
1317 @@ -235,7 +236,7 @@ src_install() {
1318 }
1319
1320 pkg_postinst() {
1321 - if [[ ! -n $(readlink "${EROOT}"usr/bin/ruby) ]] ; then
1322 + if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
1323 eselect ruby set ruby${MY_SUFFIX}
1324 fi