1 |
flameeyes 10/01/31 17:20:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rubygems-1.3.5-r2.ebuild |
5 |
Log: |
6 |
Add JRuby support here, rather than keep it bundled in JRuby. |
7 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.132 dev-ruby/rubygems/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.132&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.132&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?r1=1.131&r2=1.132 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v |
19 |
retrieving revision 1.131 |
20 |
retrieving revision 1.132 |
21 |
diff -u -r1.131 -r1.132 |
22 |
--- ChangeLog 28 Jan 2010 00:49:41 -0000 1.131 |
23 |
+++ ChangeLog 31 Jan 2010 17:20:15 -0000 1.132 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-ruby/rubygems |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.131 2010/01/28 00:49:41 flameeyes Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.132 2010/01/31 17:20:15 flameeyes Exp $ |
29 |
+ |
30 |
+*rubygems-1.3.5-r2 (31 Jan 2010) |
31 |
+ |
32 |
+ 31 Jan 2010; Diego E. Pettenò <flameeyes@g.o> |
33 |
+ +rubygems-1.3.5-r2.ebuild: |
34 |
+ Add JRuby support here, rather than keep it bundled in JRuby. |
35 |
|
36 |
*rubygems-1.3.5-r1 (28 Jan 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-ruby/rubygems/rubygems-1.3.5-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.5-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.5-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: rubygems-1.3.5-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.3.5-r2.ebuild,v 1.1 2010/01/31 17:20:15 flameeyes Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
USE_RUBY="ruby18 jruby" |
55 |
|
56 |
inherit ruby-ng |
57 |
|
58 |
DESCRIPTION="Centralized Ruby extension management system" |
59 |
HOMEPAGE="http://rubyforge.org/projects/rubygems/" |
60 |
LICENSE="|| ( Ruby GPL-2 )" |
61 |
|
62 |
# Needs to be installed first |
63 |
RESTRICT="test" |
64 |
|
65 |
SRC_URI="mirror://rubyforge/${PN}/${P}.tgz" |
66 |
|
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd" |
68 |
SLOT="0" |
69 |
IUSE="doc server" |
70 |
|
71 |
# previous versions had rubygems bundled, so it would collide badly |
72 |
RDEPEND="ruby_targets_jruby? ( >=dev-java/jruby-1.4.0-r5 )" |
73 |
|
74 |
# index_gem_repository.rb |
75 |
PDEPEND="server? ( dev-ruby/builder[ruby_targets_ruby18] )" |
76 |
|
77 |
all_ruby_prepare() { |
78 |
epatch "${FILESDIR}/${PN}-1.3.5-setup.patch" |
79 |
# Fixes a new "feature" that would prevent us from recognizing installed |
80 |
# gems inside the sandbox |
81 |
epatch "${FILESDIR}/${PN}-1.3.3-gentoo.patch" |
82 |
} |
83 |
|
84 |
each_ruby_install() { |
85 |
# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455 |
86 |
export RUBYOPT="${GENTOO_RUBYOPT}" |
87 |
ewarn "RUBYOPT=${RUBYOPT}" |
88 |
|
89 |
local ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]') |
90 |
local gemsitedir=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]' | sed -e 's:site_ruby:gems:') |
91 |
|
92 |
# rubygems tries to create GEM_HOME if it doesn't exist, upsetting sandbox, |
93 |
# bug #202109. Since 1.2.0 we also need to set GEM_PATH |
94 |
# for this reason, bug #230163. |
95 |
export GEM_HOME="${D}${gemsitedir}/${ver}" |
96 |
export GEM_PATH="${GEM_HOME}/" |
97 |
keepdir ${gemsitedir}/$ver/{doc,gems,cache,specifications} |
98 |
|
99 |
myconf="" |
100 |
if ! use doc; then |
101 |
myconf="${myconf} --no-ri" |
102 |
myconf="${myconf} --no-rdoc" |
103 |
fi |
104 |
|
105 |
${RUBY} setup.rb $myconf --destdir="${D}" || die "setup.rb install failed" |
106 |
|
107 |
doruby "${FILESDIR}/auto_gem.rb" |
108 |
} |
109 |
|
110 |
all_ruby_install() { |
111 |
dodoc README || die "dodoc README failed" |
112 |
|
113 |
doenvd "${FILESDIR}/10rubygems" || die "doenvd 10rubygems failed" |
114 |
|
115 |
if use server; then |
116 |
newinitd "${FILESDIR}/init.d-gem_server2" gem_server || die "newinitd failed" |
117 |
newconfd "${FILESDIR}/conf.d-gem_server" gem_server || die "newconfd failed" |
118 |
fi |
119 |
} |
120 |
|
121 |
pkg_postinst() { |
122 |
SOURCE_CACHE="/usr/$(get_libdir)/ruby/gems/$ver/source_cache" |
123 |
if [[ -e "${SOURCE_CACHE}" ]]; then |
124 |
rm "${SOURCE_CACHE}" |
125 |
fi |
126 |
|
127 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then |
128 |
eselect ruby set ruby18 |
129 |
fi |
130 |
|
131 |
ewarn |
132 |
ewarn "This ebuild is compatible to eselect-ruby" |
133 |
ewarn "To switch between available Ruby profiles, execute as root:" |
134 |
ewarn "\teselect ruby set ruby(18|19|...)" |
135 |
ewarn |
136 |
} |
137 |
|
138 |
pkg_postrm() { |
139 |
ewarn "If you have uninstalled dev-ruby/rubygems, Ruby applications are unlikely" |
140 |
ewarn "to run in current shells because of missing auto_gem." |
141 |
ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby" |
142 |
ewarn "or start new shells" |
143 |
ewarn |
144 |
ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset " |
145 |
ewarn "RUBYOPT" |
146 |
} |