1 |
gengor 09/07/30 07:42:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rubygems-1.3.5.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.124 dev-ruby/rubygems/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.124&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.124&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?r1=1.123&r2=1.124 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v |
19 |
retrieving revision 1.123 |
20 |
retrieving revision 1.124 |
21 |
diff -u -r1.123 -r1.124 |
22 |
--- ChangeLog 5 Jul 2009 18:27:15 -0000 1.123 |
23 |
+++ ChangeLog 30 Jul 2009 07:42:48 -0000 1.124 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-ruby/rubygems |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.123 2009/07/05 18:27:15 a3li Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.124 2009/07/30 07:42:48 gengor Exp $ |
29 |
+ |
30 |
+*rubygems-1.3.5 (30 Jul 2009) |
31 |
+ |
32 |
+ 30 Jul 2009; Gordon Malm <gengor@g.o> +rubygems-1.3.5.ebuild, |
33 |
+ +files/rubygems-1.3.5-setup.patch: |
34 |
+ Version bump. |
35 |
|
36 |
*rubygems-1.3.4 (05 Jul 2009) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-ruby/rubygems/rubygems-1.3.5.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.5.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.5.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: rubygems-1.3.5.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 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.ebuild,v 1.1 2009/07/30 07:42:48 gengor Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit ruby |
55 |
|
56 |
DESCRIPTION="Centralized Ruby extension management system" |
57 |
HOMEPAGE="http://rubyforge.org/projects/rubygems/" |
58 |
LICENSE="|| ( Ruby GPL-2 )" |
59 |
|
60 |
# Needs to be installed first |
61 |
RESTRICT="test" |
62 |
|
63 |
# The URL depends implicitly on the version, unfortunately. Even if you |
64 |
# change the filename on the end, it still downloads the same file. |
65 |
SRC_URI="mirror://rubyforge/${PN}/${P}.tgz" |
66 |
|
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd" |
68 |
SLOT="0" |
69 |
IUSE="doc server" |
70 |
DEPEND="=dev-lang/ruby-1.8*" |
71 |
RDEPEND="${DEPEND}" |
72 |
PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb |
73 |
|
74 |
USE_RUBY="ruby18" |
75 |
|
76 |
src_prepare() { |
77 |
epatch "${FILESDIR}/${PN}-1.3.5-setup.patch" |
78 |
# Fixes a new "feature" that would prevent us from recognizing installed |
79 |
# gems inside the sandbox |
80 |
epatch "${FILESDIR}/${PN}-1.3.3-gentoo.patch" |
81 |
} |
82 |
|
83 |
src_compile() { |
84 |
# Allowing ruby_src_compile would be bad with the new setup.rb |
85 |
: |
86 |
} |
87 |
|
88 |
src_install() { |
89 |
# RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455 |
90 |
export RUBYOPT="${GENTOO_RUBYOPT}" |
91 |
ewarn "RUBYOPT=${RUBYOPT}" |
92 |
|
93 |
# Force ebuild to use Ruby 1.8 |
94 |
export RUBY="/usr/bin/ruby18" |
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. Since 1.2.0 we also need to set GEM_PATH |
100 |
# for this reason, bug #230163. |
101 |
export GEM_HOME="${D}/usr/$(get_libdir)/ruby/gems/${ver}" |
102 |
export GEM_PATH="${GEM_HOME}/" |
103 |
keepdir /usr/$(get_libdir)/ruby/gems/$ver/{doc,gems,cache,specifications} |
104 |
|
105 |
myconf="" |
106 |
if ! use doc; then |
107 |
myconf="${myconf} --no-ri" |
108 |
myconf="${myconf} --no-rdoc" |
109 |
fi |
110 |
|
111 |
${RUBY} setup.rb $myconf --destdir="${D}" || die "setup.rb install failed" |
112 |
|
113 |
dodoc README || die "dodoc README failed" |
114 |
|
115 |
cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]') || die "cp auto_gem.rb failed" |
116 |
doenvd "${FILESDIR}/10rubygems" || die "doenvd 10rubygems failed" |
117 |
|
118 |
if use server; then |
119 |
newinitd "${FILESDIR}/init.d-gem_server2" gem_server || die "newinitd failed" |
120 |
newconfd "${FILESDIR}/conf.d-gem_server" gem_server || die "newconfd failed" |
121 |
fi |
122 |
} |
123 |
|
124 |
pkg_postinst() { |
125 |
SOURCE_CACHE="/usr/$(get_libdir)/ruby/gems/$ver/source_cache" |
126 |
if [[ -e "${SOURCE_CACHE}" ]]; then |
127 |
rm "${SOURCE_CACHE}" |
128 |
fi |
129 |
|
130 |
if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then |
131 |
eselect ruby set ruby18 |
132 |
fi |
133 |
|
134 |
ewarn |
135 |
ewarn "This ebuild is compatible to eselect-ruby" |
136 |
ewarn "To switch between available Ruby profiles, execute as root:" |
137 |
ewarn "\teselect ruby set ruby(18|19|...)" |
138 |
ewarn |
139 |
} |
140 |
|
141 |
pkg_postrm() { |
142 |
ewarn "If you have uninstalled dev-ruby/rubygems, Ruby applications are unlikely" |
143 |
ewarn "to run in current shells because of missing auto_gem." |
144 |
ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby" |
145 |
ewarn "or start new shells" |
146 |
ewarn |
147 |
ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset " |
148 |
ewarn "RUBYOPT" |
149 |
} |