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: Mon, 29 Jul 2019 16:32:05
Message-Id: 1564417913.b7889b7a1621ba139b9e3187b320a70199a4e6c8.graaff@gentoo
1 commit: b7889b7a1621ba139b9e3187b320a70199a4e6c8
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 29 16:31:53 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 29 16:31:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7889b7a
7
8 dev-lang/ruby: cleanup
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.16
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-lang/ruby/Manifest | 1 -
14 dev-lang/ruby/ruby-2.4.5.ebuild | 230 ----------------------------------------
15 2 files changed, 231 deletions(-)
16
17 diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest
18 index 09c308ab752..f228ac05047 100644
19 --- a/dev-lang/ruby/Manifest
20 +++ b/dev-lang/ruby/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST ruby-2.4.5.tar.xz 10064712 BLAKE2B 0846125e617b43ea302b4c5309b20503577937865d445a6fee766323a188aa552d3a13740c3d38c7be812b19bffb2474021cb7b368cc144d51ea771552f62769 SHA512 658f676c623109f4c7499615e191c98c3dd72cfcaeeaf121337d0b8a33c5243145edd50ec5e2775f988e3cd19788984f105fa165e3049779066566f67172c1b4
23 DIST ruby-2.4.6.tar.xz 10005544 BLAKE2B 2af984d96dad4d7ef4d467b317bd4bb54b0614d96619377bc46f7588cd1c72bee47202b61d6ec54f00113fd25672d2831221dbf0a4491aa271541a34c634ee84 SHA512 eafb2257747f99e2ed262af142e71175b70f7cceaa4d1253b92c8337f075a9a58a2d93b029d75e11a9b124f112a8f0983273b2b30afc147b5cf71a8dbb5fa0ba
24 DIST ruby-2.5.5.tar.xz 11459832 BLAKE2B ced1105a87e7df8f82a65ca8d1d329d5a9d110d2f3f88b27a79262c4ac1484dda16d8646c0c03f18c1bb25f8b154075eb03a0614355ec62f677c2fa56ab3c956 SHA512 06b1d58536ebfacb7b56c1e6ed4b8ab816fadc4f48c845a452554cd262e7908199a30e5793f3cbaec2db56a8803aa5c6089abf7bf06c8fc47867e97870b7dfec
25 DIST ruby-2.6.2.tar.xz 11889840 BLAKE2B 817919c078869c2ad8d5c9d8c8b7ee77e8b0e3339c2ef662a94a666a859f762fa63c6f8534027abd368e91fe4e3e1fe68fa984cbf12f76cff8c0c66f0114914f SHA512 13f7d7b483a037378eac4bf4bebddc21d69f4e19e6bbb397dd53e7518037ae9a3aa5b41fc20bf1fe410803c6efc3a6a65a65af47648d3a93713f75cfe885326a
26
27 diff --git a/dev-lang/ruby/ruby-2.4.5.ebuild b/dev-lang/ruby/ruby-2.4.5.ebuild
28 deleted file mode 100644
29 index a55c9b9676f..00000000000
30 --- a/dev-lang/ruby/ruby-2.4.5.ebuild
31 +++ /dev/null
32 @@ -1,230 +0,0 @@
33 -# Copyright 1999-2019 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -inherit autotools flag-o-matic multilib
39 -
40 -MY_P="${PN}-$(ver_cut 1-3)"
41 -S=${WORKDIR}/${MY_P}
42 -
43 -SLOT=$(ver_cut 1-2)
44 -MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
45 -RUBYVERSION=${SLOT}.0
46 -
47 -DESCRIPTION="An object-oriented scripting language"
48 -HOMEPAGE="https://www.ruby-lang.org/"
49 -SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.xz"
50 -
51 -LICENSE="|| ( Ruby-BSD BSD-2 )"
52 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
53 -IUSE="berkdb debug doc examples gdbm ipv6 jemalloc libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
54 -
55 -RDEPEND="
56 - berkdb? ( sys-libs/db:= )
57 - gdbm? ( sys-libs/gdbm:= )
58 - jemalloc? ( dev-libs/jemalloc )
59 - ssl? (
60 - !libressl? ( dev-libs/openssl:0= )
61 - libressl? ( dev-libs/libressl )
62 - )
63 - socks5? ( >=net-proxy/dante-1.1.13 )
64 - tk? (
65 - dev-lang/tcl:0=[threads]
66 - dev-lang/tk:0=[threads]
67 - )
68 - dev-libs/libyaml
69 - virtual/libffi:=
70 - sys-libs/readline:0=
71 - sys-libs/zlib
72 - >=app-eselect/eselect-ruby-20161226
73 - !<dev-ruby/rdoc-3.9.4
74 - !<dev-ruby/rubygems-1.8.10-r1"
75 -
76 -DEPEND="${RDEPEND}"
77 -
78 -BUNDLED_GEMS="
79 - >=dev-ruby/did_you_mean-1.1.0:2.4[ruby_targets_ruby24]
80 - >=dev-ruby/minitest-5.10.1[ruby_targets_ruby24]
81 - >=dev-ruby/net-telnet-0.1.1[ruby_targets_ruby24]
82 - >=dev-ruby/power_assert-0.4.1[ruby_targets_ruby24]
83 - >=dev-ruby/rake-12.0.0[ruby_targets_ruby24]
84 - >=dev-ruby/test-unit-3.2.3[ruby_targets_ruby24]
85 - >=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24]
86 -"
87 -
88 -PDEPEND="
89 - ${BUNDLED_GEMS}
90 - virtual/rubygems[ruby_targets_ruby24]
91 - >=dev-ruby/json-2.0.2[ruby_targets_ruby24]
92 - rdoc? ( >=dev-ruby/rdoc-5.1.0[ruby_targets_ruby24] )
93 - xemacs? ( app-xemacs/ruby-modes )"
94 -
95 -src_prepare() {
96 - eapply "${FILESDIR}"/${SLOT}/{002,005,009}*.patch
97 -
98 - einfo "Unbundling gems..."
99 - cd "$S"
100 - # Remove bundled gems that we will install via PDEPEND, bug
101 - # 539700. Use explicit version numbers to ensure rm fails when they
102 - # change so we can update dependencies accordingly.
103 - 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
104 -
105 - einfo "Removing bundled libraries..."
106 - rm -fr ext/fiddle/libffi-3.2.1 || die
107 -
108 - # Fix a hardcoded lib path in configure script
109 - sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
110 - configure.in || die "sed failed"
111 -
112 - eapply_user
113 -
114 - eautoreconf
115 -}
116 -
117 -src_configure() {
118 - local modules= myconf=
119 -
120 - # -fomit-frame-pointer makes ruby segfault, see bug #150413.
121 - filter-flags -fomit-frame-pointer
122 - # In many places aliasing rules are broken; play it safe
123 - # as it's risky with newer compilers to leave it as it is.
124 - append-flags -fno-strict-aliasing
125 - # SuperH needs this
126 - use sh && append-flags -mieee
127 -
128 - # Socks support via dante
129 - if use socks5 ; then
130 - # Socks support can't be disabled as long as SOCKS_SERVER is
131 - # set and socks library is present, so need to unset
132 - # SOCKS_SERVER in that case.
133 - unset SOCKS_SERVER
134 - fi
135 -
136 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
137 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
138 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
139 - fi
140 -
141 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
142 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
143 -
144 - # Determine which modules *not* to build depending in the USE flags.
145 - if ! use berkdb ; then
146 - modules="${modules},dbm"
147 - fi
148 - if ! use gdbm ; then
149 - modules="${modules},gdbm"
150 - fi
151 - if ! use ssl ; then
152 - modules="${modules},openssl"
153 - fi
154 - if ! use tk ; then
155 - modules="${modules},tk"
156 - fi
157 -
158 - # Provide an empty LIBPATHENV because we disable rpath but we do not
159 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
160 - # #564272
161 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
162 - --program-suffix=${MY_SUFFIX} \
163 - --with-soname=ruby${MY_SUFFIX} \
164 - --docdir=${EPREFIX}/usr/share/doc/${P} \
165 - --enable-shared \
166 - --enable-pthread \
167 - --disable-rpath \
168 - --with-out-ext="${modules}" \
169 - $(use_with jemalloc jemalloc) \
170 - $(use_enable socks5 socks) \
171 - $(use_enable doc install-doc) \
172 - --enable-ipv6 \
173 - $(use_enable static-libs static) \
174 - $(use_enable static-libs install-static-library) \
175 - $(use_with static-libs static-linked-ext) \
176 - $(use_enable debug) \
177 - ${myconf} \
178 - --enable-option-checking=no \
179 - || die "econf failed"
180 -}
181 -
182 -src_compile() {
183 - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
184 -}
185 -
186 -src_test() {
187 - emake -j1 V=1 test || die "make test failed"
188 -
189 - elog "Ruby's make test has been run. Ruby also ships with a make check"
190 - elog "that cannot be run until after ruby has been installed."
191 - elog
192 - if use rubytests; then
193 - elog "You have enabled rubytests, so they will be installed to"
194 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
195 - elog "than root, and you must place them into a writeable directory."
196 - elog "Then call: "
197 - elog
198 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
199 - else
200 - elog "Enable the rubytests USE flag to install the make check tests"
201 - fi
202 -}
203 -
204 -src_install() {
205 - # Remove the remaining bundled gems. We do this late in the process
206 - # since they are used during the build to e.g. create the
207 - # documentation.
208 - rm -rf ext/json || die
209 -
210 - # Ruby is involved in the install process, we don't want interference here.
211 - unset RUBYOPT
212 -
213 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
214 -
215 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
216 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
217 - for d in $(find "${S}/ext" -type d) ; do
218 - RUBYLIB="${RUBYLIB}:$d"
219 - done
220 - export LD_LIBRARY_PATH RUBYLIB
221 -
222 - emake V=1 DESTDIR="${D}" install || die "make install failed"
223 -
224 - # Remove installed rubygems and rdoc copy
225 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
226 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
227 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
228 - rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
229 -
230 - if use doc; then
231 - make DESTDIR="${D}" install-doc || die "make install-doc failed"
232 - fi
233 -
234 - if use examples; then
235 - insinto /usr/share/doc/${PF}
236 - doins -r sample
237 - fi
238 -
239 - dodoc ChangeLog NEWS doc/NEWS* README* || die
240 -
241 - if use rubytests; then
242 - pushd test
243 - insinto /usr/share/${PN}-${SLOT}/test
244 - doins -r .
245 - popd
246 - fi
247 -}
248 -
249 -pkg_postinst() {
250 - if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
251 - eselect ruby set ruby${MY_SUFFIX}
252 - fi
253 -
254 - elog
255 - elog "To switch between available Ruby profiles, execute as root:"
256 - elog "\teselect ruby set ruby(23|24|...)"
257 - elog
258 -}
259 -
260 -pkg_postrm() {
261 - eselect ruby cleanup
262 -}