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