1 |
rbrown 08/03/05 11:35:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ruby-1.8.6_p114.ebuild |
5 |
Removed: ruby-1.8.4-r3.ebuild ruby-1.8.5_p113.ebuild |
6 |
Log: |
7 |
Version bump for #212264. Remove old ebuilds. |
8 |
(Portage version: 2.1.4.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.325 dev-lang/ruby/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.325&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.325&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?r1=1.324&r2=1.325 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v |
20 |
retrieving revision 1.324 |
21 |
retrieving revision 1.325 |
22 |
diff -u -r1.324 -r1.325 |
23 |
--- ChangeLog 17 Feb 2008 12:19:21 -0000 1.324 |
24 |
+++ ChangeLog 5 Mar 2008 11:35:24 -0000 1.325 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for dev-lang/ruby |
27 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.324 2008/02/17 12:19:21 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.325 2008/03/05 11:35:24 rbrown Exp $ |
30 |
+ |
31 |
+*ruby-1.8.6_p114 (05 Mar 2008) |
32 |
+ |
33 |
+ 05 Mar 2008; Richard Brown <rbrown@g.o> |
34 |
+ -files/ruby-1.8.4-glibc24-eaccess.diff, -files/ruby-1.8.4-yaml.diff, |
35 |
+ -files/ruby-1.8.5_p113-net-http-p114.patch, -ruby-1.8.4-r3.ebuild, |
36 |
+ -ruby-1.8.5_p113.ebuild, +ruby-1.8.6_p114.ebuild: |
37 |
+ Version bump for #212264. Remove old ebuilds. |
38 |
|
39 |
17 Feb 2008; Raúl Porcel <armin76@g.o> ruby-1.8.6_p111-r1.ebuild: |
40 |
alpha/ia64 stable wrt #208916 |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-lang/ruby/ruby-1.8.6_p114.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p114.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p114.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: ruby-1.8.6_p114.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p114.ebuild,v 1.1 2008/03/05 11:35:24 rbrown Exp $ |
54 |
|
55 |
WANT_AUTOCONF="latest" |
56 |
WANT_AUTOMAKE="latest" |
57 |
|
58 |
ONIGURUMA="onigd2_5_9" |
59 |
|
60 |
inherit autotools eutils flag-o-matic multilib versionator |
61 |
|
62 |
MY_P="${PN}-$(replace_version_separator 3 '-')" |
63 |
S=${WORKDIR}/${MY_P} |
64 |
|
65 |
SLOT=$(get_version_component_range 1-2) |
66 |
MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
67 |
|
68 |
DESCRIPTION="An object-oriented scripting language" |
69 |
HOMEPAGE="http://www.ruby-lang.org/" |
70 |
SRC_URI="ftp://ftp.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.bz2 |
71 |
cjk? ( http://www.geocities.jp/kosako3/oniguruma/archive/${ONIGURUMA}.tar.gz )" |
72 |
|
73 |
LICENSE="Ruby" |
74 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
75 |
IUSE="berkdb cjk debug doc emacs examples gdbm ipv6 rubytests socks5 ssl threads tk xemacs" |
76 |
|
77 |
RDEPEND=" |
78 |
berkdb? ( sys-libs/db ) |
79 |
gdbm? ( sys-libs/gdbm ) |
80 |
ssl? ( dev-libs/openssl ) |
81 |
socks5? ( >=net-proxy/dante-1.1.13 ) |
82 |
tk? ( dev-lang/tk ) |
83 |
>=dev-ruby/ruby-config-0.3.1 |
84 |
!=dev-lang/ruby-cvs-${SLOT}* |
85 |
!dev-ruby/rdoc |
86 |
!dev-ruby/rexml" |
87 |
DEPEND="${RDEPEND}" |
88 |
PDEPEND="emacs? ( app-emacs/ruby-mode ) |
89 |
xemacs? ( app-xemacs/ruby-modes )" |
90 |
|
91 |
PROVIDE="virtual/ruby" |
92 |
|
93 |
src_unpack() { |
94 |
unpack ${A} |
95 |
|
96 |
if use cjk ; then |
97 |
einfo "Applying ${ONIGURUMA}" |
98 |
pushd "${WORKDIR}/oniguruma" |
99 |
econf --with-rubydir="${S}" || die "oniguruma econf failed" |
100 |
emake $MY_SUFFIX || die "oniguruma emake failed" |
101 |
popd |
102 |
fi |
103 |
|
104 |
cd "${S}/ext/dl" |
105 |
epatch "${FILESDIR}/${PN}-1.8.6-memory-leak.diff" |
106 |
cd "${S}" |
107 |
|
108 |
epatch "${FILESDIR}/${PN}-1.8.6_p111-r13657.patch" |
109 |
|
110 |
# Fix a hardcoded lib path in configure script |
111 |
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
112 |
configure.in || die "sed failed" |
113 |
|
114 |
eautoreconf |
115 |
} |
116 |
|
117 |
src_compile() { |
118 |
# -fomit-frame-pointer makes ruby segfault, see bug #150413. |
119 |
filter-flags -fomit-frame-pointer |
120 |
# In many places aliasing rules are broken; play it safe |
121 |
# as it's risky with newer compilers to leave it as it is. |
122 |
append-flags -fno-strict-aliasing |
123 |
|
124 |
# Socks support via dante |
125 |
if use socks5 ; then |
126 |
# Socks support can't be disabled as long as SOCKS_SERVER is |
127 |
# set and socks library is present, so need to unset |
128 |
# SOCKS_SERVER in that case. |
129 |
unset SOCKS_SERVER |
130 |
fi |
131 |
|
132 |
# Increase GC_MALLOC_LIMIT if set (default is 8000000) |
133 |
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
134 |
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
135 |
fi |
136 |
|
137 |
econf --program-suffix=$MY_SUFFIX --enable-shared \ |
138 |
$(use_enable socks5 socks) \ |
139 |
$(use_enable doc install-doc) \ |
140 |
$(use_enable threads pthread) \ |
141 |
$(use_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 |
--with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \ |
149 |
|| die "econf failed" |
150 |
|
151 |
emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
152 |
} |
153 |
|
154 |
src_test() { |
155 |
emake -j1 test || die "make test failed" |
156 |
|
157 |
elog "Ruby's make test has been run. Ruby also ships with a make check" |
158 |
elog "that cannot be run until after ruby has been installed." |
159 |
elog |
160 |
if use rubytests; then |
161 |
elog "You have enabled rubytests, so they will be installed to" |
162 |
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
163 |
elog "than root, and you must place them into a writeable directory." |
164 |
elog "Then call: " |
165 |
elog |
166 |
elog "ruby -C /location/of/tests runner.rb" |
167 |
else |
168 |
elog "Enable the rubytests USE flag to install the make check tests" |
169 |
fi |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
174 |
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${SLOT}" |
175 |
for d in $(find "${S}/ext" -type d) ; do |
176 |
RUBYLIB="${RUBYLIB}:$d" |
177 |
done |
178 |
export LD_LIBRARY_PATH RUBYLIB |
179 |
|
180 |
emake DESTDIR="${D}" install || die "make install failed" |
181 |
|
182 |
MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
183 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']") |
184 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']") |
185 |
|
186 |
if use doc; then |
187 |
make DESTDIR="${D}" install-doc || die "make install-doc failed" |
188 |
fi |
189 |
|
190 |
if use examples; then |
191 |
dodir /usr/share/doc/${PF} |
192 |
cp -pPR sample "${D}/usr/share/doc/${PF}" |
193 |
fi |
194 |
|
195 |
dosym libruby$MY_SUFFIX$(get_libname ${PV%_*}) /usr/$(get_libdir)/libruby$(get_libname ${PV%.*}) |
196 |
dosym libruby$MY_SUFFIX$(get_libname ${PV%_*}) /usr/$(get_libdir)/libruby$(get_libname ${PV%_*}) |
197 |
|
198 |
dodoc ChangeLog NEWS README* ToDo |
199 |
|
200 |
if use rubytests; then |
201 |
dodir /usr/share/${PN}-${SLOT} |
202 |
cp -pPR test "${D}/usr/share/${PN}-${SLOT}" |
203 |
fi |
204 |
} |
205 |
|
206 |
pkg_postinst() { |
207 |
|
208 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
209 |
"${ROOT}usr/sbin/ruby-config" ruby$MY_SUFFIX |
210 |
fi |
211 |
elog |
212 |
elog "You can change the default ruby interpreter by ${ROOT}usr/sbin/ruby-config" |
213 |
elog |
214 |
} |
215 |
|
216 |
pkg_postrm() { |
217 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
218 |
"${ROOT}usr/sbin/ruby-config" ruby$MY_SUFFIX |
219 |
fi |
220 |
} |
221 |
|
222 |
|
223 |
|
224 |
-- |
225 |
gentoo-commits@l.g.o mailing list |