1 |
rbrown 08/03/29 15:16:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rubygems-1.1.0-r0.ebuild |
5 |
Log: |
6 |
Version bump. Fixes bug #215293 |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.86 dev-ruby/rubygems/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.86&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.86&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?r1=1.85&r2=1.86 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v |
19 |
retrieving revision 1.85 |
20 |
retrieving revision 1.86 |
21 |
diff -u -r1.85 -r1.86 |
22 |
--- ChangeLog 26 Mar 2008 03:29:59 -0000 1.85 |
23 |
+++ ChangeLog 29 Mar 2008 15:16:20 -0000 1.86 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-ruby/rubygems |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.85 2008/03/26 03:29:59 ricmm Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.86 2008/03/29 15:16:20 rbrown Exp $ |
29 |
+ |
30 |
+*rubygems-1.1.0-r0 (29 Mar 2008) |
31 |
+ |
32 |
+ 29 Mar 2008; Richard Brown <rbrown@g.o> |
33 |
+ +files/rubygems-1.1.0-dependency-installer-install-dir-fix.patch, |
34 |
+ +files/rubygems-1.1.0-setup.patch, +rubygems-1.1.0-r0.ebuild: |
35 |
+ Version bump. Fixes bug #215293 |
36 |
|
37 |
25 Mar 2008; <ricmm@g.o> rubygems-0.8.11-r6.ebuild: |
38 |
Drop to ~mips due to unstable deps |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-ruby/rubygems/rubygems-1.1.0-r0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/rubygems-1.1.0-r0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/rubygems-1.1.0-r0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: rubygems-1.1.0-r0.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-ruby/rubygems/rubygems-1.1.0-r0.ebuild,v 1.1 2008/03/29 15:16:20 rbrown Exp $ |
52 |
|
53 |
inherit ruby |
54 |
|
55 |
DESCRIPTION="Centralized Ruby extension management system" |
56 |
HOMEPAGE="http://rubyforge.org/projects/rubygems/" |
57 |
LICENSE="|| ( Ruby GPL-2 )" |
58 |
|
59 |
# Needs to be installed first |
60 |
RESTRICT="test" |
61 |
|
62 |
# The URL depends implicitly on the version, unfortunately. Even if you |
63 |
# change the filename on the end, it still downloads the same file. |
64 |
SRC_URI="http://rubyforge.org/frs/download.php/34638/${P}.tgz" |
65 |
|
66 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
67 |
SLOT="0" |
68 |
IUSE="doc server examples" |
69 |
DEPEND=">=dev-lang/ruby-1.8" |
70 |
PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb |
71 |
|
72 |
USE_RUBY="ruby18" |
73 |
|
74 |
PATCHES="${FILESDIR}/${P}-setup.patch |
75 |
${FILESDIR}/${P}-dependency-installer-install-dir-fix.patch |
76 |
" |
77 |
|
78 |
src_unpack() { |
79 |
ruby_src_unpack |
80 |
|
81 |
# Delete mis-packaged . files |
82 |
cd "${S}" |
83 |
find -name '.*' -type f -print0|xargs -0 rm |
84 |
|
85 |
} |
86 |
|
87 |
src_compile() { |
88 |
# Allowing ruby_src_compile would be bad with the new setup.rb |
89 |
: |
90 |
} |
91 |
|
92 |
src_install() { |
93 |
# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455 |
94 |
export RUBYOPT="${GENTOO_RUBYOPT}" |
95 |
|
96 |
ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]') |
97 |
|
98 |
# rubygems tries to create GEM_HOME if it doesn't exist, upsetting sandbox, |
99 |
# bug #202109 |
100 |
export GEM_HOME="${D}/usr/$(get_libdir)/ruby/gems/${ver}" |
101 |
keepdir /usr/$(get_libdir)/ruby/gems/$ver/{doc,gems,cache,specifications} |
102 |
|
103 |
myconf="" |
104 |
if ! use doc; then |
105 |
myconf="${myconf} --no-ri" |
106 |
myconf="${myconf} --no-rdoc" |
107 |
fi |
108 |
|
109 |
${RUBY} setup.rb $myconf --prefix="${D}" || die "setup.rb install failed" |
110 |
|
111 |
dosym /usr/bin/gem18 /usr/bin/gem || die "dosym gem failed" |
112 |
|
113 |
#This is used to update rubygems, do not want. |
114 |
rm "${D}/usr/bin/update_rubygems18" |
115 |
|
116 |
dodoc README |
117 |
if use examples; then |
118 |
cp -pPR examples "${D}/usr/share/doc/${PF}" |
119 |
fi |
120 |
|
121 |
cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]') |
122 |
doenvd "${FILESDIR}/10rubygems" |
123 |
|
124 |
if use server; then |
125 |
newinitd "${FILESDIR}/init.d-gem_server" gem_server |
126 |
newconfd "${FILESDIR}/conf.d-gem_server" gem_server |
127 |
fi |
128 |
} |
129 |
|
130 |
pkg_postinst() |
131 |
{ |
132 |
ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]') |
133 |
SOURCE_CACHE="/usr/$(get_libdir)/ruby/gems/$ver/source_cache" |
134 |
if [[ -e "${SOURCE_CACHE}" ]]; then |
135 |
rm "${SOURCE_CACHE}" |
136 |
fi |
137 |
|
138 |
ewarn "If you have previously switched to using ruby18_with_gems using ruby-config, this" |
139 |
ewarn "package has removed that file and makes it unnecessary anymore." |
140 |
ewarn "Please use ruby-config to revert back to ruby18." |
141 |
} |
142 |
|
143 |
pkg_postrm() |
144 |
{ |
145 |
ewarn "If you have uninstalled dev-ruby/rubygems. Ruby applications are unlikely" |
146 |
ewarn "to run in current shells because of missing auto_gem." |
147 |
ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby" |
148 |
ewarn "or start new shells" |
149 |
ewarn |
150 |
ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset " |
151 |
ewarn "RUBYOPT" |
152 |
} |
153 |
|
154 |
|
155 |
|
156 |
-- |
157 |
gentoo-commits@l.g.o mailing list |