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