1 |
a3li 11/10/31 09:14:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rubygems-1.8.10-r1.ebuild |
5 |
Removed: rubygems-1.8.10.ebuild |
6 |
Log: |
7 |
Fix default gem binaries directory that would point to /usr/local for user installations as well, causing permission errors. Revbump to update the changes. |
8 |
|
9 |
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.179 dev-ruby/rubygems/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.179&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.179&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rubygems/ChangeLog?r1=1.178&r2=1.179 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v |
21 |
retrieving revision 1.178 |
22 |
retrieving revision 1.179 |
23 |
diff -u -r1.178 -r1.179 |
24 |
--- ChangeLog 22 Oct 2011 11:40:05 -0000 1.178 |
25 |
+++ ChangeLog 31 Oct 2011 09:14:03 -0000 1.179 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for dev-ruby/rubygems |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.178 2011/10/22 11:40:05 graaff Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.179 2011/10/31 09:14:03 a3li Exp $ |
31 |
+ |
32 |
+*rubygems-1.8.10-r1 (31 Oct 2011) |
33 |
+ |
34 |
+ 31 Oct 2011; Alex Legler <a3li@g.o> -rubygems-1.8.10.ebuild, |
35 |
+ +rubygems-1.8.10-r1.ebuild, files/gentoo-defaults.rb: |
36 |
+ Fix default gem binaries directory that would point to /usr/local for user |
37 |
+ installations as well, causing permission errors. Revbump to update the |
38 |
+ changes. |
39 |
|
40 |
22 Oct 2011; Hans de Graaff <graaff@g.o> -rubygems-1.8.5.ebuild, |
41 |
-rubygems-1.8.7.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 dev-ruby/rubygems/rubygems-1.8.10-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rubygems/rubygems-1.8.10-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rubygems/rubygems-1.8.10-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: rubygems-1.8.10-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.8.10-r1.ebuild,v 1.1 2011/10/31 09:14:03 a3li Exp $ |
55 |
|
56 |
EAPI="4" |
57 |
|
58 |
# jruby's own RUBY_ENGINE defaults are no longer compatible. |
59 |
USE_RUBY="ruby18 ree18 ruby19 jruby" |
60 |
|
61 |
inherit ruby-ng prefix |
62 |
|
63 |
DESCRIPTION="Centralized Ruby extension management system" |
64 |
HOMEPAGE="http://rubyforge.org/projects/rubygems/" |
65 |
LICENSE="|| ( Ruby MIT )" |
66 |
|
67 |
SRC_URI="mirror://rubyforge/${PN}/${P}.tgz" |
68 |
|
69 |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
70 |
SLOT="0" |
71 |
IUSE="server test" |
72 |
|
73 |
RDEPEND=" |
74 |
ruby_targets_jruby? ( >=dev-java/jruby-1.5.6-r1 ) |
75 |
ruby_targets_ruby19? ( >=dev-lang/ruby-1.9.3_rc1 )" |
76 |
|
77 |
# index_gem_repository.rb |
78 |
PDEPEND="server? ( dev-ruby/builder[ruby_targets_ruby18] )" |
79 |
|
80 |
# Tests fail when YARD is installed.. but just the rdoc-related stuff, |
81 |
# so it's not a mistake. |
82 |
ruby_add_bdepend " |
83 |
test? ( |
84 |
dev-ruby/minitest |
85 |
virtual/ruby-rdoc |
86 |
!!dev-ruby/yard |
87 |
)" |
88 |
|
89 |
all_ruby_prepare() { |
90 |
mkdir -p lib/rubygems/defaults || die |
91 |
cp "${FILESDIR}/gentoo-defaults.rb" lib/rubygems/defaults/operating_system.rb || die |
92 |
|
93 |
eprefixify lib/rubygems/defaults/operating_system.rb |
94 |
|
95 |
# Disable broken tests when changing default values: |
96 |
sed -i -e '/^ def test_self_bindir_default_dir/, /^ end/ s:^:#:' \ |
97 |
-e '/^ def test_self_default_dir/, /^ end/ s:^:#:' \ |
98 |
test/rubygems/test_gem.rb || die |
99 |
|
100 |
# Remove tests that want to write to /usr/local/bin |
101 |
rm test/rubygems/test_gem_uninstaller.rb test/rubygems/test_gem_install_update_options.rb || die |
102 |
} |
103 |
|
104 |
each_ruby_compile() { |
105 |
# Not really a build but... |
106 |
sed -i -e 's:#!.*:#!'"${RUBY}"':' bin/gem |
107 |
} |
108 |
|
109 |
each_ruby_test() { |
110 |
# Unset RUBYOPT to avoid interferences, bug #158455 et. al. |
111 |
unset RUBYOPT |
112 |
|
113 |
RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} -I.:lib:test \ |
114 |
-e 'Dir["test/**/test_*.rb"].each { |tu| require tu }' || die "tests failed" |
115 |
} |
116 |
|
117 |
each_ruby_install() { |
118 |
# Unset RUBYOPT to avoid interferences, bug #158455 et. al. |
119 |
unset RUBYOPT |
120 |
export RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" |
121 |
|
122 |
pushd lib &>/dev/null |
123 |
doruby -r * |
124 |
popd &>/dev/null |
125 |
|
126 |
case "${RUBY}" in |
127 |
*ruby19) |
128 |
local sld=$(ruby_rbconfig_value 'sitelibdir') |
129 |
insinto "${sld#${EPREFIX}}" # bug #320813 |
130 |
newins "${FILESDIR}/auto_gem.rb.ruby19" auto_gem.rb || die |
131 |
;; |
132 |
*) |
133 |
doruby "${FILESDIR}/auto_gem.rb" || die |
134 |
;; |
135 |
esac |
136 |
|
137 |
newbin bin/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') || die |
138 |
} |
139 |
|
140 |
all_ruby_install() { |
141 |
dodoc History.txt README.rdoc |
142 |
|
143 |
doenvd "${FILESDIR}/10rubygems" |
144 |
|
145 |
if use server; then |
146 |
newinitd "${FILESDIR}/init.d-gem_server2" gem_server || die "newinitd failed" |
147 |
newconfd "${FILESDIR}/conf.d-gem_server" gem_server || die "newconfd failed" |
148 |
fi |
149 |
} |
150 |
|
151 |
pkg_postinst() { |
152 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then |
153 |
eselect ruby set $(eselect --brief --no-color ruby show | head -n1) |
154 |
fi |
155 |
|
156 |
ewarn |
157 |
ewarn "To switch between available Ruby profiles, execute as root:" |
158 |
ewarn "\teselect ruby set ruby(18|19|...)" |
159 |
ewarn |
160 |
} |
161 |
|
162 |
pkg_postrm() { |
163 |
ewarn "If you have uninstalled dev-ruby/rubygems, Ruby applications are unlikely" |
164 |
ewarn "to run in current shells because of missing auto_gem." |
165 |
ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby" |
166 |
ewarn "or start new shells" |
167 |
ewarn |
168 |
ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset " |
169 |
ewarn "RUBYOPT" |
170 |
} |