1 |
caleb 08/06/10 13:23:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ruby-1.8.7.ebuild |
5 |
Removed: ruby-1.8.7_pre2.ebuild |
6 |
Log: |
7 |
update to 1.8.7 final |
8 |
(Portage version: 2.1.5.2) |
9 |
|
10 |
Revision Changes Path |
11 |
1.335 dev-lang/ruby/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.335&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.335&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?r1=1.334&r2=1.335 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v |
20 |
retrieving revision 1.334 |
21 |
retrieving revision 1.335 |
22 |
diff -u -r1.334 -r1.335 |
23 |
--- ChangeLog 21 Apr 2008 19:24:18 -0000 1.334 |
24 |
+++ ChangeLog 10 Jun 2008 13:23:02 -0000 1.335 |
25 |
@@ -1,6 +1,12 @@ |
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.334 2008/04/21 19:24:18 rbrown Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.335 2008/06/10 13:23:02 caleb Exp $ |
30 |
+ |
31 |
+*ruby-1.8.7 (10 Jun 2008) |
32 |
+ |
33 |
+ 10 Jun 2008; Caleb Tennis <caleb@g.o> -ruby-1.8.7_pre2.ebuild, |
34 |
+ +ruby-1.8.7.ebuild: |
35 |
+ bump 1.8.7 to final |
36 |
|
37 |
*ruby-1.8.7_pre2 (21 Apr 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-lang/ruby/ruby-1.8.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ruby-1.8.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.7.ebuild,v 1.1 2008/06/10 13:23:02 caleb Exp $ |
52 |
|
53 |
WANT_AUTOCONF="latest" |
54 |
WANT_AUTOMAKE="latest" |
55 |
|
56 |
#PATCHES APPLY, DOESN'T COMPILE THOUGH |
57 |
#ONIGURUMA="onigd2_5_9" |
58 |
|
59 |
inherit autotools eutils flag-o-matic multilib versionator |
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="mirror://ruby/${SLOT}/${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 debug doc emacs examples gdbm ipv6 rubytests socks5 ssl threads tk xemacs" #cjk |
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}:${LD_LIBRARY_PATH}/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 |