1 |
caleb 08/06/20 15:06:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ruby-1.8.6_p230.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.1.5.2) |
8 |
|
9 |
Revision Changes Path |
10 |
1.336 dev-lang/ruby/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.336&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.336&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?r1=1.335&r2=1.336 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v |
19 |
retrieving revision 1.335 |
20 |
retrieving revision 1.336 |
21 |
diff -u -r1.335 -r1.336 |
22 |
--- ChangeLog 10 Jun 2008 13:23:02 -0000 1.335 |
23 |
+++ ChangeLog 20 Jun 2008 15:06:12 -0000 1.336 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-lang/ruby |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.335 2008/06/10 13:23:02 caleb Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.336 2008/06/20 15:06:12 caleb Exp $ |
29 |
+ |
30 |
+*ruby-1.8.6_p230 (20 Jun 2008) |
31 |
+ |
32 |
+ 20 Jun 2008; Caleb Tennis <caleb@g.o> +ruby-1.8.6_p230.ebuild: |
33 |
+ version bump |
34 |
|
35 |
*ruby-1.8.7 (10 Jun 2008) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-lang/ruby/ruby-1.8.6_p230.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p230.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p230.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: ruby-1.8.6_p230.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p230.ebuild,v 1.1 2008/06/20 15:06:12 caleb Exp $ |
50 |
|
51 |
WANT_AUTOCONF="latest" |
52 |
WANT_AUTOMAKE="latest" |
53 |
|
54 |
ONIGURUMA="onigd2_5_9" |
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 |
|
64 |
DESCRIPTION="An object-oriented scripting language" |
65 |
HOMEPAGE="http://www.ruby-lang.org/" |
66 |
SRC_URI="ftp://ftp.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.bz2 |
67 |
cjk? ( http://www.geocities.jp/kosako3/oniguruma/archive/${ONIGURUMA}.tar.gz )" |
68 |
|
69 |
LICENSE="Ruby" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
71 |
IUSE="berkdb cjk debug doc emacs examples gdbm ipv6 rubytests socks5 ssl threads tk xemacs" |
72 |
|
73 |
RDEPEND=" |
74 |
berkdb? ( sys-libs/db ) |
75 |
gdbm? ( sys-libs/gdbm ) |
76 |
ssl? ( dev-libs/openssl ) |
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 |
# Fix a hardcoded lib path in configure script |
105 |
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
106 |
configure.in || die "sed failed" |
107 |
|
108 |
eautoreconf |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
# -fomit-frame-pointer makes ruby segfault, see bug #150413. |
113 |
filter-flags -fomit-frame-pointer |
114 |
# In many places aliasing rules are broken; play it safe |
115 |
# as it's risky with newer compilers to leave it as it is. |
116 |
append-flags -fno-strict-aliasing |
117 |
|
118 |
# Socks support via dante |
119 |
if use socks5 ; then |
120 |
# Socks support can't be disabled as long as SOCKS_SERVER is |
121 |
# set and socks library is present, so need to unset |
122 |
# SOCKS_SERVER in that case. |
123 |
unset SOCKS_SERVER |
124 |
fi |
125 |
|
126 |
# Increase GC_MALLOC_LIMIT if set (default is 8000000) |
127 |
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
128 |
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
129 |
fi |
130 |
|
131 |
econf --program-suffix=$MY_SUFFIX --enable-shared \ |
132 |
$(use_enable socks5 socks) \ |
133 |
$(use_enable doc install-doc) \ |
134 |
$(use_enable threads pthread) \ |
135 |
$(use_enable ipv6) \ |
136 |
$(use_enable debug) \ |
137 |
$(use_with berkdb dbm) \ |
138 |
$(use_with gdbm) \ |
139 |
$(use_with ssl openssl) \ |
140 |
$(use_with tk) \ |
141 |
${myconf} \ |
142 |
--with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \ |
143 |
|| die "econf failed" |
144 |
|
145 |
emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed" |
146 |
} |
147 |
|
148 |
src_test() { |
149 |
emake -j1 test || die "make test failed" |
150 |
|
151 |
elog "Ruby's make test has been run. Ruby also ships with a make check" |
152 |
elog "that cannot be run until after ruby has been installed." |
153 |
elog |
154 |
if use rubytests; then |
155 |
elog "You have enabled rubytests, so they will be installed to" |
156 |
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" |
157 |
elog "than root, and you must place them into a writeable directory." |
158 |
elog "Then call: " |
159 |
elog |
160 |
elog "ruby -C /location/of/tests runner.rb" |
161 |
else |
162 |
elog "Enable the rubytests USE flag to install the make check tests" |
163 |
fi |
164 |
} |
165 |
|
166 |
src_install() { |
167 |
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
168 |
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${SLOT}" |
169 |
for d in $(find "${S}/ext" -type d) ; do |
170 |
RUBYLIB="${RUBYLIB}:$d" |
171 |
done |
172 |
export LD_LIBRARY_PATH RUBYLIB |
173 |
|
174 |
emake DESTDIR="${D}" install || die "make install failed" |
175 |
|
176 |
MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) |
177 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']") |
178 |
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']") |
179 |
|
180 |
if use doc; then |
181 |
make DESTDIR="${D}" install-doc || die "make install-doc failed" |
182 |
fi |
183 |
|
184 |
if use examples; then |
185 |
dodir /usr/share/doc/${PF} |
186 |
cp -pPR sample "${D}/usr/share/doc/${PF}" |
187 |
fi |
188 |
|
189 |
dosym libruby$MY_SUFFIX$(get_libname ${PV%_*}) /usr/$(get_libdir)/libruby$(get_libname ${PV%.*}) |
190 |
dosym libruby$MY_SUFFIX$(get_libname ${PV%_*}) /usr/$(get_libdir)/libruby$(get_libname ${PV%_*}) |
191 |
|
192 |
dodoc ChangeLog NEWS README* ToDo |
193 |
|
194 |
if use rubytests; then |
195 |
dodir /usr/share/${PN}-${SLOT} |
196 |
cp -pPR test "${D}/usr/share/${PN}-${SLOT}" |
197 |
fi |
198 |
} |
199 |
|
200 |
pkg_postinst() { |
201 |
|
202 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
203 |
"${ROOT}usr/sbin/ruby-config" ruby$MY_SUFFIX |
204 |
fi |
205 |
elog |
206 |
elog "You can change the default ruby interpreter by ${ROOT}usr/sbin/ruby-config" |
207 |
elog |
208 |
} |
209 |
|
210 |
pkg_postrm() { |
211 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
212 |
"${ROOT}usr/sbin/ruby-config" ruby$MY_SUFFIX |
213 |
fi |
214 |
} |
215 |
|
216 |
|
217 |
|
218 |
-- |
219 |
gentoo-commits@l.g.o mailing list |