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