Gentoo Archives: gentoo-commits

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