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