1 |
a3li 09/06/18 13:12:33 |
2 |
|
3 |
Modified: ruby-1.8.6_p369.ebuild ChangeLog |
4 |
Added: ruby-1.8.7_p174.ebuild |
5 |
Removed: ruby-1.8.7_p173.ebuild |
6 |
Log: |
7 |
Patchlevel bump, removing old, cleanup. |
8 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.9 dev-lang/ruby/ruby-1.8.6_p369.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p369.ebuild?rev=1.9&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p369.ebuild?rev=1.9&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p369.ebuild?r1=1.8&r2=1.9 |
16 |
|
17 |
Index: ruby-1.8.6_p369.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p369.ebuild,v |
20 |
retrieving revision 1.8 |
21 |
retrieving revision 1.9 |
22 |
diff -u -r1.8 -r1.9 |
23 |
--- ruby-1.8.6_p369.ebuild 17 Jun 2009 15:45:48 -0000 1.8 |
24 |
+++ ruby-1.8.6_p369.ebuild 18 Jun 2009 13:12:32 -0000 1.9 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2009 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p369.ebuild,v 1.8 2009/06/17 15:45:48 ranger Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p369.ebuild,v 1.9 2009/06/18 13:12:32 a3li Exp $ |
30 |
|
31 |
inherit autotools eutils flag-o-matic multilib versionator |
32 |
|
33 |
@@ -127,6 +127,9 @@ |
34 |
} |
35 |
|
36 |
src_install() { |
37 |
+ # Ruby is involved in the install process, we don't want interference here. |
38 |
+ unset RUBYOPT |
39 |
+ |
40 |
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
41 |
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${SLOT}" |
42 |
for d in $(find "${S}/ext" -type d) ; do |
43 |
|
44 |
|
45 |
|
46 |
1.415 dev-lang/ruby/ChangeLog |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.415&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.415&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?r1=1.414&r2=1.415 |
51 |
|
52 |
Index: ChangeLog |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v |
55 |
retrieving revision 1.414 |
56 |
retrieving revision 1.415 |
57 |
diff -u -r1.414 -r1.415 |
58 |
--- ChangeLog 17 Jun 2009 15:45:48 -0000 1.414 |
59 |
+++ ChangeLog 18 Jun 2009 13:12:32 -0000 1.415 |
60 |
@@ -1,6 +1,14 @@ |
61 |
# ChangeLog for dev-lang/ruby |
62 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.414 2009/06/17 15:45:48 ranger Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.415 2009/06/18 13:12:32 a3li Exp $ |
65 |
+ |
66 |
+*ruby-1.8.7_p174 (18 Jun 2009) |
67 |
+ |
68 |
+ 18 Jun 2009; Alex Legler <a3li@g.o> ruby-1.8.6_p369.ebuild, |
69 |
+ -ruby-1.8.7_p173.ebuild, +ruby-1.8.7_p174.ebuild: |
70 |
+ Replacing 187_p173 with _p174 because of a regression. Unifying the |
71 |
+ ebuilds by adding unset RUBYOPT to the 186 ebuild. Migrated 187_p174 to |
72 |
+ patchsets. |
73 |
|
74 |
17 Jun 2009; Brent Baude <ranger@g.o> ruby-1.8.6_p369.ebuild: |
75 |
Marking ruby-1.8.6_p369 ppc64 for bug 273213 |
76 |
|
77 |
|
78 |
|
79 |
1.1 dev-lang/ruby/ruby-1.8.7_p174.ebuild |
80 |
|
81 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p174.ebuild?rev=1.1&view=markup |
82 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p174.ebuild?rev=1.1&content-type=text/plain |
83 |
|
84 |
Index: ruby-1.8.7_p174.ebuild |
85 |
=================================================================== |
86 |
# Copyright 1999-2009 Gentoo Foundation |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p174.ebuild,v 1.1 2009/06/18 13:12:32 a3li Exp $ |
89 |
|
90 |
inherit autotools eutils flag-o-matic multilib versionator |
91 |
|
92 |
MY_P="${PN}-$(replace_version_separator 3 '-')" |
93 |
S=${WORKDIR}/${MY_P} |
94 |
|
95 |
SLOT=$(get_version_component_range 1-2) |
96 |
MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
97 |
|
98 |
DESCRIPTION="An object-oriented scripting language" |
99 |
HOMEPAGE="http://www.ruby-lang.org/" |
100 |
SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2 |
101 |
http://dev.a3li.info/gentoo/distfiles/${PN}-patches-${PV}.tar.bz2" |
102 |
|
103 |
LICENSE="|| ( Ruby GPL-2 )" |
104 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
105 |
IUSE="berkdb debug doc emacs examples gdbm ipv6 rubytests socks5 ssl threads tk xemacs" |
106 |
|
107 |
RDEPEND=" |
108 |
berkdb? ( sys-libs/db ) |
109 |
gdbm? ( sys-libs/gdbm ) |
110 |
ssl? ( dev-libs/openssl ) |
111 |
socks5? ( >=net-proxy/dante-1.1.13 ) |
112 |
tk? ( dev-lang/tk ) |
113 |
app-admin/eselect-ruby |
114 |
!=dev-lang/ruby-cvs-${SLOT}* |
115 |
!<dev-ruby/rdoc-2 |
116 |
!dev-ruby/rexml" |
117 |
DEPEND="${RDEPEND}" |
118 |
PDEPEND="emacs? ( app-emacs/ruby-mode ) |
119 |
xemacs? ( app-xemacs/ruby-modes )" |
120 |
|
121 |
PROVIDE="virtual/ruby" |
122 |
|
123 |
pkg_setup() { |
124 |
use tk || return |
125 |
|
126 |
# Note for EAPI-2 lovers: We'd like to show that custom message. |
127 |
# *If* you can make USE dependencies show that, too, feel free to migrate. |
128 |
if (use threads && ! built_with_use dev-lang/tk threads) \ |
129 |
|| (! use threads && built_with_use dev-lang/tk threads) ; then |
130 |
eerror |
131 |
eerror "You have Tk support enabled." |
132 |
eerror |
133 |
eerror "Ruby and Tk need the same 'threads' USE flag settings." |
134 |
eerror "Either change the USE flag on dev-lang/ruby or on dev-lang/tk" |
135 |
eerror "and recompile tk." |
136 |
|
137 |
die "threads USE flag mismatch" |
138 |
fi |
139 |
} |
140 |
|
141 |
src_unpack() { |
142 |
unpack ${A} |
143 |
cd "${S}" |
144 |
|
145 |
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
146 |
epatch "${WORKDIR}/patches-${PV}" |
147 |
|
148 |
# Fix a hardcoded lib path in configure script |
149 |
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
150 |
configure.in || die "sed failed" |
151 |
|
152 |
eautoreconf |
153 |
} |
154 |
|
155 |
src_compile() { |
156 |
# -fomit-frame-pointer makes ruby segfault, see bug #150413. |
157 |
filter-flags -fomit-frame-pointer |
158 |
# In many places aliasing rules are broken; play it safe |
159 |
# as it's risky with newer compilers to leave it as it is. |
160 |
append-flags -fno-strict-aliasing |
161 |
|
162 |
# Socks support via dante |
163 |
if use socks5 ; then |
164 |
# Socks support can't be disabled as long as SOCKS_SERVER is |
165 |
# set and socks library is present, so need to unset |
166 |
# SOCKS_SERVER in that case. |
167 |
unset SOCKS_SERVER |
168 |
fi |
169 |
|
170 |
# Increase GC_MALLOC_LIMIT if set (default is 8000000) |
171 |
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
172 |
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
173 |
fi |
174 |
|
175 |
econf --program-suffix=$MY_SUFFIX --enable-shared \ |
176 |
$(use_enable socks5 socks) \ |
177 |
$(use_enable doc install-doc) \ |
178 |
$(use_enable threads pthread) \ |
179 |
$(use_enable ipv6) \ |
180 |
$(use_enable debug) \ |
181 |
$(use_with berkdb dbm) \ |
182 |
$(use_with gdbm) \ |
183 |
$(use_with ssl openssl) \ |
184 |
$(use_with tk) \ |
185 |
${myconf} \ |
186 |
--with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \ |
187 |
--enable-option-checking=no \ |
188 |
|| die "econf failed" |
189 |
|
190 |
emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
191 |
} |
192 |
|
193 |
src_test() { |
194 |
emake -j1 test || die "make test failed" |
195 |
|
196 |
elog "Ruby's make test has been run. Ruby also ships with a make check" |
197 |
elog "that cannot be run until after ruby has been installed." |
198 |
elog |
199 |
if use rubytests; then |
200 |
elog "You have enabled rubytests, so they will be installed to" |
201 |
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
202 |
elog "than root, and you must place them into a writeable directory." |
203 |
elog "Then call: " |
204 |
elog |
205 |
elog "ruby -C /location/of/tests runner.rb" |
206 |
else |
207 |
elog "Enable the rubytests USE flag to install the make check tests" |
208 |
fi |
209 |
} |
210 |
|
211 |
src_install() { |
212 |
# Ruby is involved in the install process, we don't want interference here. |
213 |
unset RUBYOPT |
214 |
|
215 |
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
216 |
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${SLOT}" |
217 |
for d in $(find "${S}/ext" -type d) ; do |
218 |
RUBYLIB="${RUBYLIB}:$d" |
219 |
done |
220 |
export LD_LIBRARY_PATH RUBYLIB |
221 |
|
222 |
emake DESTDIR="${D}" install || die "make install failed" |
223 |
|
224 |
MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
225 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']") |
226 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']") |
227 |
|
228 |
if use doc; then |
229 |
make DESTDIR="${D}" install-doc || die "make install-doc failed" |
230 |
fi |
231 |
|
232 |
if use examples; then |
233 |
dodir /usr/share/doc/${PF} |
234 |
cp -pPR sample "${D}/usr/share/doc/${PF}" |
235 |
fi |
236 |
|
237 |
dosym libruby$MY_SUFFIX$(get_libname ${PV%_*}) /usr/$(get_libdir)/libruby$(get_libname ${PV%.*}) |
238 |
dosym libruby$MY_SUFFIX$(get_libname ${PV%_*}) /usr/$(get_libdir)/libruby$(get_libname ${PV%_*}) |
239 |
|
240 |
dodoc ChangeLog NEWS README* ToDo |
241 |
|
242 |
if use rubytests; then |
243 |
dodir /usr/share/${PN}-${SLOT} |
244 |
cp -pPR test "${D}/usr/share/${PN}-${SLOT}" |
245 |
fi |
246 |
} |
247 |
|
248 |
pkg_postinst() { |
249 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
250 |
eselect ruby set ruby${MY_SUFFIX} |
251 |
fi |
252 |
|
253 |
elog |
254 |
elog "This ebuild is compatible to eselect-ruby" |
255 |
elog "To switch between available Ruby profiles, execute as root:" |
256 |
elog "\teselect ruby set ruby(18|19|...)" |
257 |
elog |
258 |
} |
259 |
|
260 |
pkg_postrm() { |
261 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
262 |
eselect ruby set ruby${MY_SUFFIX} |
263 |
fi |
264 |
} |