1 |
a3li 10/05/01 10:25:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ruby-1.9.1_p376.ebuild |
5 |
Log: |
6 |
Version bump. Fixes security bugs 296052 and 300468. No longer installs rubygems or auto_gem.rb. Use dev-ruby/rubygems[ruby_targets_ruby19] instead. |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.445 dev-lang/ruby/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.445&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.445&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?r1=1.444&r2=1.445 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v |
19 |
retrieving revision 1.444 |
20 |
retrieving revision 1.445 |
21 |
diff -u -r1.444 -r1.445 |
22 |
--- ChangeLog 13 Jan 2010 19:55:54 -0000 1.444 |
23 |
+++ ChangeLog 1 May 2010 10:25:23 -0000 1.445 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-lang/ruby |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.444 2010/01/13 19:55:54 a3li Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.445 2010/05/01 10:25:23 a3li Exp $ |
29 |
+ |
30 |
+*ruby-1.9.1_p376 (01 May 2010) |
31 |
+ |
32 |
+ 01 May 2010; Alex Legler <a3li@g.o> +ruby-1.9.1_p376.ebuild: |
33 |
+ Version bump. Fixes security bugs 296052 and 300468. No longer installs |
34 |
+ rubygems or auto_gem.rb. Use dev-ruby/rubygems[ruby_targets_ruby19] |
35 |
+ instead. |
36 |
|
37 |
13 Jan 2010; Alex Legler <a3li@g.o> -ruby-1.8.6_p369.ebuild, |
38 |
-ruby-1.8.7_p174-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-lang/ruby/ruby-1.9.1_p376.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.9.1_p376.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.9.1_p376.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ruby-1.9.1_p376.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.1_p376.ebuild,v 1.1 2010/05/01 10:25:23 a3li Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
|
55 |
inherit autotools eutils flag-o-matic multilib versionator |
56 |
|
57 |
# Add patchlevel |
58 |
MY_P="${P/_/-}" |
59 |
|
60 |
# 1.9.1.0 -> 1.9 |
61 |
SLOT=$(get_version_component_range 1-2) |
62 |
|
63 |
# 1.9.1.0 -> 1.9.1 (used in libdirs) |
64 |
RUBYVERSION=$(get_version_component_range 1-3) |
65 |
|
66 |
# 1.9 -> 19 |
67 |
MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
68 |
|
69 |
DESCRIPTION="An object-oriented scripting language" |
70 |
HOMEPAGE="http://www.ruby-lang.org/" |
71 |
SRC_URI="mirror://ruby/${MY_P}.tar.bz2 |
72 |
http://dev.a3li.li/gentoo/distfiles/${PN}-patches-${PVR}.tar.bz2" |
73 |
|
74 |
LICENSE="|| ( Ruby GPL-2 )" |
75 |
KEYWORDS="~amd64 ~hppa ~x86 ~x86-fbsd" |
76 |
IUSE="berkdb debug doc emacs examples gdbm ipv6 rubytests socks5 ssl tk xemacs" |
77 |
|
78 |
RDEPEND=" |
79 |
berkdb? ( sys-libs/db ) |
80 |
gdbm? ( sys-libs/gdbm ) |
81 |
ssl? ( dev-libs/openssl ) |
82 |
socks5? ( >=net-proxy/dante-1.1.13 ) |
83 |
tk? ( dev-lang/tk[threads] ) |
84 |
>=app-admin/eselect-ruby-20100402 |
85 |
!=dev-lang/ruby-cvs-${SLOT}* |
86 |
!<dev-ruby/rdoc-2 |
87 |
!dev-ruby/rexml" |
88 |
DEPEND="${RDEPEND}" |
89 |
PDEPEND=" |
90 |
emacs? ( app-emacs/ruby-mode ) |
91 |
xemacs? ( app-xemacs/ruby-modes )" |
92 |
|
93 |
PROVIDE="virtual/ruby" |
94 |
|
95 |
S="${WORKDIR}/${MY_P}" |
96 |
|
97 |
src_prepare() { |
98 |
cd "${S}" |
99 |
|
100 |
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
101 |
epatch "${WORKDIR}/patches-${PVR}" |
102 |
|
103 |
einfo "Removing rake and rubygems..." |
104 |
# Strip rake and rubygems |
105 |
rm -rf bin/rake lib/rake.rb lib/rake || die "rm rake failed" |
106 |
rm -rf bin/gem || die "rm gem failed" |
107 |
|
108 |
# Fix a hardcoded lib path in configure script |
109 |
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
110 |
configure.in || die "sed failed" |
111 |
|
112 |
eautoreconf |
113 |
} |
114 |
|
115 |
src_configure() { |
116 |
# -fomit-frame-pointer makes ruby segfault, see bug #150413. |
117 |
filter-flags -fomit-frame-pointer |
118 |
# In many places aliasing rules are broken; play it safe |
119 |
# as it's risky with newer compilers to leave it as it is. |
120 |
append-flags -fno-strict-aliasing |
121 |
|
122 |
# Socks support via dante |
123 |
if use socks5 ; then |
124 |
# Socks support can't be disabled as long as SOCKS_SERVER is |
125 |
# set and socks library is present, so need to unset |
126 |
# SOCKS_SERVER in that case. |
127 |
unset SOCKS_SERVER |
128 |
fi |
129 |
|
130 |
# Increase GC_MALLOC_LIMIT if set (default is 8000000) |
131 |
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
132 |
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
133 |
fi |
134 |
|
135 |
# ipv6 hack, bug 168939. Needs --enable-ipv6. |
136 |
use ipv6 || myconf="--with-lookup-order-hack=INET" |
137 |
|
138 |
econf --program-suffix=${MY_SUFFIX} --enable-shared --enable-pthread \ |
139 |
$(use_enable socks5 socks) \ |
140 |
$(use_enable doc install-doc) \ |
141 |
--enable-ipv6 \ |
142 |
$(use_enable debug) \ |
143 |
$(use_with berkdb dbm) \ |
144 |
$(use_with gdbm) \ |
145 |
$(use_with ssl openssl) \ |
146 |
$(use_with tk) \ |
147 |
${myconf} \ |
148 |
--enable-option-checking=no \ |
149 |
|| die "econf failed" |
150 |
} |
151 |
|
152 |
src_compile() { |
153 |
emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
154 |
} |
155 |
|
156 |
src_test() { |
157 |
emake test || die "make test failed" |
158 |
|
159 |
elog "Ruby's make test has been run. Ruby also ships with a make check" |
160 |
elog "that cannot be run until after ruby has been installed." |
161 |
elog |
162 |
if use rubytests; then |
163 |
elog "You have enabled rubytests, so they will be installed to" |
164 |
elog "/usr/share/${PN}-${RUBYVERSION}/test. To run them you must be a user other" |
165 |
elog "than root, and you must place them into a writeable directory." |
166 |
elog "Then call: " |
167 |
elog |
168 |
elog "ruby19 -C /location/of/tests runner.rb" |
169 |
else |
170 |
elog "Enable the rubytests USE flag to install the make check tests" |
171 |
fi |
172 |
} |
173 |
|
174 |
src_install() { |
175 |
# Ruby is involved in the install process, we don't want interference here. |
176 |
unset RUBYOPT |
177 |
|
178 |
# Creating the rubygems directories, bug #230163 once more. |
179 |
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
180 |
|
181 |
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
182 |
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
183 |
for d in $(find "${S}/ext" -type d) ; do |
184 |
RUBYLIB="${RUBYLIB}:$d" |
185 |
done |
186 |
export LD_LIBRARY_PATH RUBYLIB |
187 |
|
188 |
emake DESTDIR="${D}" install || die "make install failed" |
189 |
|
190 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']") |
191 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']") |
192 |
|
193 |
if use doc; then |
194 |
make DESTDIR="${D}" install-doc || die "make install-doc failed" |
195 |
fi |
196 |
|
197 |
if use examples; then |
198 |
dodir /usr/share/doc/${PF} |
199 |
cp -pPR sample "${D}/usr/share/doc/${PF}" |
200 |
fi |
201 |
|
202 |
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ |
203 |
"/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})" |
204 |
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ |
205 |
"/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})" |
206 |
|
207 |
dodoc ChangeLog NEWS doc/NEWS-1.8.7 README* ToDo |
208 |
|
209 |
if use rubytests; then |
210 |
dodir /usr/share/${PN}-${RUBYVERSION} |
211 |
cp -pPR test "${D}/usr/share/${PN}-${RUBYVERSION}" |
212 |
fi |
213 |
} |
214 |
|
215 |
pkg_postinst() { |
216 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
217 |
eselect ruby set ruby${MY_SUFFIX} |
218 |
fi |
219 |
|
220 |
elog |
221 |
elog "To switch between available Ruby profiles, execute as root:" |
222 |
elog "\teselect ruby set ruby(18|19|...)" |
223 |
elog |
224 |
} |
225 |
|
226 |
pkg_postrm() { |
227 |
eselect ruby cleanup |
228 |
} |