1 |
graaff 14/01/03 07:31:54 |
2 |
|
3 |
Modified: ruby-2.1.0.ebuild ChangeLog |
4 |
Added: ruby-2.0.0_p353-r1.ebuild |
5 |
Log: |
6 |
Fix location of CAPI documentation to be version-specific, fixing bug 496086. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 dev-lang/ruby/ruby-2.1.0.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby-2.1.0.ebuild?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby-2.1.0.ebuild?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby-2.1.0.ebuild?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: ruby-2.1.0.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.1.0.ebuild,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- ruby-2.1.0.ebuild 26 Dec 2013 09:24:39 -0000 1.1 |
24 |
+++ ruby-2.1.0.ebuild 3 Jan 2014 07:31:54 -0000 1.2 |
25 |
@@ -1,6 +1,6 @@ |
26 |
-# Copyright 1999-2013 Gentoo Foundation |
27 |
+# Copyright 1999-2014 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.1.0.ebuild,v 1.1 2013/12/26 09:24:39 graaff Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.1.0.ebuild,v 1.2 2014/01/03 07:31:54 graaff Exp $ |
31 |
|
32 |
EAPI=5 |
33 |
|
34 |
@@ -121,6 +121,7 @@ |
35 |
INSTALL="${EPREFIX}/usr/bin/install -c" econf \ |
36 |
--program-suffix=${MY_SUFFIX} \ |
37 |
--with-soname=ruby${MY_SUFFIX} \ |
38 |
+ --docdir=${EPREFIX}/usr/share/doc/${P} \ |
39 |
--enable-shared \ |
40 |
--enable-pthread \ |
41 |
--enable-psych \ |
42 |
|
43 |
|
44 |
|
45 |
1.632 dev-lang/ruby/ChangeLog |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.632&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.632&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ChangeLog?r1=1.631&r2=1.632 |
50 |
|
51 |
Index: ChangeLog |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v |
54 |
retrieving revision 1.631 |
55 |
retrieving revision 1.632 |
56 |
diff -u -r1.631 -r1.632 |
57 |
--- ChangeLog 29 Dec 2013 17:25:36 -0000 1.631 |
58 |
+++ ChangeLog 3 Jan 2014 07:31:54 -0000 1.632 |
59 |
@@ -1,6 +1,12 @@ |
60 |
# ChangeLog for dev-lang/ruby |
61 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.631 2013/12/29 17:25:36 maekke Exp $ |
63 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
64 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.632 2014/01/03 07:31:54 graaff Exp $ |
65 |
+ |
66 |
+*ruby-2.0.0_p353-r1 (03 Jan 2014) |
67 |
+ |
68 |
+ 03 Jan 2014; Hans de Graaff <graaff@g.o> +ruby-2.0.0_p353-r1.ebuild, |
69 |
+ ruby-2.1.0.ebuild: |
70 |
+ Fix location of CAPI documentation to be version-specific, fixing bug 496086. |
71 |
|
72 |
29 Dec 2013; Markus Meier <maekke@g.o> ruby-2.0.0_p247-r1.ebuild: |
73 |
arm stable, bug #483254 |
74 |
|
75 |
|
76 |
|
77 |
1.1 dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild |
78 |
|
79 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild?rev=1.1&view=markup |
80 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild?rev=1.1&content-type=text/plain |
81 |
|
82 |
Index: ruby-2.0.0_p353-r1.ebuild |
83 |
=================================================================== |
84 |
# Copyright 1999-2014 Gentoo Foundation |
85 |
# Distributed under the terms of the GNU General Public License v2 |
86 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild,v 1.1 2014/01/03 07:31:54 graaff Exp $ |
87 |
|
88 |
EAPI=5 |
89 |
|
90 |
#PATCHSET=1 |
91 |
|
92 |
inherit autotools eutils flag-o-matic multilib versionator |
93 |
|
94 |
RUBYPL=$(get_version_component_range 4) |
95 |
|
96 |
MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}" |
97 |
S=${WORKDIR}/${MY_P} |
98 |
|
99 |
SLOT=$(get_version_component_range 1-2) |
100 |
MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
101 |
RUBYVERSION=2.0.0 |
102 |
|
103 |
if [[ -n ${PATCHSET} ]]; then |
104 |
if [[ ${PVR} == ${PV} ]]; then |
105 |
PATCHSET="${PV}-r0.${PATCHSET}" |
106 |
else |
107 |
PATCHSET="${PVR}.${PATCHSET}" |
108 |
fi |
109 |
else |
110 |
PATCHSET="${PVR}" |
111 |
fi |
112 |
|
113 |
DESCRIPTION="An object-oriented scripting language" |
114 |
HOMEPAGE="http://www.ruby-lang.org/" |
115 |
SRC_URI="mirror://ruby/2.0/${MY_P}.tar.bz2 |
116 |
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
117 |
|
118 |
LICENSE="|| ( Ruby-BSD BSD-2 )" |
119 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
120 |
IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl tk xemacs ncurses +readline" |
121 |
|
122 |
RDEPEND=" |
123 |
berkdb? ( sys-libs/db ) |
124 |
gdbm? ( sys-libs/gdbm ) |
125 |
ssl? ( dev-libs/openssl ) |
126 |
socks5? ( >=net-proxy/dante-1.1.13 ) |
127 |
tk? ( dev-lang/tk[threads] ) |
128 |
ncurses? ( sys-libs/ncurses ) |
129 |
readline? ( sys-libs/readline ) |
130 |
dev-libs/libyaml |
131 |
virtual/libffi |
132 |
sys-libs/zlib |
133 |
>=app-admin/eselect-ruby-20100402 |
134 |
!<dev-ruby/rdoc-3.9.4 |
135 |
!<dev-ruby/rubygems-1.8.10-r1" |
136 |
|
137 |
DEPEND="${RDEPEND}" |
138 |
PDEPEND=" |
139 |
>=dev-ruby/rubygems-2.0.2[ruby_targets_ruby20] |
140 |
>=dev-ruby/json-1.7.7[ruby_targets_ruby20] |
141 |
>=dev-ruby/rake-0.9.6[ruby_targets_ruby20] |
142 |
rdoc? ( >=dev-ruby/rdoc-4.0.0[ruby_targets_ruby20] ) |
143 |
xemacs? ( app-xemacs/ruby-modes )" |
144 |
|
145 |
src_prepare() { |
146 |
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
147 |
epatch "${WORKDIR}/patches" |
148 |
|
149 |
# We can no longer unbundle all of rake because rubygems now depends |
150 |
# on this. We leave the actual rake code around to bootstrap |
151 |
# rubygems, but remove the bits that would cause a file collision. |
152 |
einfo "Unbundling gems..." |
153 |
cd "$S" |
154 |
rm -r \ |
155 |
{bin,lib}/rake lib/rake.rb man/rake.1 \ |
156 |
bin/gem || die "removal failed" |
157 |
|
158 |
# Fix a hardcoded lib path in configure script |
159 |
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
160 |
configure.in || die "sed failed" |
161 |
|
162 |
eautoreconf |
163 |
} |
164 |
|
165 |
src_configure() { |
166 |
local myconf= |
167 |
|
168 |
# -fomit-frame-pointer makes ruby segfault, see bug #150413. |
169 |
filter-flags -fomit-frame-pointer |
170 |
# In many places aliasing rules are broken; play it safe |
171 |
# as it's risky with newer compilers to leave it as it is. |
172 |
append-flags -fno-strict-aliasing |
173 |
# SuperH needs this |
174 |
use sh && append-flags -mieee |
175 |
|
176 |
# Socks support via dante |
177 |
if use socks5 ; then |
178 |
# Socks support can't be disabled as long as SOCKS_SERVER is |
179 |
# set and socks library is present, so need to unset |
180 |
# SOCKS_SERVER in that case. |
181 |
unset SOCKS_SERVER |
182 |
fi |
183 |
|
184 |
# Increase GC_MALLOC_LIMIT if set (default is 8000000) |
185 |
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
186 |
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
187 |
fi |
188 |
|
189 |
# ipv6 hack, bug 168939. Needs --enable-ipv6. |
190 |
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" |
191 |
|
192 |
# if use libedit; then |
193 |
# einfo "Using libedit to provide readline extension" |
194 |
# myconf="${myconf} --enable-libedit --with-readline" |
195 |
# elif use readline; then |
196 |
# einfo "Using readline to provide readline extension" |
197 |
# myconf="${myconf} --with-readline" |
198 |
# else |
199 |
# myconf="${myconf} --without-readline" |
200 |
# fi |
201 |
myconf="${myconf} $(use_with readline)" |
202 |
|
203 |
INSTALL="${EPREFIX}/usr/bin/install -c" econf \ |
204 |
--program-suffix=${MY_SUFFIX} \ |
205 |
--with-soname=ruby${MY_SUFFIX} \ |
206 |
--docdir=${EPREFIX}/usr/share/doc/${P} \ |
207 |
--enable-shared \ |
208 |
--enable-pthread \ |
209 |
--enable-psych \ |
210 |
--disable-rpath \ |
211 |
$(use_enable socks5 socks) \ |
212 |
$(use_enable doc install-doc) \ |
213 |
--enable-ipv6 \ |
214 |
$(use_enable debug) \ |
215 |
$(use_with berkdb dbm) \ |
216 |
$(use_with gdbm) \ |
217 |
$(use_with ssl openssl) \ |
218 |
$(use_with tk) \ |
219 |
$(use_with ncurses curses) \ |
220 |
${myconf} \ |
221 |
--enable-option-checking=no \ |
222 |
|| die "econf failed" |
223 |
} |
224 |
|
225 |
src_compile() { |
226 |
emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
227 |
} |
228 |
|
229 |
src_test() { |
230 |
emake -j1 V=1 test || die "make test failed" |
231 |
|
232 |
elog "Ruby's make test has been run. Ruby also ships with a make check" |
233 |
elog "that cannot be run until after ruby has been installed." |
234 |
elog |
235 |
if use rubytests; then |
236 |
elog "You have enabled rubytests, so they will be installed to" |
237 |
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
238 |
elog "than root, and you must place them into a writeable directory." |
239 |
elog "Then call: " |
240 |
elog |
241 |
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
242 |
else |
243 |
elog "Enable the rubytests USE flag to install the make check tests" |
244 |
fi |
245 |
} |
246 |
|
247 |
src_install() { |
248 |
# Remove the remaining bundled gems. We do this late in the process |
249 |
# since they are used during the build to e.g. create the |
250 |
# documentation. |
251 |
rm -rf ext/json || die |
252 |
|
253 |
# Ruby is involved in the install process, we don't want interference here. |
254 |
unset RUBYOPT |
255 |
|
256 |
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
257 |
|
258 |
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
259 |
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
260 |
for d in $(find "${S}/ext" -type d) ; do |
261 |
RUBYLIB="${RUBYLIB}:$d" |
262 |
done |
263 |
export LD_LIBRARY_PATH RUBYLIB |
264 |
|
265 |
emake V=1 DESTDIR="${D}" install || die "make install failed" |
266 |
|
267 |
# Remove installed rubygems copy |
268 |
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" |
269 |
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" |
270 |
rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" |
271 |
|
272 |
if use doc; then |
273 |
make DESTDIR="${D}" install-doc || die "make install-doc failed" |
274 |
fi |
275 |
|
276 |
if use examples; then |
277 |
insinto /usr/share/doc/${PF} |
278 |
doins -r sample |
279 |
fi |
280 |
|
281 |
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ |
282 |
"/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})" |
283 |
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ |
284 |
"/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})" |
285 |
|
286 |
dodoc ChangeLog NEWS doc/NEWS* README* || die |
287 |
|
288 |
if use rubytests; then |
289 |
pushd test |
290 |
insinto /usr/share/${PN}-${SLOT}/test |
291 |
doins -r . |
292 |
popd |
293 |
fi |
294 |
} |
295 |
|
296 |
pkg_postinst() { |
297 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
298 |
eselect ruby set ruby${MY_SUFFIX} |
299 |
fi |
300 |
|
301 |
elog |
302 |
elog "To switch between available Ruby profiles, execute as root:" |
303 |
elog "\teselect ruby set ruby(18|19|...)" |
304 |
elog |
305 |
} |
306 |
|
307 |
pkg_postrm() { |
308 |
eselect ruby cleanup |
309 |
} |