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