Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ruby/
Date: Sat, 11 May 2019 06:09:02
Message-Id: 1557554929.6c7101901fae4223f1bed90dbb57e991b9650103.graaff@gentoo
1 commit: 6c7101901fae4223f1bed90dbb57e991b9650103
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 11 06:07:11 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat May 11 06:08:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c710190
7
8 dev-lang/ruby: cleanup
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 dev-lang/ruby/Manifest | 3 -
14 dev-lang/ruby/ruby-2.4.5-r1.ebuild | 230 -----------------------------------
15 dev-lang/ruby/ruby-2.5.3.ebuild | 225 -----------------------------------
16 dev-lang/ruby/ruby-2.6.0-r1.ebuild | 237 -------------------------------------
17 dev-lang/ruby/ruby-2.6.1.ebuild | 237 -------------------------------------
18 5 files changed, 932 deletions(-)
19
20 diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest
21 index 5b67b3c3a3d..cca44afaa3e 100644
22 --- a/dev-lang/ruby/Manifest
23 +++ b/dev-lang/ruby/Manifest
24 @@ -1,10 +1,7 @@
25 DIST ruby-2.3.8.tar.xz 11465792 BLAKE2B b9c8ef5c943872e3d1426c30cbd720acc66d17cc7bc926f3294e68f17fbc78edef42f6496295800c3d4efd3ae441730723bfcfbc1111e46239359930622697d9 SHA512 06373050e6c1af9cb6a5863aef878b21c8a45fd0e68414e3d546cb73ec3028207d3acc0a9326428f172b9347a30bbe69a16f9dc0bdb739161d677adb2d888095
26 DIST ruby-2.4.5.tar.xz 10064712 BLAKE2B 0846125e617b43ea302b4c5309b20503577937865d445a6fee766323a188aa552d3a13740c3d38c7be812b19bffb2474021cb7b368cc144d51ea771552f62769 SHA512 658f676c623109f4c7499615e191c98c3dd72cfcaeeaf121337d0b8a33c5243145edd50ec5e2775f988e3cd19788984f105fa165e3049779066566f67172c1b4
27 DIST ruby-2.4.6.tar.xz 10005544 BLAKE2B 2af984d96dad4d7ef4d467b317bd4bb54b0614d96619377bc46f7588cd1c72bee47202b61d6ec54f00113fd25672d2831221dbf0a4491aa271541a34c634ee84 SHA512 eafb2257747f99e2ed262af142e71175b70f7cceaa4d1253b92c8337f075a9a58a2d93b029d75e11a9b124f112a8f0983273b2b30afc147b5cf71a8dbb5fa0ba
28 -DIST ruby-2.5.3.tar.xz 11453336 BLAKE2B 66c59448a23c22796b43f04a1f84359386b7bee7163da4255426ea75b1c7af0a7a7142991b870a75a72ded56ac49f47c51bc162ebf2be2af0d1b1608b60c02df SHA512 6dcae0e8d0bacdb2cbde636e2030596308b5af53f2eb85d3adccb67b02e6f8f9751e8117d12f8484829fdd9d995f6e327f701d9b433bcf94f1f59d13a1fd7518
29 DIST ruby-2.5.5.tar.xz 11459832 BLAKE2B ced1105a87e7df8f82a65ca8d1d329d5a9d110d2f3f88b27a79262c4ac1484dda16d8646c0c03f18c1bb25f8b154075eb03a0614355ec62f677c2fa56ab3c956 SHA512 06b1d58536ebfacb7b56c1e6ed4b8ab816fadc4f48c845a452554cd262e7908199a30e5793f3cbaec2db56a8803aa5c6089abf7bf06c8fc47867e97870b7dfec
30 -DIST ruby-2.6.0.tar.xz 11918536 BLAKE2B f51fe57c1ff83d99c834f29d1bcc8e847f7a4cd3a10e202391327373d9d803fcc356d210cc07b9038915039a7462c0263fa7567b63366d1ab6273b9a82e651d1 SHA512 c56eaf85ef7b79deb34ee4590b143c07f4fc83eb79775290761aee5a7c63374659613538a41f25706ed6e19e49d5c67a1014c24d17f29948294c7abd0b0fcea8
31 -DIST ruby-2.6.1.tar.xz 11872964 BLAKE2B 789d1a174b02538e92a66372814b8be45f30187f99df15922e3dd899222fd5feea196ed0a352a19246d8c822e0eb97e8f4ff8229a6c00ac5c60cb214460b7289 SHA512 fb36289a955f0596c683cdadf1e4a9a9fd35222b1e1c6160c2e7cd82e5befd40a7aa4361e55f7a8f83c06ee899ec493821c7db34a60c4ac3bca0e874d33ef1a9
32 DIST ruby-2.6.2.tar.xz 11889840 BLAKE2B 817919c078869c2ad8d5c9d8c8b7ee77e8b0e3339c2ef662a94a666a859f762fa63c6f8534027abd368e91fe4e3e1fe68fa984cbf12f76cff8c0c66f0114914f SHA512 13f7d7b483a037378eac4bf4bebddc21d69f4e19e6bbb397dd53e7518037ae9a3aa5b41fc20bf1fe410803c6efc3a6a65a65af47648d3a93713f75cfe885326a
33 DIST ruby-2.6.3.tar.xz 11904360 BLAKE2B 8113e5a19b967cdf995a3c8d3c83aeab3bf89e975d3b039c64259e97f20dbe9ebd96ada093f9d330516d16ef78bb0ecbbac8f3facd467aa13f1f70b23b992f82 SHA512 959a613f5cf5b3185a1d7a7ba0e1921166b3930f30461b391b1c9fcfe396f56dc3c736123dfc7b4e72c32a97dc5a1eb1fd7f09bcc3793a3c5526f6644ba421c8
34 DIST ruby-patches-2.3.8-r1.tar.bz2 3030 BLAKE2B 7c1e80ff0569a03672f53820c665933056b46bcf791c9132cb9f358f72df693749f02da65ca7469c3dd0f652d7dc7bfaa03dccd4eb900562361876023fb65b42 SHA512 54cc3f2bfd1967b8558736e5a5240b886a56b22defca5813f45b1f4dca9af169b4d59d60b327ec8411e824970ac6da1cec53cfc31833403742e9d6941e5a78f1
35
36 diff --git a/dev-lang/ruby/ruby-2.4.5-r1.ebuild b/dev-lang/ruby/ruby-2.4.5-r1.ebuild
37 deleted file mode 100644
38 index 04e38de79d9..00000000000
39 --- a/dev-lang/ruby/ruby-2.4.5-r1.ebuild
40 +++ /dev/null
41 @@ -1,230 +0,0 @@
42 -# Copyright 1999-2019 Gentoo Authors
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI=7
46 -
47 -inherit autotools flag-o-matic multilib
48 -
49 -MY_P="${PN}-$(ver_cut 1-3)"
50 -S=${WORKDIR}/${MY_P}
51 -
52 -SLOT=$(ver_cut 1-2)
53 -MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
54 -RUBYVERSION=${SLOT}.0
55 -
56 -DESCRIPTION="An object-oriented scripting language"
57 -HOMEPAGE="https://www.ruby-lang.org/"
58 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
59 -
60 -LICENSE="|| ( Ruby-BSD BSD-2 )"
61 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
62 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
63 -
64 -RDEPEND="
65 - berkdb? ( sys-libs/db:= )
66 - gdbm? ( sys-libs/gdbm:= )
67 - jemalloc? ( dev-libs/jemalloc )
68 - ssl? (
69 - !libressl? ( dev-libs/openssl:0= )
70 - libressl? ( dev-libs/libressl )
71 - )
72 - socks5? ( >=net-proxy/dante-1.1.13 )
73 - tk? (
74 - dev-lang/tcl:0=[threads]
75 - dev-lang/tk:0=[threads]
76 - )
77 - dev-libs/libyaml
78 - virtual/libffi:=
79 - sys-libs/readline:0=
80 - sys-libs/zlib
81 - >=app-eselect/eselect-ruby-20161226
82 - !<dev-ruby/rdoc-3.9.4
83 - !<dev-ruby/rubygems-1.8.10-r1"
84 -
85 -DEPEND="${RDEPEND}"
86 -
87 -BUNDLED_GEMS="
88 - >=dev-ruby/did_you_mean-1.1.0:2.4[ruby_targets_ruby24]
89 - >=dev-ruby/minitest-5.10.1[ruby_targets_ruby24]
90 - >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby24]
91 - >=dev-ruby/power_assert-0.4.1[ruby_targets_ruby24]
92 - >=dev-ruby/rake-12.0.0[ruby_targets_ruby24]
93 - >=dev-ruby/test-unit-3.2.3[ruby_targets_ruby24]
94 - >=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24]
95 -"
96 -
97 -PDEPEND="
98 - ${BUNDLED_GEMS}
99 - virtual/rubygems[ruby_targets_ruby24]
100 - >=dev-ruby/json-2.0.2[ruby_targets_ruby24]
101 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby24] )
102 - xemacs? ( app-xemacs/ruby-modes )"
103 -
104 -src_prepare() {
105 - eapply "${FILESDIR}"/${SLOT}/{002,005,009,012}*.patch
106 -
107 - einfo "Unbundling gems..."
108 - cd "$S"
109 - # Remove bundled gems that we will install via PDEPEND, bug
110 - # 539700. Use explicit version numbers to ensure rm fails when they
111 - # change so we can update dependencies accordingly.
112 - 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
113 -
114 - einfo "Removing bundled libraries..."
115 - rm -fr ext/fiddle/libffi-3.2.1 || die
116 -
117 - # Fix a hardcoded lib path in configure script
118 - sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
119 - configure.in || die "sed failed"
120 -
121 - eapply_user
122 -
123 - eautoreconf
124 -}
125 -
126 -src_configure() {
127 - local modules= myconf=
128 -
129 - # -fomit-frame-pointer makes ruby segfault, see bug #150413.
130 - filter-flags -fomit-frame-pointer
131 - # In many places aliasing rules are broken; play it safe
132 - # as it's risky with newer compilers to leave it as it is.
133 - append-flags -fno-strict-aliasing
134 - # SuperH needs this
135 - use sh && append-flags -mieee
136 -
137 - # Socks support via dante
138 - if use socks5 ; then
139 - # Socks support can't be disabled as long as SOCKS_SERVER is
140 - # set and socks library is present, so need to unset
141 - # SOCKS_SERVER in that case.
142 - unset SOCKS_SERVER
143 - fi
144 -
145 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
146 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
147 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
148 - fi
149 -
150 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
151 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
152 -
153 - # Determine which modules *not* to build depending in the USE flags.
154 - if ! use berkdb ; then
155 - modules="${modules},dbm"
156 - fi
157 - if ! use gdbm ; then
158 - modules="${modules},gdbm"
159 - fi
160 - if ! use ssl ; then
161 - modules="${modules},openssl"
162 - fi
163 - if ! use tk ; then
164 - modules="${modules},tk"
165 - fi
166 -
167 - # Provide an empty LIBPATHENV because we disable rpath but we do not
168 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
169 - # #564272
170 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
171 - --program-suffix=${MY_SUFFIX} \
172 - --with-soname=ruby${MY_SUFFIX} \
173 - --docdir=${EPREFIX}/usr/share/doc/${P} \
174 - --enable-shared \
175 - --enable-pthread \
176 - --disable-rpath \
177 - --with-out-ext="${modules}" \
178 - $(use_with jemalloc jemalloc) \
179 - $(use_enable socks5 socks) \
180 - $(use_enable doc install-doc) \
181 - --enable-ipv6 \
182 - $(use_enable static-libs static) \
183 - $(use_enable static-libs install-static-library) \
184 - $(use_with static-libs static-linked-ext) \
185 - $(use_enable debug) \
186 - ${myconf} \
187 - --enable-option-checking=no \
188 - || die "econf failed"
189 -}
190 -
191 -src_compile() {
192 - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
193 -}
194 -
195 -src_test() {
196 - emake -j1 V=1 test || die "make test failed"
197 -
198 - elog "Ruby's make test has been run. Ruby also ships with a make check"
199 - elog "that cannot be run until after ruby has been installed."
200 - elog
201 - if use rubytests; then
202 - elog "You have enabled rubytests, so they will be installed to"
203 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
204 - elog "than root, and you must place them into a writeable directory."
205 - elog "Then call: "
206 - elog
207 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
208 - else
209 - elog "Enable the rubytests USE flag to install the make check tests"
210 - fi
211 -}
212 -
213 -src_install() {
214 - # Remove the remaining bundled gems. We do this late in the process
215 - # since they are used during the build to e.g. create the
216 - # documentation.
217 - rm -rf ext/json || die
218 -
219 - # Ruby is involved in the install process, we don't want interference here.
220 - unset RUBYOPT
221 -
222 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
223 -
224 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
225 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
226 - for d in $(find "${S}/ext" -type d) ; do
227 - RUBYLIB="${RUBYLIB}:$d"
228 - done
229 - export LD_LIBRARY_PATH RUBYLIB
230 -
231 - emake V=1 DESTDIR="${D}" install || die "make install failed"
232 -
233 - # Remove installed rubygems and rdoc copy
234 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
235 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
236 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
237 - rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
238 -
239 - if use doc; then
240 - make DESTDIR="${D}" install-doc || die "make install-doc failed"
241 - fi
242 -
243 - if use examples; then
244 - insinto /usr/share/doc/${PF}
245 - doins -r sample
246 - fi
247 -
248 - dodoc ChangeLog NEWS doc/NEWS* README* || die
249 -
250 - if use rubytests; then
251 - pushd test
252 - insinto /usr/share/${PN}-${SLOT}/test
253 - doins -r .
254 - popd
255 - fi
256 -}
257 -
258 -pkg_postinst() {
259 - if [[ ! -n $(readlink "${EROOT}"usr/bin/ruby) ]] ; then
260 - eselect ruby set ruby${MY_SUFFIX}
261 - fi
262 -
263 - elog
264 - elog "To switch between available Ruby profiles, execute as root:"
265 - elog "\teselect ruby set ruby(23|24|...)"
266 - elog
267 -}
268 -
269 -pkg_postrm() {
270 - eselect ruby cleanup
271 -}
272
273 diff --git a/dev-lang/ruby/ruby-2.5.3.ebuild b/dev-lang/ruby/ruby-2.5.3.ebuild
274 deleted file mode 100644
275 index 7c56ce9dff6..00000000000
276 --- a/dev-lang/ruby/ruby-2.5.3.ebuild
277 +++ /dev/null
278 @@ -1,225 +0,0 @@
279 -# Copyright 1999-2019 Gentoo Authors
280 -# Distributed under the terms of the GNU General Public License v2
281 -
282 -EAPI=7
283 -
284 -inherit autotools flag-o-matic multilib
285 -
286 -MY_P="${PN}-$(ver_cut 1-3)"
287 -S=${WORKDIR}/${MY_P}
288 -
289 -SLOT=$(ver_cut 1-2)
290 -MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
291 -RUBYVERSION=${SLOT}.0
292 -
293 -DESCRIPTION="An object-oriented scripting language"
294 -HOMEPAGE="https://www.ruby-lang.org/"
295 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
296 -
297 -LICENSE="|| ( Ruby-BSD BSD-2 )"
298 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
299 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
300 -
301 -RDEPEND="
302 - berkdb? ( sys-libs/db:= )
303 - gdbm? ( sys-libs/gdbm:= )
304 - jemalloc? ( dev-libs/jemalloc )
305 - ssl? (
306 - !libressl? ( dev-libs/openssl:0= )
307 - libressl? ( dev-libs/libressl )
308 - )
309 - socks5? ( >=net-proxy/dante-1.1.13 )
310 - tk? (
311 - dev-lang/tcl:0=[threads]
312 - dev-lang/tk:0=[threads]
313 - )
314 - dev-libs/libyaml
315 - virtual/libffi:=
316 - sys-libs/readline:0=
317 - sys-libs/zlib
318 - >=app-eselect/eselect-ruby-20171225
319 -"
320 -
321 -DEPEND="${RDEPEND}"
322 -
323 -BUNDLED_GEMS="
324 - >=dev-ruby/did_you_mean-1.2.0:2.5[ruby_targets_ruby25]
325 - >=dev-ruby/minitest-5.10.3[ruby_targets_ruby25]
326 - >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby25]
327 - >=dev-ruby/power_assert-1.1.1[ruby_targets_ruby25]
328 - >=dev-ruby/rake-12.3.0[ruby_targets_ruby25]
329 - >=dev-ruby/test-unit-3.2.7[ruby_targets_ruby25]
330 - >=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby25]
331 -"
332 -
333 -PDEPEND="
334 - ${BUNDLED_GEMS}
335 - virtual/rubygems[ruby_targets_ruby25]
336 - >=dev-ruby/json-2.0.2[ruby_targets_ruby25]
337 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby25] )
338 - xemacs? ( app-xemacs/ruby-modes )"
339 -
340 -src_prepare() {
341 - eapply "${FILESDIR}"/${SLOT}/{001,005,009}*.patch
342 -
343 - einfo "Unbundling gems..."
344 - cd "$S"
345 - # Remove bundled gems that we will install via PDEPEND, bug
346 - # 539700. Use explicit version numbers to ensure rm fails when they
347 - # change so we can update dependencies accordingly.
348 - 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
349 -
350 - einfo "Removing bundled libraries..."
351 - rm -fr ext/fiddle/libffi-3.2.1 || die
352 -
353 - eapply_user
354 -
355 - eautoreconf
356 -}
357 -
358 -src_configure() {
359 - local modules= myconf=
360 -
361 - # -fomit-frame-pointer makes ruby segfault, see bug #150413.
362 - filter-flags -fomit-frame-pointer
363 - # In many places aliasing rules are broken; play it safe
364 - # as it's risky with newer compilers to leave it as it is.
365 - append-flags -fno-strict-aliasing
366 - # SuperH needs this
367 - use sh && append-flags -mieee
368 -
369 - # Socks support via dante
370 - if use socks5 ; then
371 - # Socks support can't be disabled as long as SOCKS_SERVER is
372 - # set and socks library is present, so need to unset
373 - # SOCKS_SERVER in that case.
374 - unset SOCKS_SERVER
375 - fi
376 -
377 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
378 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
379 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
380 - fi
381 -
382 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
383 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
384 -
385 - # Determine which modules *not* to build depending in the USE flags.
386 - if ! use berkdb ; then
387 - modules="${modules},dbm"
388 - fi
389 - if ! use gdbm ; then
390 - modules="${modules},gdbm"
391 - fi
392 - if ! use ssl ; then
393 - modules="${modules},openssl"
394 - fi
395 - if ! use tk ; then
396 - modules="${modules},tk"
397 - fi
398 -
399 - # Provide an empty LIBPATHENV because we disable rpath but we do not
400 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
401 - # #564272
402 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
403 - --program-suffix=${MY_SUFFIX} \
404 - --with-soname=ruby${MY_SUFFIX} \
405 - --docdir=${EPREFIX}/usr/share/doc/${P} \
406 - --enable-shared \
407 - --enable-pthread \
408 - --disable-rpath \
409 - --with-out-ext="${modules}" \
410 - $(use_with jemalloc jemalloc) \
411 - $(use_enable socks5 socks) \
412 - $(use_enable doc install-doc) \
413 - --enable-ipv6 \
414 - $(use_enable static-libs static) \
415 - $(use_enable static-libs install-static-library) \
416 - $(use_with static-libs static-linked-ext) \
417 - $(use_enable debug) \
418 - ${myconf} \
419 - --enable-option-checking=no \
420 - || die "econf failed"
421 -}
422 -
423 -src_compile() {
424 - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
425 -}
426 -
427 -src_test() {
428 - emake -j1 V=1 test || die "make test failed"
429 -
430 - elog "Ruby's make test has been run. Ruby also ships with a make check"
431 - elog "that cannot be run until after ruby has been installed."
432 - elog
433 - if use rubytests; then
434 - elog "You have enabled rubytests, so they will be installed to"
435 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
436 - elog "than root, and you must place them into a writeable directory."
437 - elog "Then call: "
438 - elog
439 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
440 - else
441 - elog "Enable the rubytests USE flag to install the make check tests"
442 - fi
443 -}
444 -
445 -src_install() {
446 - # Remove the remaining bundled gems. We do this late in the process
447 - # since they are used during the build to e.g. create the
448 - # documentation.
449 - rm -rf ext/json || die
450 -
451 - # Ruby is involved in the install process, we don't want interference here.
452 - unset RUBYOPT
453 -
454 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
455 -
456 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
457 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
458 - for d in $(find "${S}/ext" -type d) ; do
459 - RUBYLIB="${RUBYLIB}:$d"
460 - done
461 - export LD_LIBRARY_PATH RUBYLIB
462 -
463 - emake V=1 DESTDIR="${D}" install || die "make install failed"
464 -
465 - # Remove installed rubygems and rdoc copy
466 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
467 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
468 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
469 - rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
470 -
471 - if use doc; then
472 - make DESTDIR="${D}" install-doc || die "make install-doc failed"
473 - fi
474 -
475 - if use examples; then
476 - insinto /usr/share/doc/${PF}
477 - doins -r sample
478 - fi
479 -
480 - dodoc ChangeLog NEWS doc/NEWS* README* || die
481 -
482 - if use rubytests; then
483 - pushd test
484 - insinto /usr/share/${PN}-${SLOT}/test
485 - doins -r .
486 - popd
487 - fi
488 -}
489 -
490 -pkg_postinst() {
491 - if [[ ! -n $(readlink "${EROOT}"usr/bin/ruby) ]] ; then
492 - eselect ruby set ruby${MY_SUFFIX}
493 - fi
494 -
495 - elog
496 - elog "To switch between available Ruby profiles, execute as root:"
497 - elog "\teselect ruby set ruby(23|24|...)"
498 - elog
499 -}
500 -
501 -pkg_postrm() {
502 - eselect ruby cleanup
503 -}
504
505 diff --git a/dev-lang/ruby/ruby-2.6.0-r1.ebuild b/dev-lang/ruby/ruby-2.6.0-r1.ebuild
506 deleted file mode 100644
507 index 3d4b93b4185..00000000000
508 --- a/dev-lang/ruby/ruby-2.6.0-r1.ebuild
509 +++ /dev/null
510 @@ -1,237 +0,0 @@
511 -# Copyright 1999-2019 Gentoo Authors
512 -# Distributed under the terms of the GNU General Public License v2
513 -
514 -EAPI=7
515 -
516 -inherit autotools flag-o-matic multilib
517 -
518 -MY_P="${PN}-$(ver_cut 1-3)"
519 -S=${WORKDIR}/${MY_P}
520 -
521 -SLOT=$(ver_cut 1-2)
522 -MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
523 -RUBYVERSION=${SLOT}.0
524 -
525 -DESCRIPTION="An object-oriented scripting language"
526 -HOMEPAGE="https://www.ruby-lang.org/"
527 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
528 -
529 -LICENSE="|| ( Ruby-BSD BSD-2 )"
530 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
531 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
532 -
533 -RDEPEND="
534 - berkdb? ( sys-libs/db:= )
535 - gdbm? ( sys-libs/gdbm:= )
536 - jemalloc? ( dev-libs/jemalloc )
537 - jit? ( || ( sys-devel/gcc:* sys-devel/clang:* ) )
538 - ssl? (
539 - !libressl? ( dev-libs/openssl:0= )
540 - libressl? ( dev-libs/libressl )
541 - )
542 - socks5? ( >=net-proxy/dante-1.1.13 )
543 - tk? (
544 - dev-lang/tcl:0=[threads]
545 - dev-lang/tk:0=[threads]
546 - )
547 - dev-libs/libyaml
548 - virtual/libffi:=
549 - sys-libs/readline:0=
550 - sys-libs/zlib
551 - >=app-eselect/eselect-ruby-20171225
552 -"
553 -
554 -DEPEND="${RDEPEND}"
555 -
556 -BUNDLED_GEMS="
557 - >=dev-ruby/did_you_mean-1.2.1[ruby_targets_ruby26]
558 - >=dev-ruby/minitest-5.11.3[ruby_targets_ruby26]
559 - >=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby26]
560 - >=dev-ruby/power_assert-1.1.3[ruby_targets_ruby26]
561 - >=dev-ruby/rake-12.3.2[ruby_targets_ruby26]
562 - >=dev-ruby/test-unit-3.2.9[ruby_targets_ruby26]
563 - >=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby26]
564 -"
565 -
566 -PDEPEND="
567 - ${BUNDLED_GEMS}
568 - virtual/rubygems[ruby_targets_ruby26]
569 - >=dev-ruby/bundler-1.17.2[ruby_targets_ruby26]
570 - >=dev-ruby/json-2.0.2[ruby_targets_ruby26]
571 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby26] )
572 - xemacs? ( app-xemacs/ruby-modes )"
573 -
574 -src_prepare() {
575 - # 005 does not compile bigdecimal and is questionable because it
576 - # compiles ruby in a non-standard way, may be dropped
577 - eapply "${FILESDIR}"/2.6/009*.patch
578 -
579 - einfo "Unbundling gems..."
580 - cd "$S"
581 - # Remove bundled gems that we will install via PDEPEND, bug
582 - # 539700.
583 - rm -fr gems/* || die
584 -
585 - einfo "Removing bundled libraries..."
586 - rm -fr ext/fiddle/libffi-3.2.1 || die
587 -
588 - eapply_user
589 -
590 - eautoreconf
591 -}
592 -
593 -src_configure() {
594 - local modules= myconf=
595 -
596 - # -fomit-frame-pointer makes ruby segfault, see bug #150413.
597 - filter-flags -fomit-frame-pointer
598 - # In many places aliasing rules are broken; play it safe
599 - # as it's risky with newer compilers to leave it as it is.
600 - append-flags -fno-strict-aliasing
601 - # SuperH needs this
602 - use sh && append-flags -mieee
603 -
604 - # Socks support via dante
605 - if use socks5 ; then
606 - # Socks support can't be disabled as long as SOCKS_SERVER is
607 - # set and socks library is present, so need to unset
608 - # SOCKS_SERVER in that case.
609 - unset SOCKS_SERVER
610 - fi
611 -
612 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
613 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
614 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
615 - fi
616 -
617 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
618 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
619 -
620 - # Determine which modules *not* to build depending in the USE flags.
621 - if ! use berkdb ; then
622 - modules="${modules},dbm"
623 - fi
624 - if ! use gdbm ; then
625 - modules="${modules},gdbm"
626 - fi
627 - if ! use ssl ; then
628 - modules="${modules},openssl"
629 - fi
630 - if ! use tk ; then
631 - modules="${modules},tk"
632 - fi
633 -
634 - # Provide an empty LIBPATHENV because we disable rpath but we do not
635 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
636 - # #564272
637 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
638 - --program-suffix=${MY_SUFFIX} \
639 - --with-soname=ruby${MY_SUFFIX} \
640 - --docdir=${EPREFIX}/usr/share/doc/${P} \
641 - --enable-shared \
642 - --enable-pthread \
643 - --disable-rpath \
644 - --with-out-ext="${modules}" \
645 - $(use_with jemalloc jemalloc) \
646 - $(use_enable jit jit-support ) \
647 - $(use_enable socks5 socks) \
648 - $(use_enable doc install-doc) \
649 - --enable-ipv6 \
650 - $(use_enable static-libs static) \
651 - $(use_enable static-libs install-static-library) \
652 - $(use_with static-libs static-linked-ext) \
653 - $(use_enable debug) \
654 - ${myconf} \
655 - --enable-option-checking=no \
656 - || die "econf failed"
657 -
658 - # Makefile is broken because it lacks -ldl
659 - rm -rf ext/-test-/popen_deadlock || die
660 -}
661 -
662 -src_compile() {
663 - emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS="" || die "emake failed"
664 -}
665 -
666 -src_test() {
667 - emake -j1 V=1 test || die "make test failed"
668 -
669 - elog "Ruby's make test has been run. Ruby also ships with a make check"
670 - elog "that cannot be run until after ruby has been installed."
671 - elog
672 - if use rubytests; then
673 - elog "You have enabled rubytests, so they will be installed to"
674 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
675 - elog "than root, and you must place them into a writeable directory."
676 - elog "Then call: "
677 - elog
678 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
679 - else
680 - elog "Enable the rubytests USE flag to install the make check tests"
681 - fi
682 -}
683 -
684 -src_install() {
685 - # Remove the remaining bundled gems. We do this late in the process
686 - # since they are used during the build to e.g. create the
687 - # documentation.
688 - rm -rf ext/json || die
689 - rm -rf lib/bundler* lib/rdoc/rdoc.gemspec || die
690 -
691 - # Ruby is involved in the install process, we don't want interference here.
692 - unset RUBYOPT
693 -
694 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
695 -
696 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
697 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
698 - for d in $(find "${S}/ext" -type d) ; do
699 - RUBYLIB="${RUBYLIB}:$d"
700 - done
701 - export LD_LIBRARY_PATH RUBYLIB
702 -
703 - # Create directory for the default gems
704 - local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
705 - mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
706 -
707 - emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install || die "make install failed"
708 -
709 - # Remove installed rubygems and rdoc copy
710 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
711 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
712 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
713 - rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
714 -
715 - if use doc; then
716 - emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc || die "make install-doc failed"
717 - fi
718 -
719 - if use examples; then
720 - insinto /usr/share/doc/${PF}
721 - doins -r sample
722 - fi
723 -
724 - dodoc ChangeLog NEWS doc/NEWS* README* || die
725 -
726 - if use rubytests; then
727 - pushd test
728 - insinto /usr/share/${PN}-${SLOT}/test
729 - doins -r .
730 - popd
731 - fi
732 -}
733 -
734 -pkg_postinst() {
735 - if [[ ! -n $(readlink "${EROOT}"usr/bin/ruby) ]] ; then
736 - eselect ruby set ruby${MY_SUFFIX}
737 - fi
738 -
739 - elog
740 - elog "To switch between available Ruby profiles, execute as root:"
741 - elog "\teselect ruby set ruby(23|24|...)"
742 - elog
743 -}
744 -
745 -pkg_postrm() {
746 - eselect ruby cleanup
747 -}
748
749 diff --git a/dev-lang/ruby/ruby-2.6.1.ebuild b/dev-lang/ruby/ruby-2.6.1.ebuild
750 deleted file mode 100644
751 index 9ab0d7c1a5d..00000000000
752 --- a/dev-lang/ruby/ruby-2.6.1.ebuild
753 +++ /dev/null
754 @@ -1,237 +0,0 @@
755 -# Copyright 1999-2019 Gentoo Authors
756 -# Distributed under the terms of the GNU General Public License v2
757 -
758 -EAPI=7
759 -
760 -inherit autotools flag-o-matic multilib
761 -
762 -MY_P="${PN}-$(ver_cut 1-3)"
763 -S=${WORKDIR}/${MY_P}
764 -
765 -SLOT=$(ver_cut 1-2)
766 -MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
767 -RUBYVERSION=${SLOT}.0
768 -
769 -DESCRIPTION="An object-oriented scripting language"
770 -HOMEPAGE="https://www.ruby-lang.org/"
771 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
772 -
773 -LICENSE="|| ( Ruby-BSD BSD-2 )"
774 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
775 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
776 -
777 -RDEPEND="
778 - berkdb? ( sys-libs/db:= )
779 - gdbm? ( sys-libs/gdbm:= )
780 - jemalloc? ( dev-libs/jemalloc )
781 - jit? ( || ( sys-devel/gcc:* sys-devel/clang:* ) )
782 - ssl? (
783 - !libressl? ( dev-libs/openssl:0= )
784 - libressl? ( dev-libs/libressl )
785 - )
786 - socks5? ( >=net-proxy/dante-1.1.13 )
787 - tk? (
788 - dev-lang/tcl:0=[threads]
789 - dev-lang/tk:0=[threads]
790 - )
791 - dev-libs/libyaml
792 - virtual/libffi:=
793 - sys-libs/readline:0=
794 - sys-libs/zlib
795 - >=app-eselect/eselect-ruby-20171225
796 -"
797 -
798 -DEPEND="${RDEPEND}"
799 -
800 -BUNDLED_GEMS="
801 - >=dev-ruby/did_you_mean-1.2.1[ruby_targets_ruby26]
802 - >=dev-ruby/minitest-5.11.3[ruby_targets_ruby26]
803 - >=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby26]
804 - >=dev-ruby/power_assert-1.1.3[ruby_targets_ruby26]
805 - >=dev-ruby/rake-12.3.2[ruby_targets_ruby26]
806 - >=dev-ruby/test-unit-3.2.9[ruby_targets_ruby26]
807 - >=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby26]
808 -"
809 -
810 -PDEPEND="
811 - ${BUNDLED_GEMS}
812 - virtual/rubygems[ruby_targets_ruby26]
813 - >=dev-ruby/bundler-1.17.2[ruby_targets_ruby26]
814 - >=dev-ruby/json-2.0.2[ruby_targets_ruby26]
815 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby26] )
816 - xemacs? ( app-xemacs/ruby-modes )"
817 -
818 -src_prepare() {
819 - # 005 does not compile bigdecimal and is questionable because it
820 - # compiles ruby in a non-standard way, may be dropped
821 - eapply "${FILESDIR}"/2.6/010*.patch
822 -
823 - einfo "Unbundling gems..."
824 - cd "$S"
825 - # Remove bundled gems that we will install via PDEPEND, bug
826 - # 539700.
827 - rm -fr gems/* || die
828 -
829 - einfo "Removing bundled libraries..."
830 - rm -fr ext/fiddle/libffi-3.2.1 || die
831 -
832 - eapply_user
833 -
834 - eautoreconf
835 -}
836 -
837 -src_configure() {
838 - local modules= myconf=
839 -
840 - # -fomit-frame-pointer makes ruby segfault, see bug #150413.
841 - filter-flags -fomit-frame-pointer
842 - # In many places aliasing rules are broken; play it safe
843 - # as it's risky with newer compilers to leave it as it is.
844 - append-flags -fno-strict-aliasing
845 - # SuperH needs this
846 - use sh && append-flags -mieee
847 -
848 - # Socks support via dante
849 - if use socks5 ; then
850 - # Socks support can't be disabled as long as SOCKS_SERVER is
851 - # set and socks library is present, so need to unset
852 - # SOCKS_SERVER in that case.
853 - unset SOCKS_SERVER
854 - fi
855 -
856 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
857 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
858 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
859 - fi
860 -
861 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
862 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
863 -
864 - # Determine which modules *not* to build depending in the USE flags.
865 - if ! use berkdb ; then
866 - modules="${modules},dbm"
867 - fi
868 - if ! use gdbm ; then
869 - modules="${modules},gdbm"
870 - fi
871 - if ! use ssl ; then
872 - modules="${modules},openssl"
873 - fi
874 - if ! use tk ; then
875 - modules="${modules},tk"
876 - fi
877 -
878 - # Provide an empty LIBPATHENV because we disable rpath but we do not
879 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
880 - # #564272
881 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
882 - --program-suffix=${MY_SUFFIX} \
883 - --with-soname=ruby${MY_SUFFIX} \
884 - --docdir=${EPREFIX}/usr/share/doc/${P} \
885 - --enable-shared \
886 - --enable-pthread \
887 - --disable-rpath \
888 - --with-out-ext="${modules}" \
889 - $(use_with jemalloc jemalloc) \
890 - $(use_enable jit jit-support ) \
891 - $(use_enable socks5 socks) \
892 - $(use_enable doc install-doc) \
893 - --enable-ipv6 \
894 - $(use_enable static-libs static) \
895 - $(use_enable static-libs install-static-library) \
896 - $(use_with static-libs static-linked-ext) \
897 - $(use_enable debug) \
898 - ${myconf} \
899 - --enable-option-checking=no \
900 - || die "econf failed"
901 -
902 - # Makefile is broken because it lacks -ldl
903 - rm -rf ext/-test-/popen_deadlock || die
904 -}
905 -
906 -src_compile() {
907 - emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS="" || die "emake failed"
908 -}
909 -
910 -src_test() {
911 - emake -j1 V=1 test || die "make test failed"
912 -
913 - elog "Ruby's make test has been run. Ruby also ships with a make check"
914 - elog "that cannot be run until after ruby has been installed."
915 - elog
916 - if use rubytests; then
917 - elog "You have enabled rubytests, so they will be installed to"
918 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
919 - elog "than root, and you must place them into a writeable directory."
920 - elog "Then call: "
921 - elog
922 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
923 - else
924 - elog "Enable the rubytests USE flag to install the make check tests"
925 - fi
926 -}
927 -
928 -src_install() {
929 - # Remove the remaining bundled gems. We do this late in the process
930 - # since they are used during the build to e.g. create the
931 - # documentation.
932 - rm -rf ext/json || die
933 - rm -rf lib/bundler* lib/rdoc/rdoc.gemspec || die
934 -
935 - # Ruby is involved in the install process, we don't want interference here.
936 - unset RUBYOPT
937 -
938 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
939 -
940 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
941 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
942 - for d in $(find "${S}/ext" -type d) ; do
943 - RUBYLIB="${RUBYLIB}:$d"
944 - done
945 - export LD_LIBRARY_PATH RUBYLIB
946 -
947 - # Create directory for the default gems
948 - local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
949 - mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
950 -
951 - emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install || die "make install failed"
952 -
953 - # Remove installed rubygems and rdoc copy
954 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
955 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
956 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
957 - rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
958 -
959 - if use doc; then
960 - emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc || die "make install-doc failed"
961 - fi
962 -
963 - if use examples; then
964 - insinto /usr/share/doc/${PF}
965 - doins -r sample
966 - fi
967 -
968 - dodoc ChangeLog NEWS doc/NEWS* README* || die
969 -
970 - if use rubytests; then
971 - pushd test
972 - insinto /usr/share/${PN}-${SLOT}/test
973 - doins -r .
974 - popd
975 - fi
976 -}
977 -
978 -pkg_postinst() {
979 - if [[ ! -n $(readlink "${EROOT}"usr/bin/ruby) ]] ; then
980 - eselect ruby set ruby${MY_SUFFIX}
981 - fi
982 -
983 - elog
984 - elog "To switch between available Ruby profiles, execute as root:"
985 - elog "\teselect ruby set ruby(23|24|...)"
986 - elog
987 -}
988 -
989 -pkg_postrm() {
990 - eselect ruby cleanup
991 -}