summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-10-09 14:41:56 +0000
committerHans de Graaff <graaff@gentoo.org>2010-10-09 14:41:56 +0000
commit3287d036380fefaa673a4956b51ac598a184f1a5 (patch)
tree17eeaee0332c4a2de28b6928af01a1535b182a5e /dev-ruby/rubygems
parentppc64 stable wrt #324077 (diff)
downloadhistorical-3287d036380fefaa673a4956b51ac598a184f1a5.tar.gz
historical-3287d036380fefaa673a4956b51ac598a184f1a5.tar.bz2
historical-3287d036380fefaa673a4956b51ac598a184f1a5.zip
Add a new 1.3.7-r1 based on 1.3.7 to have a stable candidate for ree18 that is still compatible with the gems eclass.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/rubygems')
-rw-r--r--dev-ruby/rubygems/ChangeLog6
-rw-r--r--dev-ruby/rubygems/Manifest9
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild102
3 files changed, 112 insertions, 5 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog
index 33669d541dc9..6eb261c890b1 100644
--- a/dev-ruby/rubygems/ChangeLog
+++ b/dev-ruby/rubygems/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-ruby/rubygems
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.160 2010/10/09 14:09:28 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.161 2010/10/09 14:41:43 graaff Exp $
+
+ 09 Oct 2010; Hans de Graaff <graaff@gentoo.org> +rubygems-1.3.7-r1.ebuild:
+ Add a new 1.3.7-r1 based on 1.3.7 to have a stable candidate for ree18
+ that is still compatible with the gems eclass.
09 Oct 2010; Hans de Graaff <graaff@gentoo.org> -rubygems-1.3.5-r1.ebuild,
-rubygems-1.3.7-r3.ebuild:
diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest
index 8a2450c95b1b..6a773c23ca28 100644
--- a/dev-ruby/rubygems/Manifest
+++ b/dev-ruby/rubygems/Manifest
@@ -16,14 +16,15 @@ DIST rubygems-1.3.6.tgz 285167 RMD160 f2aa5155a79f07a3f9106e90a4d1e4d39d31cc5a S
DIST rubygems-1.3.7.tgz 290986 RMD160 2ea8e16d1535216045798258603d5f2f9e3dbfea SHA1 68ad2970963db9893b76acc8777be72a77c4bee4 SHA256 388b90ae6273f655507b10c8ba6bee9ea72e7d49c3e610025531cb8c3ba67c9d
EBUILD rubygems-1.3.5.ebuild 3166 RMD160 95a7edee644212eabf8a86f1dc42d06c14a3deed SHA1 8c1b5af2fd039e655628a1884697883824b0bafc SHA256 14822c8c0b156a93a8ab2215b5502f7cea55c2cbce8a57b5ddd7eec2753338b1
EBUILD rubygems-1.3.6-r2.ebuild 2997 RMD160 c8496bebae44151a36eb9f553ceca30c0a5e3acc SHA1 33702cadaeba81f923bee1a0202098fb7e4b61cd SHA256 81c1eec7512baa6f61ad060227604934f68b4b60b36c33c2eee7c569a980a9cc
+EBUILD rubygems-1.3.7-r1.ebuild 3001 RMD160 771fbab891eeb2351989d3f54b8cca66370444d5 SHA1 eaebd9c4a4b6d8d249f4a180ae27da2e5603dbf7 SHA256 723e584312afd2c459438de8219dd44aabae535987965fcfeca6c24313f1bf58
EBUILD rubygems-1.3.7-r4.ebuild 3570 RMD160 94caf2d07d3ca406bce2fcec31d5ee1403c696b7 SHA1 7276b95e3d795b374dd84e893f8e6ca663aeb08f SHA256 957a6fed3e5b25b7431ed8dd292ee9174760960a7f8d3c68542497317b29ba6d
EBUILD rubygems-1.3.7.ebuild 2990 RMD160 65cf8724bd6fec8c1aad6568a66970930288f652 SHA1 8da6244d95837ec416feeee1db8416c71a4bc59b SHA256 a36d650137dfb7fa23d1f3e3db3dc427d9d8d36989b4fdc542b8de2e9277a00d
-MISC ChangeLog 25696 RMD160 8b3d1958197fb6b3b29b4b061cbbee8aa2394d21 SHA1 bc13f0683c49fc7e5859913c5a20d09d02fea3a7 SHA256 d09c0c5204ed8fd2646a7aafa304e6fb65cb07e32c02ff6dacd1b9124025c20a
+MISC ChangeLog 25896 RMD160 e38d930264a63ca9425f58ee7a11d50d4ba2584b SHA1 fb4cf9426ed4d674c630bf15dd55d1f113795a8e SHA256 5c24d1198af29536fabef4dd8efd610d3aac0441bdf91d35fd1296e53951618c
MISC metadata.xml 247 RMD160 eb1d10b4366542ce2f232dcaf7317341b6b5608f SHA1 fcb6e2a1d6cda6d45640f9c5a5dfcc0fd4f3ab3b SHA256 633ae9912e8dd27f76b9cf53f5ad0d3222db85d9a19a76da7fd5e26f40b144e3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
-iF4EAREIAAYFAkywd9MACgkQZihJkut28StGrQD9ElXKuqXGkHTx3g918YMH6/Vk
-QTiCA8kNzPjRWTK/Vz0BALpetvaPuRmAie3x7/SCQEISpwDHdBHnY1RuOhBX3z/Z
-=Ox5y
+iF4EAREIAAYFAkywf2cACgkQZihJkut28SvzwQEAxfT/5k5MNFnNxBBlvTH7y9F5
+45Wi1XP5U3Y4KRGP1ZAA/0mzutNygFIVrf64cNgs+CJyYxW75s/TZkBEhYTF8+4W
+=8vuI
-----END PGP SIGNATURE-----
diff --git a/dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild b/dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild
new file mode 100644
index 000000000000..7c1d555dd0fc
--- /dev/null
+++ b/dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild,v 1.3 2010/10/09 14:41:56 graaff Exp $
+
+EAPI="2"
+
+USE_RUBY="ruby18 ree18 jruby"
+
+inherit ruby-ng
+
+DESCRIPTION="Centralized Ruby extension management system"
+HOMEPAGE="http://rubyforge.org/projects/rubygems/"
+LICENSE="|| ( Ruby GPL-2 )"
+
+# Needs to be installed first
+RESTRICT="test"
+
+SRC_URI="mirror://rubyforge/${PN}/${P}.tgz"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+IUSE="doc server"
+
+# previous versions had rubygems bundled, so it would collide badly
+RDEPEND="ruby_targets_jruby? ( >=dev-java/jruby-1.4.0-r5 )"
+
+# index_gem_repository.rb
+PDEPEND="server? ( dev-ruby/builder[ruby_targets_ruby18] )"
+
+all_ruby_prepare() {
+ epatch "${FILESDIR}/${PN}-1.3.5-setup.patch"
+ # Fixes a new "feature" that would prevent us from recognizing installed
+ # gems inside the sandbox
+ epatch "${FILESDIR}/${PN}-1.3.3-gentoo.patch"
+}
+
+each_ruby_install() {
+ # Unset RUBYOPT to avoid interferences, bug #158455 et. al.
+ unset RUBYOPT
+
+ local gemsitedir=$(ruby_rbconfig_value 'sitelibdir' | sed -e 's:site_ruby:gems:')
+
+ # rubygems tries to create GEM_HOME if it doesn't exist, upsetting sandbox,
+ # bug #202109. Since 1.2.0 we also need to set GEM_PATH for this reason, bug #230163
+ export GEM_HOME="${D}${gemsitedir}"
+ export GEM_PATH="${GEM_HOME}/"
+ keepdir ${gemsitedir}/{doc,gems,cache,specifications}
+
+ myconf=""
+ if ! use doc; then
+ myconf="${myconf} --no-ri"
+ myconf="${myconf} --no-rdoc"
+ fi
+
+ ${RUBY} setup.rb $myconf --destdir="${D}" || die "setup.rb install failed"
+
+ doruby "${FILESDIR}/auto_gem.rb"
+}
+
+all_ruby_install() {
+ dodoc README || die "dodoc README failed"
+
+ doenvd "${FILESDIR}/10rubygems" || die "doenvd 10rubygems failed"
+
+ if use server; then
+ newinitd "${FILESDIR}/init.d-gem_server2" gem_server || die "newinitd failed"
+ newconfd "${FILESDIR}/conf.d-gem_server" gem_server || die "newconfd failed"
+ fi
+}
+
+clear_source_cache() {
+ local gemsitedir=$(ruby_rbconfig_value 'sitelibdir' | sed -e 's:site_ruby:gems:')
+ SOURCE_CACHE="${gemsitedir}/source_cache"
+
+ if [[ -e "${SOURCE_CACHE}" ]]; then
+ rm "${SOURCE_CACHE}"
+ einfo "Cleared gem source cache."
+ fi
+}
+
+pkg_postinst() {
+ _ruby_each_implementation clear_source_cache
+
+ if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then
+ eselect ruby set $(eselect --brief --no-color ruby show | head -n1)
+ fi
+
+ ewarn
+ ewarn "To switch between available Ruby profiles, execute as root:"
+ ewarn "\teselect ruby set ruby(18|19|...)"
+ ewarn
+}
+
+pkg_postrm() {
+ ewarn "If you have uninstalled dev-ruby/rubygems, Ruby applications are unlikely"
+ ewarn "to run in current shells because of missing auto_gem."
+ ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby"
+ ewarn "or start new shells"
+ ewarn
+ ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset "
+ ewarn "RUBYOPT"
+}