1 |
graaff 07/10/21 13:49:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ruby-1.8.6_p110-r2.ebuild |
5 |
Log: |
6 |
Add emacs and xemacs USE flag support |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.308 dev-lang/ruby/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.308&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?rev=1.308&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ChangeLog?r1=1.307&r2=1.308 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v |
19 |
retrieving revision 1.307 |
20 |
retrieving revision 1.308 |
21 |
diff -u -r1.307 -r1.308 |
22 |
--- ChangeLog 13 Oct 2007 02:47:26 -0000 1.307 |
23 |
+++ ChangeLog 21 Oct 2007 13:49:04 -0000 1.308 |
24 |
@@ -1,6 +1,13 @@ |
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.307 2007/10/13 02:47:26 beandog Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.308 2007/10/21 13:49:04 graaff Exp $ |
29 |
+ |
30 |
+*ruby-1.8.6_p110-r2 (21 Oct 2007) |
31 |
+ |
32 |
+ 21 Oct 2007; Hans de Graaff <graaff@g.o> |
33 |
+ +ruby-1.8.6_p110-r2.ebuild: |
34 |
+ Add emacs and xemacs USE flags and use them to pull in the correct editing |
35 |
+ mode for each. Had to drop several arch keywords as reported on bug 196413. |
36 |
|
37 |
13 Oct 2007; Steve Dibb <beandog@g.o> ruby-1.8.6_p110-r1.ebuild: |
38 |
amd64 stable, security bug 194236 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-lang/ruby/ruby-1.8.6_p110-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p110-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/ruby/ruby-1.8.6_p110-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ruby-1.8.6_p110-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2007 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.6_p110-r2.ebuild,v 1.1 2007/10/21 13:49:04 graaff Exp $ |
52 |
|
53 |
WANT_AUTOCONF="latest" |
54 |
WANT_AUTOMAKE="latest" |
55 |
|
56 |
ONIGURUMA="onigd2_5_9" |
57 |
|
58 |
inherit autotools eutils flag-o-matic multilib versionator |
59 |
|
60 |
MY_P="${PN}-$(replace_version_separator 3 '-')" |
61 |
S=${WORKDIR}/${MY_P} |
62 |
|
63 |
SLOT=$(get_version_component_range 1-2) |
64 |
MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) |
65 |
|
66 |
DESCRIPTION="An object-oriented scripting language" |
67 |
HOMEPAGE="http://www.ruby-lang.org/" |
68 |
SRC_URI="ftp://ftp.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.gz |
69 |
cjk? ( http://www.geocities.jp/kosako3/oniguruma/archive/${ONIGURUMA}.tar.gz )" |
70 |
|
71 |
LICENSE="Ruby" |
72 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
73 |
IUSE="cjk debug doc emacs examples ipv6 rubytests socks5 threads tk xemacs" |
74 |
|
75 |
RDEPEND=">=sys-libs/gdbm-1.8.0 |
76 |
>=sys-libs/readline-4.1 |
77 |
>=sys-libs/ncurses-5.2 |
78 |
socks5? ( >=net-proxy/dante-1.1.13 ) |
79 |
tk? ( dev-lang/tk ) |
80 |
>=dev-ruby/ruby-config-0.3.1 |
81 |
!=dev-lang/ruby-cvs-${SLOT}* |
82 |
!dev-ruby/rdoc |
83 |
!dev-ruby/rexml" |
84 |
DEPEND="${RDEPEND} |
85 |
emacs? ( app-emacs/ruby-mode ) |
86 |
xemacs? ( app-xemacs/ruby-modes )" |
87 |
|
88 |
PROVIDE="virtual/ruby" |
89 |
|
90 |
src_unpack() { |
91 |
unpack ${A} |
92 |
|
93 |
if use cjk ; then |
94 |
einfo "Applying ${ONIGURUMA}" |
95 |
pushd ${WORKDIR}/oniguruma |
96 |
econf --with-rubydir="${S}" || die "oniguruma econf failed" |
97 |
emake $MY_SUFFIX || die "oniguruma emake failed" |
98 |
popd |
99 |
fi |
100 |
|
101 |
cd "${S}/ext/dl" |
102 |
epatch "${FILESDIR}/${PN}-1.8.6-memory-leak.diff" |
103 |
cd "${S}" |
104 |
|
105 |
epatch "${FILESDIR}/${P}-net-http-p111.patch" |
106 |
|
107 |
# Fix a hardcoded lib path in configure script |
108 |
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ |
109 |
configure.in || die "sed failed" |
110 |
|
111 |
eautoreconf |
112 |
} |
113 |
|
114 |
src_compile() { |
115 |
# -fomit-frame-pointer makes ruby segfault, see bug #150413. |
116 |
filter-flags -fomit-frame-pointer |
117 |
# In many places aliasing rules are broken; play it safe |
118 |
# as it's risky with newer compilers to leave it as it is. |
119 |
append-flags -fno-strict-aliasing |
120 |
|
121 |
# Socks support via dante |
122 |
if use socks5 ; then |
123 |
# Socks support can't be disabled as long as SOCKS_SERVER is |
124 |
# set and socks library is present, so need to unset |
125 |
# SOCKS_SERVER in that case. |
126 |
unset SOCKS_SERVER |
127 |
fi |
128 |
|
129 |
# Increase GC_MALLOC_LIMIT if set (default is 8000000) |
130 |
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then |
131 |
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" |
132 |
fi |
133 |
|
134 |
econf --program-suffix=$MY_SUFFIX --enable-shared \ |
135 |
$(use_enable socks5 socks) \ |
136 |
$(use_enable doc install-doc) \ |
137 |
$(use_enable threads pthread) \ |
138 |
$(use_enable ipv6) \ |
139 |
$(use_enable debug) \ |
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 |
ewarn "If you upgrade to >=sys-apps/coreutils-6.7-r1," |
203 |
ewarn "you should re-emerge ruby again." |
204 |
ewarn "See bug #159922 for details" |
205 |
ewarn |
206 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
207 |
"${ROOT}usr/sbin/ruby-config" ruby$MY_SUFFIX |
208 |
fi |
209 |
elog |
210 |
elog "You can change the default ruby interpreter by ${ROOT}usr/sbin/ruby-config" |
211 |
elog |
212 |
} |
213 |
|
214 |
pkg_postrm() { |
215 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then |
216 |
"${ROOT}usr/sbin/ruby-config" ruby$MY_SUFFIX |
217 |
fi |
218 |
} |
219 |
|
220 |
|
221 |
|
222 |
-- |
223 |
gentoo-commits@g.o mailing list |