1 |
a3li 11/08/30 20:01:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ruby-1.8.7_p352.ebuild |
5 |
Removed: ruby-1.8.7_p334.ebuild |
6 |
Log: |
7 |
Patchlevel bump for ruby:1.8. Removing old version |
8 |
|
9 |
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.504 dev-lang/ruby/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.504&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.504&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ChangeLog?r1=1.503&r2=1.504 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v |
21 |
retrieving revision 1.503 |
22 |
retrieving revision 1.504 |
23 |
diff -u -r1.503 -r1.504 |
24 |
--- ChangeLog 30 Aug 2011 19:35:59 -0000 1.503 |
25 |
+++ ChangeLog 30 Aug 2011 20:01:47 -0000 1.504 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for dev-lang/ruby |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.503 2011/08/30 19:35:59 a3li Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.504 2011/08/30 20:01:47 a3li Exp $ |
31 |
+ |
32 |
+*ruby-1.8.7_p352 (30 Aug 2011) |
33 |
+ |
34 |
+ 30 Aug 2011; Alex Legler <a3li@g.o> -ruby-1.8.7_p334.ebuild, |
35 |
+ +ruby-1.8.7_p352.ebuild: |
36 |
+ Patchlevel bump for ruby:1.8. Removing old version |
37 |
|
38 |
*ruby-1.9.2_p290 (30 Aug 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-lang/ruby/ruby-1.8.7_p352.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p352.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p352.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ruby-1.8.7_p352.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7_p352.ebuild,v 1.1 2011/08/30 20:01:47 a3li Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
|
56 |
inherit autotools eutils flag-o-matic multilib versionator |
57 |
|
58 |
MY_P="${PN}-$(replace_version_separator 3 '-')" |
59 |
S=${WORKDIR}/${MY_P} |
60 |
|
61 |
SLOT=$(get_version_component_range 1-2) |
62 |
MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
63 |
# 1.8 and 1.9 series disagree on this |
64 |
RUBYVERSION=$(get_version_component_range 1-2) |
65 |
|
66 |
if [[ -n ${PATCHSET} ]]; then |
67 |
if [[ ${PVR} == ${PV} ]]; then |
68 |
PATCHSET="${PV}-r0.${PATCHSET}" |
69 |
else |
70 |
PATCHSET="${PVR}.${PATCHSET}" |
71 |
fi |
72 |
else |
73 |
PATCHSET="${PVR}" |
74 |
fi |
75 |
|
76 |
DESCRIPTION="An object-oriented scripting language" |
77 |
HOMEPAGE="http://www.ruby-lang.org/" |
78 |
SRC_URI="mirror://ruby/${SLOT}/${MY_P}.tar.bz2 |
79 |
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" |
80 |
|
81 |
LICENSE="|| ( Ruby GPL-2 )" |
82 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
83 |
IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit" |
84 |
|
85 |
RDEPEND=" |
86 |
berkdb? ( sys-libs/db ) |
87 |
gdbm? ( sys-libs/gdbm ) |
88 |
ssl? ( >=dev-libs/openssl-0.9.8m ) |
89 |
socks5? ( >=net-proxy/dante-1.1.13 ) |
90 |
tk? ( dev-lang/tk[threads=] ) |
91 |
ncurses? ( sys-libs/ncurses ) |
92 |
libedit? ( dev-libs/libedit ) |
93 |
!libedit? ( readline? ( sys-libs/readline ) ) |
94 |
sys-libs/zlib |
95 |
>=app-admin/eselect-ruby-20100603 |
96 |
!=dev-lang/ruby-cvs-${SLOT}* |
97 |
!<dev-ruby/rdoc-2 |
98 |
!dev-ruby/rexml" |
99 |
DEPEND="${RDEPEND}" |
100 |
PDEPEND="xemacs? ( app-xemacs/ruby-modes )" |
101 |
|
102 |
src_prepare() { |
103 |
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ |
104 |
epatch "${WORKDIR}/patches" |
105 |
|
106 |
# Fix a hardcoded lib path in configure script |
107 |
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
108 |
configure.in || die "sed failed" |
109 |
|
110 |
eautoreconf |
111 |
} |
112 |
|
113 |
src_configure() { |
114 |
local myconf= |
115 |
|
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="${myconf} --with-lookup-order-hack=INET" |
137 |
|
138 |
if use libedit; then |
139 |
einfo "Using libedit to provide readline extension" |
140 |
myconf="${myconf} --enable-libedit --with-readline" |
141 |
elif use readline; then |
142 |
einfo "Using readline to provide readline extension" |
143 |
myconf="${myconf} --with-readline" |
144 |
else |
145 |
myconf="${myconf} --without-readline" |
146 |
fi |
147 |
|
148 |
econf \ |
149 |
--program-suffix="${MY_SUFFIX}" \ |
150 |
--enable-shared \ |
151 |
$(use_enable socks5 socks) \ |
152 |
$(use_enable doc install-doc) \ |
153 |
$(use_enable threads pthread) \ |
154 |
--enable-ipv6 \ |
155 |
$(use_enable debug) \ |
156 |
$(use_with berkdb dbm) \ |
157 |
$(use_with gdbm) \ |
158 |
$(use_with ssl openssl) \ |
159 |
$(use_with tk) \ |
160 |
$(use_with ncurses curses) \ |
161 |
${myconf} \ |
162 |
--with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \ |
163 |
--enable-option-checking=no \ |
164 |
|| die "econf failed" |
165 |
} |
166 |
|
167 |
src_compile() { |
168 |
emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
169 |
} |
170 |
|
171 |
src_test() { |
172 |
emake -j1 test || die "make test failed" |
173 |
|
174 |
elog "Ruby's make test has been run. Ruby also ships with a make check" |
175 |
elog "that cannot be run until after ruby has been installed." |
176 |
elog |
177 |
if use rubytests; then |
178 |
elog "You have enabled rubytests, so they will be installed to" |
179 |
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
180 |
elog "than root, and you must place them into a writeable directory." |
181 |
elog "Then call: " |
182 |
elog |
183 |
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" |
184 |
else |
185 |
elog "Enable the rubytests USE flag to install the make check tests" |
186 |
fi |
187 |
} |
188 |
|
189 |
src_install() { |
190 |
# Ruby is involved in the install process, we don't want interference here. |
191 |
unset RUBYOPT |
192 |
|
193 |
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
194 |
|
195 |
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" |
196 |
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" |
197 |
for d in $(find "${S}/ext" -type d) ; do |
198 |
RUBYLIB="${RUBYLIB}:$d" |
199 |
done |
200 |
export LD_LIBRARY_PATH RUBYLIB |
201 |
|
202 |
emake DESTDIR="${D}" install || die "make install failed" |
203 |
|
204 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']") |
205 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']") |
206 |
|
207 |
if use doc; then |
208 |
make DESTDIR="${D}" install-doc || die "make install-doc failed" |
209 |
fi |
210 |
|
211 |
if use examples; then |
212 |
insinto /usr/share/doc/${PF} |
213 |
doins -r sample |
214 |
fi |
215 |
|
216 |
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ |
217 |
"/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})" |
218 |
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ |
219 |
"/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})" |
220 |
|
221 |
dodoc ChangeLog NEWS README* ToDo || die |
222 |
|
223 |
if use rubytests; then |
224 |
pushd test |
225 |
insinto /usr/share/${PN}-${SLOT}/test |
226 |
doins -r . |
227 |
popd |
228 |
fi |
229 |
} |
230 |
|
231 |
pkg_postinst() { |
232 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
233 |
eselect ruby set ruby${MY_SUFFIX} |
234 |
fi |
235 |
|
236 |
elog |
237 |
elog "To switch between available Ruby profiles, execute as root:" |
238 |
elog "\teselect ruby set ruby(18|19|...)" |
239 |
elog |
240 |
} |
241 |
|
242 |
pkg_postrm() { |
243 |
eselect ruby cleanup |
244 |
} |