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