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