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, 07 Aug 2020 06:22:10
Message-Id: 1596781271.b25ed811873c3b87e26a835c8fba7b6c10390595.graaff@gentoo
1 commit: b25ed811873c3b87e26a835c8fba7b6c10390595
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 7 06:18:28 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 7 06:21:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b25ed811
7
8 dev-lang/ruby: cleanup
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
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.10.ebuild | 225 ---------------------------------------
15 2 files changed, 226 deletions(-)
16
17 diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest
18 index 8c1b5866ae5..f2fa1f24258 100644
19 --- a/dev-lang/ruby/Manifest
20 +++ b/dev-lang/ruby/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST ruby-2.4.10.tar.xz 10100664 BLAKE2B 7301f34b94bb6d88c0d049eed4220ddb290c877b130e90c822226bc454b3e72c90ae151db0e828068c8fe02b21cd41c8f3cd43d4e95ab688d2cd6f3f3840ea9d SHA512 11c7a9ea1353f752763b189815ac34674cc8ebf7141517838b7f040823e892780d94ec3091c1f5d1415f9bc1b838b7f6f9de13a706df7bef80ce3b146a7d6660
23 DIST ruby-2.5.8.tar.xz 11298404 BLAKE2B 3256c0448e72b63c0bd89f89a27fa9c09c8feed54d42cd79899b7d5cfe9dbc29ca708d12c630b3f52ff85b0c6a4011ae7ff0483d64b2fd445700a72a91028035 SHA512 2886be764a454425c5beef2777c64a70ee0d048b07896b327633d904f5077fea4299526689f9e2ac4dcd2fc4811cf9a6c8ce75367ed35d29dfe1a54222872e0d
24 DIST ruby-2.6.6.tar.xz 11567284 BLAKE2B 45e910dd9b128c46bff3003834c4fdcbbc2e2e4d3e44f298ff4356a285de2c375d6b6021a3aa28d89336b32a1655fa4a7c086d07f4a0f6bcd578a11dd4a894da SHA512 86caf93dbf61d03781767ab5375a7edf4761f13ba08ccfefe16c0a7550499237e7390c2f72a95d42670d4fe76b2401b4218936187c62ec1572799e9e04c50d62
25 DIST ruby-2.7.1.tar.xz 12003684 BLAKE2B 90a35c3e246cfe982a146be29a3d121d6e2c251ed96703dbc46b98c21e0e43e5445132e6119e584ae35f7193f063ff1b14822f947a4e07037c37fbba5e4038da SHA512 79f98b1ea98e0b10ec79da1883e8fc84d48ffe5c09ae945cbebde94365e35a589d919aac965f74d70ca7e21370ecee631ac5a8f9c4eac61d62f5aa629f27bf31
26
27 diff --git a/dev-lang/ruby/ruby-2.4.10.ebuild b/dev-lang/ruby/ruby-2.4.10.ebuild
28 deleted file mode 100644
29 index 7ea93eb0344..00000000000
30 --- a/dev-lang/ruby/ruby-2.4.10.ebuild
31 +++ /dev/null
32 @@ -1,225 +0,0 @@
33 -# Copyright 1999-2020 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="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
50 -
51 -LICENSE="|| ( Ruby-BSD BSD-2 )"
52 -KEYWORDS="~alpha amd64 arm arm64 ~mips ppc ppc64 s390 x86"
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 - dev-libs/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-r1[ruby_targets_ruby24] )
93 - xemacs? ( app-xemacs/ruby-modes )"
94 -
95 -src_prepare() {
96 - eapply "${FILESDIR}"/${SLOT}/{002,005,009,012}*.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 -
126 - # Socks support via dante
127 - if use socks5 ; then
128 - # Socks support can't be disabled as long as SOCKS_SERVER is
129 - # set and socks library is present, so need to unset
130 - # SOCKS_SERVER in that case.
131 - unset SOCKS_SERVER
132 - fi
133 -
134 - # Increase GC_MALLOC_LIMIT if set (default is 8000000)
135 - if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
136 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
137 - fi
138 -
139 - # ipv6 hack, bug 168939. Needs --enable-ipv6.
140 - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
141 -
142 - # Determine which modules *not* to build depending in the USE flags.
143 - if ! use berkdb ; then
144 - modules="${modules},dbm"
145 - fi
146 - if ! use gdbm ; then
147 - modules="${modules},gdbm"
148 - fi
149 - if ! use ssl ; then
150 - modules="${modules},openssl"
151 - fi
152 - if ! use tk ; then
153 - modules="${modules},tk"
154 - fi
155 -
156 - # Provide an empty LIBPATHENV because we disable rpath but we do not
157 - # need LD_LIBRARY_PATH by default since that breaks USE=multitarget
158 - # #564272
159 - INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
160 - --program-suffix=${MY_SUFFIX} \
161 - --with-soname=ruby${MY_SUFFIX} \
162 - --enable-shared \
163 - --enable-pthread \
164 - --disable-rpath \
165 - --with-out-ext="${modules}" \
166 - $(use_with jemalloc jemalloc) \
167 - $(use_enable socks5 socks) \
168 - $(use_enable doc install-doc) \
169 - --enable-ipv6 \
170 - $(use_enable static-libs static) \
171 - $(use_enable static-libs install-static-library) \
172 - $(use_with static-libs static-linked-ext) \
173 - $(use_enable debug) \
174 - ${myconf} \
175 - --enable-option-checking=no
176 -}
177 -
178 -src_compile() {
179 - emake V=1 EXTLDFLAGS="${LDFLAGS}"
180 -}
181 -
182 -src_test() {
183 - emake -j1 V=1 test
184 -
185 - elog "Ruby's make test has been run. Ruby also ships with a make check"
186 - elog "that cannot be run until after ruby has been installed."
187 - elog
188 - if use rubytests; then
189 - elog "You have enabled rubytests, so they will be installed to"
190 - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
191 - elog "than root, and you must place them into a writeable directory."
192 - elog "Then call: "
193 - elog
194 - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
195 - else
196 - elog "Enable the rubytests USE flag to install the make check tests"
197 - fi
198 -}
199 -
200 -src_install() {
201 - # Remove the remaining bundled gems. We do this late in the process
202 - # since they are used during the build to e.g. create the
203 - # documentation.
204 - rm -rf ext/json || die
205 -
206 - # Ruby is involved in the install process, we don't want interference here.
207 - unset RUBYOPT
208 -
209 - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
210 -
211 - LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
212 - RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
213 - for d in $(find "${S}/ext" -type d) ; do
214 - RUBYLIB="${RUBYLIB}:$d"
215 - done
216 - export LD_LIBRARY_PATH RUBYLIB
217 -
218 - emake V=1 DESTDIR="${D}" install
219 -
220 - # Remove installed rubygems and rdoc copy
221 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
222 - rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
223 - rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
224 - rm -rf "${ED}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
225 -
226 - if use doc; then
227 - make DESTDIR="${D}" install-doc || die "make install-doc failed"
228 - fi
229 -
230 - if use examples; then
231 - dodoc -r sample
232 - fi
233 -
234 - dodoc ChangeLog NEWS doc/NEWS* README*
235 -
236 - if use rubytests; then
237 - pushd test
238 - insinto /usr/share/${PN}-${SLOT}/test
239 - doins -r .
240 - popd
241 - fi
242 -}
243 -
244 -pkg_postinst() {
245 - if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
246 - eselect ruby set ruby${MY_SUFFIX}
247 - fi
248 -
249 - elog
250 - elog "To switch between available Ruby profiles, execute as root:"
251 - elog "\teselect ruby set ruby(23|24|...)"
252 - elog
253 -}
254 -
255 -pkg_postrm() {
256 - eselect ruby cleanup
257 -}