summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-08-03 16:07:36 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-08-03 16:07:36 +0000
commit80ac56935e5de610a04559e2d602bc211263dd5e (patch)
tree6de3e346ebb97ae70522fc2a4c3f443e88dce5d5 /dev-ruby
parentAdd DESCRIPTION (diff)
downloadhistorical-80ac56935e5de610a04559e2d602bc211263dd5e.tar.gz
historical-80ac56935e5de610a04559e2d602bc211263dd5e.tar.bz2
historical-80ac56935e5de610a04559e2d602bc211263dd5e.zip
Un-hack rubygems. With the new version, we're patching only tests and one customisation, all clear for upstream, while we install our own defaults in a separate file exactly as upstream intended.
This new version installs in /usr/local rather than /usr, so that whatever the user installs, it's not going to collide or mess with Portage-installed gems. Also, we no longer do any per-implementation patching, and we only special-case Ruby 1.9 for what concern the auto_gem file (instead of keeping four copies of the same identical file in files/). Documentation is not currently building right, but tests are executed (they fail for JRuby, that is known. Note that the -r1 version has been dropped, so for ~alpha and ~arm (which will have to re-keyword -r2) this causes a faux-downgrade to 1.3.7, but the changes in -r1 only related to Ruby 1.9 anyway. Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rubygems/ChangeLog28
-rw-r--r--dev-ruby/rubygems/Manifest29
-rw-r--r--dev-ruby/rubygems/files/auto_gem.rb.jruby7
-rw-r--r--dev-ruby/rubygems/files/auto_gem.rb.ruby187
-rw-r--r--dev-ruby/rubygems/files/auto_gem.rb.rubyee187
-rw-r--r--dev-ruby/rubygems/files/gentoo-defaults.rb38
-rw-r--r--dev-ruby/rubygems/files/init.d-gem_server22
-rw-r--r--dev-ruby/rubygems/files/rubygems-1.3.7-gentoo.patch132
-rw-r--r--dev-ruby/rubygems/files/rubygems-1.3.7-ruby19.patch14
-rw-r--r--dev-ruby/rubygems/files/rubygems-1.3.7-rubyee.patch25
-rw-r--r--dev-ruby/rubygems/files/rubygems-rubyee.patch28
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.5-r3.ebuild99
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.6-r2.ebuild15
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.6.ebuild108
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild119
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.7-r2.ebuild121
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.7.ebuild22
17 files changed, 340 insertions, 481 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog
index e54af6eac209..f6263c4569a2 100644
--- a/dev-ruby/rubygems/ChangeLog
+++ b/dev-ruby/rubygems/ChangeLog
@@ -1,6 +1,32 @@
# 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.147 2010/07/23 13:08:09 klausman Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.148 2010/08/03 16:07:36 flameeyes Exp $
+
+*rubygems-1.3.7-r2 (03 Aug 2010)
+
+ 03 Aug 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ -rubygems-1.3.5-r3.ebuild, -rubygems-1.3.6.ebuild,
+ rubygems-1.3.6-r2.ebuild, rubygems-1.3.7.ebuild,
+ -rubygems-1.3.7-r1.ebuild, +rubygems-1.3.7-r2.ebuild,
+ +files/rubygems-1.3.7-gentoo.patch, -files/rubygems-1.3.7-ruby19.patch,
+ -files/rubygems-1.3.7-rubyee.patch, -files/auto_gem.rb.jruby,
+ -files/auto_gem.rb.ruby18, -files/auto_gem.rb.rubyee18,
+ +files/gentoo-defaults.rb, -files/init.d-gem_server,
+ -files/rubygems-rubyee.patch:
+ Un-hack rubygems. With the new version, we're patching only tests and one
+ customisation, all clear for upstream, while we install our own defaults
+ in a separate file exactly as upstream intended.
+ This new version installs in /usr/local rather than /usr, so that whatever
+ the user installs, it's not going to collide or mess with
+ Portage-installed gems. Also, we no longer do any per-implementation
+ patching, and we only special-case Ruby 1.9 for what concern the auto_gem
+ file (instead of keeping four copies of the same identical file in
+ files/).
+ Documentation is not currently building right, but tests are executed
+ (they fail for JRuby, that is known.
+ Note that the -r1 version has been dropped, so for ~alpha and ~arm (which
+ will have to re-keyword -r2) this causes a faux-downgrade to 1.3.7, but
+ the changes in -r1 only related to Ruby 1.9 anyway.
23 Jul 2010; Tobias Klausmann <klausman@gentoo.org>
rubygems-1.3.6-r2.ebuild:
diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest
index cd5d173f278a..21155439aef0 100644
--- a/dev-ruby/rubygems/Manifest
+++ b/dev-ruby/rubygems/Manifest
@@ -1,26 +1,29 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 10rubygems 21 RMD160 02441be7de6307bbb859fbc2bf5891809fe9ecf8 SHA1 3f98150bfb39a3f3f1dfabcf2d9bf80051960d81 SHA256 8c30de9ba7f327237af47f85d8f7f6701d34c9a8780ff7303244667568ca5833
AUX auto_gem.rb 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 SHA1 8dde3d73f65998f4c5552924ad49e1441e1b211d SHA256 fe1efe24cd0ba36c55449e9623cd0be394980f37d12468624dad7ffdef72f4dc
-AUX auto_gem.rb.jruby 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 SHA1 8dde3d73f65998f4c5552924ad49e1441e1b211d SHA256 fe1efe24cd0ba36c55449e9623cd0be394980f37d12468624dad7ffdef72f4dc
-AUX auto_gem.rb.ruby18 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 SHA1 8dde3d73f65998f4c5552924ad49e1441e1b211d SHA256 fe1efe24cd0ba36c55449e9623cd0be394980f37d12468624dad7ffdef72f4dc
AUX auto_gem.rb.ruby19 509 RMD160 f8ffc36e384592956e6508b952ea80110f73efe3 SHA1 498f8963c27cad7e8334b2e797c51f6ac2101b1b SHA256 f0f7f61b110955325be52d278fcc1d3f3ea395cd9523dba33af37a44fd59666d
-AUX auto_gem.rb.rubyee18 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 SHA1 8dde3d73f65998f4c5552924ad49e1441e1b211d SHA256 fe1efe24cd0ba36c55449e9623cd0be394980f37d12468624dad7ffdef72f4dc
AUX conf.d-gem_server 81 RMD160 8c5c57e989e009b87fcb345185f3f1e3acaf517d SHA1 4d43d760253a478adbce597148ff1c4e414e8eea SHA256 aa850780bebe0e31da9732d8707a748567ca72716fd91e294dc712e71f82db2f
-AUX init.d-gem_server 502 RMD160 9fe089f462edff052e6b7fa6ea3803e0178f41ef SHA1 e00ead252760613865f5e655ff2e559e7578d28f SHA256 b6166c27021880ee1509eb68092f0d3d0550adb9d6b0dcb9396c91c725c5218e
+AUX gentoo-defaults.rb 820 RMD160 5a43a4ba4d46d729c84b0320548a987b3f7fda16 SHA1 43b1cd05fdfb053ac19148f1fd40848103ea58c1 SHA256 50b5166befc54454a0751fbefd828eca12484ed4deb44e5ae97f89d251bd47f4
AUX init.d-gem_server2 502 RMD160 baf764bc5ad41adce73576b2376093744ddd3917 SHA1 ad332343eab53b4be8d796999063ec2018245a4b SHA256 b7f7d215bb3dba02150dbdc431a84308010515ad4c5d9776d0dd5b99bf9a2cee
AUX rubygems-1.3.3-gentoo.patch 1422 RMD160 e39a2042170399d0e98c772b0572026d6057353d SHA1 11cb4656b77185c78df809d3180061e5fe41139b SHA256 95e6c7ea38177b0798562be5abaf040e72db4a27f851502d91c4453890e630b0
AUX rubygems-1.3.5-setup.patch 942 RMD160 69e8714f72482387019bad7b9254110c6bb8b957 SHA1 ba58de08e29731de4ce820f7d8e4c60de2fcee6e SHA256 d3e7c43ff20a649d1c731e27b0791f110b920201a28607091da0166495709b97
-AUX rubygems-1.3.7-ruby19.patch 584 RMD160 7f0587930ca8a2a9e1f489169338108020173c01 SHA1 d921a4d2bc794b7e6f8b1472a50b7252eebca609 SHA256 8f0543a261b14e1531047fe6a147402e8db02886b5c566ee3222d9606e8a1eb1
-AUX rubygems-1.3.7-rubyee.patch 825 RMD160 d406da8f27ab69de6cea2aec04b954581e271456 SHA1 23a244497f2e495047c65ea9ad030a81c186e3d4 SHA256 4f272cdfe2383546edcefa11a816b4b4c8ab9bd78e5f23f4f737b6fce2f705c0
-AUX rubygems-rubyee.patch 949 RMD160 7a819de691d457fdef426176534be97444b9a983 SHA1 deffcf777502399058b091b0f05feed8cdbc79ca SHA256 50af5257189b42c7795eaa33b83feed5b46949a1620a1b18ea289c1326dfd2a8
+AUX rubygems-1.3.7-gentoo.patch 3935 RMD160 cb01379f53d78688f700c23adf4fb5bf1244da59 SHA1 cbb9a8f473a4762e1c2d09b8bf109f751383a430 SHA256 fbe2ec29bd9f8f7701819c779d8f18e5124d427d4febae5a2b5b9a92a62e6c57
DIST rubygems-1.3.5.tgz 278469 RMD160 2d17f0de2d387bd2a034916cb79531110f3be196 SHA1 8545f25d00c757a310b879a2580e56d6012fc981 SHA256 c0928cc1ae54dedfb5f57ad3829882c1f90e42bc17bf50491aa6f93a937546ac
DIST rubygems-1.3.6.tgz 285167 RMD160 f2aa5155a79f07a3f9106e90a4d1e4d39d31cc5a SHA1 ad6606d1eae82cb69381e4f5b2022d2f3f2733f3 SHA256 5c6e6ca672b68acccb8f898670f1661307dea8668fc7f71bb421cab51208d7b0
DIST rubygems-1.3.7.tgz 290986 RMD160 2ea8e16d1535216045798258603d5f2f9e3dbfea SHA1 68ad2970963db9893b76acc8777be72a77c4bee4 SHA256 388b90ae6273f655507b10c8ba6bee9ea72e7d49c3e610025531cb8c3ba67c9d
EBUILD rubygems-1.3.5-r1.ebuild 2809 RMD160 beafa61db1cc38a9ddfdb33ec70109bfbf1310c8 SHA1 1118c3f668f1fea1b4e6e74a051a668d8c78f42c SHA256 08cc7b6c18304a5a99d7527525ca8825b8828884a70a7d66325bf6bfa43ee089
-EBUILD rubygems-1.3.5-r3.ebuild 3028 RMD160 67e906d35784d62dd31203b582fadeb904890ee9 SHA1 3caf5fc719c79205805bed6082d40dc9ab70d816 SHA256 8b28ca2c63cd22bdd010b1eec9fcc15f5900210e5740b9aaefe02faf6a706028
EBUILD rubygems-1.3.5.ebuild 3166 RMD160 95a7edee644212eabf8a86f1dc42d06c14a3deed SHA1 8c1b5af2fd039e655628a1884697883824b0bafc SHA256 14822c8c0b156a93a8ab2215b5502f7cea55c2cbce8a57b5ddd7eec2753338b1
-EBUILD rubygems-1.3.6-r2.ebuild 3252 RMD160 cf0d122e362d0a75ff8187cc053319c4b2174cc4 SHA1 3a962a853a2c5adb6454be06df763ceb68c39b4a SHA256 51a72883760f1f2616f4808f43ad1c2f7e1435540cb07b6acbb5dc094963c610
-EBUILD rubygems-1.3.6.ebuild 3096 RMD160 3abcac49900105943cbf2bbde168c97d088b162d SHA1 f598b8ab87f175ead2cb73ed599c37bfe6094fe4 SHA256 492d0c250fb3a7c5d84d52301c7ca4e4eaa942d452cbcf096c5fefe69e4c8ea9
-EBUILD rubygems-1.3.7-r1.ebuild 3405 RMD160 b2876e032b5f9609ea863e25338ab491df407ba1 SHA1 78252070356461745b7c8ac4a4e5f635bb2c1963 SHA256 38b98cce5addf5b45a9ebc6b4d2c1dad56c2ee8de61cb0cef58bcc50d076d9fc
-EBUILD rubygems-1.3.7.ebuild 3314 RMD160 e5905ad88c7f210df0978f0ba804c9e7aa533171 SHA1 3ea9c3519266f8ff546a6c6de6d028b67f38e83c SHA256 cbfab609137b0d8ebcd57165a7d2d15662bae18dd7dbc30d00c4eee20c06435d
-MISC ChangeLog 22535 RMD160 d7da6997f0ba02f1507383d37783b3e4fa58cba8 SHA1 5a6ab43b0ac35fc6b96ae3187c0b771fbf839431 SHA256 166c48c29dfdc65b9b2b9e175be27e5e594ee409c477e4bc8d371c37d01193e9
+EBUILD rubygems-1.3.6-r2.ebuild 2997 RMD160 c8496bebae44151a36eb9f553ceca30c0a5e3acc SHA1 33702cadaeba81f923bee1a0202098fb7e4b61cd SHA256 81c1eec7512baa6f61ad060227604934f68b4b60b36c33c2eee7c569a980a9cc
+EBUILD rubygems-1.3.7-r2.ebuild 3205 RMD160 d46418f2eb975714370f88ddc12a8b0dcdb14488 SHA1 2eec9c4085ed1344c236c30b04cdcb89f96bc18f SHA256 e231e2c415f5d6f7f068563454e36e4a656aa6a88516850cd3d537144e30d523
+EBUILD rubygems-1.3.7.ebuild 2995 RMD160 444255eabf7d6674b80b3c7cc28b5a4f2e47ef1a SHA1 3e9b0f936c8b78e0b1a7e69f8bd8f63df2843e03 SHA256 6b5d757fb5101cb255bb42a463bc65ad1c20486e758a58006cb4a1ae624b5199
+MISC ChangeLog 23951 RMD160 65564701d96536a5711ac9f77e814243fdbfd823 SHA1 97390dd6d916634826e773665bb32dcc2d07f985 SHA256 26332252388193a4f5fb6411107b41f198061f8191a944c89be459a7c22cd51b
MISC metadata.xml 247 RMD160 eb1d10b4366542ce2f232dcaf7317341b6b5608f SHA1 fcb6e2a1d6cda6d45640f9c5a5dfcc0fd4f3ab3b SHA256 633ae9912e8dd27f76b9cf53f5ad0d3222db85d9a19a76da7fd5e26f40b144e3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAkxYPt4ACgkQAiZjviIA2XjWoACaAhM4zsT7TkciawRPLjpkMnIu
+lGQAoOdo122mjzhAThRCYHdPiOGIO3xl
+=Z46M
+-----END PGP SIGNATURE-----
diff --git a/dev-ruby/rubygems/files/auto_gem.rb.jruby b/dev-ruby/rubygems/files/auto_gem.rb.jruby
deleted file mode 100644
index 5c4f540a92df..000000000000
--- a/dev-ruby/rubygems/files/auto_gem.rb.jruby
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file is installed by Gentoo's rubygems package.
-# It's intended to help automate the loading of rubygems
-
-begin
-require 'rubygems'
-rescue LoadError
-end
diff --git a/dev-ruby/rubygems/files/auto_gem.rb.ruby18 b/dev-ruby/rubygems/files/auto_gem.rb.ruby18
deleted file mode 100644
index 5c4f540a92df..000000000000
--- a/dev-ruby/rubygems/files/auto_gem.rb.ruby18
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file is installed by Gentoo's rubygems package.
-# It's intended to help automate the loading of rubygems
-
-begin
-require 'rubygems'
-rescue LoadError
-end
diff --git a/dev-ruby/rubygems/files/auto_gem.rb.rubyee18 b/dev-ruby/rubygems/files/auto_gem.rb.rubyee18
deleted file mode 100644
index 5c4f540a92df..000000000000
--- a/dev-ruby/rubygems/files/auto_gem.rb.rubyee18
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file is installed by Gentoo's rubygems package.
-# It's intended to help automate the loading of rubygems
-
-begin
-require 'rubygems'
-rescue LoadError
-end
diff --git a/dev-ruby/rubygems/files/gentoo-defaults.rb b/dev-ruby/rubygems/files/gentoo-defaults.rb
new file mode 100644
index 000000000000..dba852e4203d
--- /dev/null
+++ b/dev-ruby/rubygems/files/gentoo-defaults.rb
@@ -0,0 +1,38 @@
+module Gem
+
+ class << self
+ def portage_gems_dir
+ ConfigMap[:sitelibdir].gsub('site_ruby', 'gems')
+ end
+
+ undef :default_dir
+ def default_dir
+ portage_gems_dir.gsub('@GENTOO_PORTAGE_EPREFIX@/usr', '@GENTOO_PORTAGE_EPREFIX@/usr/local')
+ end
+
+ undef :default_path
+ def default_path
+ [user_dir, default_dir, portage_gems_dir]
+ end
+
+ undef :default_bindir
+ def default_bindir
+ "@GENTOO_PORTAGE_EPREFIX@/usr/local/bin"
+ end
+
+ undef :ruby_engine
+ def ruby_engine
+ if RUBY_DESCRIPTION =~ /Ruby Enterprise Edition/
+ "rubyee"
+ else
+ # Ruby 1.8 and Ruby 1.9.2_rc2 and later install here, and JRuby
+ # rewrites that anyway.
+ "ruby"
+ end
+ end
+
+ def system_config_path
+ "@GENTOO_PORTAGE_EPREFIX@/etc"
+ end
+ end
+end
diff --git a/dev-ruby/rubygems/files/init.d-gem_server b/dev-ruby/rubygems/files/init.d-gem_server
deleted file mode 100644
index 1600bdc12349..000000000000
--- a/dev-ruby/rubygems/files/init.d-gem_server
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-PID=/var/run/gem_server.pid
-
-depend() {
- need localmount net
-}
-
-start() {
- ebegin "Starting gem_server"
- start-stop-daemon --start --chuid nobody --quiet --background --make-pidfile \
- --pidfile ${PID} --exec /usr/bin/ruby -- /usr/bin/gem_server ${GEM_SERVER_OPTS}
- eend ${?}
-}
-
-stop() {
- ebegin "Stopping gem_server"
- start-stop-daemon --stop --pidfile ${PID}
- eend ${?}
-}
diff --git a/dev-ruby/rubygems/files/rubygems-1.3.7-gentoo.patch b/dev-ruby/rubygems/files/rubygems-1.3.7-gentoo.patch
new file mode 100644
index 000000000000..88f03d10eeed
--- /dev/null
+++ b/dev-ruby/rubygems/files/rubygems-1.3.7-gentoo.patch
@@ -0,0 +1,132 @@
+diff --git a/Rakefile b/Rakefile
+index 51a7e4e..08592c2 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -68,6 +68,8 @@ task :prerelease => [:clobber, :sanity_check, :test, :test_functional]
+
+ task :postrelease => [:tag, :publish_docs]
+
++# don't assume it's always defined, as it requires OpenSSL
++if defined? Hoe::RubyForge
+ Rake::Task[:release_to_rubyforge].clear_actions
+
+ task :release_to_rubyforge do
+@@ -76,6 +78,7 @@ task :release_to_rubyforge do
+ rf.login
+ rf.add_file hoe.rubyforge_name, hoe.rubyforge_name, hoe.version, files.first
+ end
++end
+
+ pkg_dir_path = "pkg/rubygems-update-#{hoe.version}"
+ task pkg_dir_path do
+diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb
+index 7eb755a..6154fac 100644
+--- a/lib/rubygems/config_file.rb
++++ b/lib/rubygems/config_file.rb
+@@ -46,6 +46,9 @@ class Gem::ConfigFile
+ PLATFORM_DEFAULTS = {}
+
+ system_config_path =
++ if Gem.respond_to? :system_config_path
++ Gem::system_config_path
++ else
+ begin
+ require 'Win32API'
+
+@@ -65,6 +68,7 @@ class Gem::ConfigFile
+ rescue LoadError
+ '/etc'
+ end
++ end
+
+ SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'
+
+diff --git a/test/gemutilities.rb b/test/gemutilities.rb
+index 63c9510..2c75319 100644
+--- a/test/gemutilities.rb
++++ b/test/gemutilities.rb
+@@ -469,6 +469,14 @@ Also, a list:
+ RUBY_PLATFORM.match('mswin')
+ end
+
++ def self.jruby?
++ RUBY_PLATFORM == "java"
++ end
++
++ def jruby?
++ RUBY_PLATFORM == "java"
++ end
++
+ # Returns the make command for the current platform. For versions of Ruby
+ # built on MS Windows with VC++ or Borland it will return 'nmake'. On all
+ # other platforms, including Cygwin, it will return 'make'.
+diff --git a/test/test_gem_ext_ext_conf_builder.rb b/test/test_gem_ext_ext_conf_builder.rb
+index bc95fb1..c4a778b 100644
+--- a/test/test_gem_ext_ext_conf_builder.rb
++++ b/test/test_gem_ext_ext_conf_builder.rb
+@@ -14,6 +14,8 @@ class TestGemExtExtConfBuilder < RubyGemTestCase
+ end
+
+ def test_class_build
++ skip("test_class_build skipped - mkmf/extconf not supported on JRuby") if jruby?
++
+ if vc_windows? && !nmake_found?
+ skip("test_class_build skipped - nmake not found")
+ end
+@@ -50,6 +52,8 @@ class TestGemExtExtConfBuilder < RubyGemTestCase
+ end
+
+ def test_class_build_extconf_fail
++ skip("test_class_build_extconf_fail skipped - mkmf/extconf not supported on JRuby") if jruby?
++
+ if vc_windows? && !nmake_found?
+ skip("test_class_build_extconf_fail skipped - nmake not found")
+ end
+@@ -77,6 +81,8 @@ checking for main\(\) in .*?nonexistent/m, error.message)
+ end
+
+ def test_class_make
++ skip("test_class_make skipped - mkmf/extconf not supported on JRuby") if jruby?
++
+ if vc_windows? && !nmake_found?
+ skip("test_class_make skipped - nmake not found")
+ end
+@@ -108,6 +114,8 @@ install:
+ end
+
+ def test_class_make_no_Makefile
++ skip("test_class_make_no_Makefile skipped - mkmf/extconf not supported on JRuby") if jruby?
++
+ error = assert_raises Gem::InstallError do
+ Dir.chdir @ext do
+ Gem::Ext::ExtConfBuilder.make @ext, ['output']
+diff --git a/test/test_gem_remote_fetcher.rb b/test/test_gem_remote_fetcher.rb
+index 570d2b4..c94112b 100644
+--- a/test/test_gem_remote_fetcher.rb
++++ b/test/test_gem_remote_fetcher.rb
+@@ -695,7 +695,6 @@ gems:
+ private
+
+ def start_server(port, data)
+- Thread.new do
+ begin
+ null_logger = NilLog.new
+ s = WEBrick::HTTPServer.new(
+@@ -726,7 +725,9 @@ gems:
+ res['Content-Type'] = 'text/html'
+ end
+ }
++ Thread.new do
+ s.start
++ end
+ rescue Exception => ex
+ abort ex.message
+ puts "ERROR during server thread: #{ex.message}"
+@@ -734,7 +735,6 @@ gems:
+ end
+ sleep 0.2 # Give the servers time to startup
+ end
+- end
+
+ end
+
diff --git a/dev-ruby/rubygems/files/rubygems-1.3.7-ruby19.patch b/dev-ruby/rubygems/files/rubygems-1.3.7-ruby19.patch
deleted file mode 100644
index 6d71989f8c3d..000000000000
--- a/dev-ruby/rubygems/files/rubygems-1.3.7-ruby19.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Smaller portion of the REE patch.
-We still need to bend the gem installation path until we install 1.9 in /usr/lib/ruby/ just like 1.8.
-
---- lib/rubygems/defaults.rb.orig 2010-05-16 15:11:19.359858029 +0200
-+++ lib/rubygems/defaults.rb 2010-05-16 15:11:43.855868924 +0200
-@@ -24,7 +24,7 @@
- File.join(ConfigMap[:rubylibprefix], 'gems',
- ConfigMap[:ruby_version])
- else
-- File.join(ConfigMap[:libdir], ruby_engine, 'gems',
-+ File.join(ConfigMap[:sitedir].gsub(/site_ruby\/?$/, ''), 'gems',
- ConfigMap[:ruby_version])
- end
- end
diff --git a/dev-ruby/rubygems/files/rubygems-1.3.7-rubyee.patch b/dev-ruby/rubygems/files/rubygems-1.3.7-rubyee.patch
deleted file mode 100644
index 7e40ad575807..000000000000
--- a/dev-ruby/rubygems/files/rubygems-1.3.7-rubyee.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- lib/rubygems/defaults.rb.orig 2010-05-14 20:43:47.051675672 +0200
-+++ lib/rubygems/defaults.rb 2010-05-14 20:50:32.023684192 +0200
-@@ -1,3 +1,4 @@
-+# This file is altered for Ruby Enterprise Edition on Gentoo.
- module Gem
-
- @post_install_hooks ||= []
-@@ -24,7 +25,7 @@
- File.join(ConfigMap[:rubylibprefix], 'gems',
- ConfigMap[:ruby_version])
- else
-- File.join(ConfigMap[:libdir], ruby_engine, 'gems',
-+ File.join(ConfigMap[:sitedir].gsub(/site_ruby\/?$/, ''), 'gems',
- ConfigMap[:ruby_version])
- end
- end
-@@ -33,7 +34,7 @@
- # Path for gems in the user's home directory
-
- def self.user_dir
-- File.join Gem.user_home, '.gem', ruby_engine, ConfigMap[:ruby_version]
-+ File.join Gem.user_home, '.gem', 'rubyee', ConfigMap[:ruby_version]
- end
-
- ##
diff --git a/dev-ruby/rubygems/files/rubygems-rubyee.patch b/dev-ruby/rubygems/files/rubygems-rubyee.patch
deleted file mode 100644
index da8d382429fe..000000000000
--- a/dev-ruby/rubygems/files/rubygems-rubyee.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-This patch makes RubyGems look inside ${libdir}/rubyee/ for
-Gems. This separates vanilla MRI 1.8 from REE. --a3li
-
---- lib/rubygems/defaults.rb.orig 2010-05-13 12:33:03.771476368 +0200
-+++ lib/rubygems/defaults.rb 2010-05-13 12:32:50.395473295 +0200
-@@ -1,3 +1,4 @@
-+# This file is altered for Ruby Enterprise Edition on Gentoo.
- module Gem
-
- @post_install_hooks ||= []
-@@ -25,7 +26,7 @@
- File.join(ConfigMap[:libdir], ConfigMap[:ruby_install_name], 'gems',
- ConfigMap[:ruby_version])
- else
-- File.join(ConfigMap[:libdir], ruby_engine, 'gems',
-+ File.join(ConfigMap[:sitedir].gsub(/site_ruby\/?$/, ''), 'gems',
- ConfigMap[:ruby_version])
- end
- end
-@@ -34,7 +35,7 @@
- # Path for gems in the user's home directory
-
- def self.user_dir
-- File.join(Gem.user_home, '.gem', ruby_engine,
-+ File.join(Gem.user_home, '.gem', 'rubyee',
- ConfigMap[:ruby_version])
- end
-
diff --git a/dev-ruby/rubygems/rubygems-1.3.5-r3.ebuild b/dev-ruby/rubygems/rubygems-1.3.5-r3.ebuild
deleted file mode 100644
index 6c0d63cf2d9c..000000000000
--- a/dev-ruby/rubygems/rubygems-1.3.5-r3.ebuild
+++ /dev/null
@@ -1,99 +0,0 @@
-# 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.5-r3.ebuild,v 1.1 2010/02/14 23:37:10 flameeyes Exp $
-
-EAPI="2"
-
-USE_RUBY="ruby18 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() {
- # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
- export RUBYOPT="${GENTOO_RUBYOPT}"
- ewarn "RUBYOPT=${RUBYOPT}"
-
- local gemsitedir=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["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
-}
-
-pkg_postinst() {
- local gemsitedir=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]' | sed -e 's:site_ruby:gems:')
- SOURCE_CACHE="${gemsitedir}/source_cache"
- if [[ -e "${SOURCE_CACHE}" ]]; then
- rm "${SOURCE_CACHE}"
- fi
-
- if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then
- eselect ruby set ruby18
- fi
-
- ewarn
- ewarn "This ebuild is compatible to eselect-ruby"
- 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"
-}
diff --git a/dev-ruby/rubygems/rubygems-1.3.6-r2.ebuild b/dev-ruby/rubygems/rubygems-1.3.6-r2.ebuild
index 554ad812052a..60f8b12bb709 100644
--- a/dev-ruby/rubygems/rubygems-1.3.6-r2.ebuild
+++ b/dev-ruby/rubygems/rubygems-1.3.6-r2.ebuild
@@ -1,6 +1,6 @@
# 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.6-r2.ebuild,v 1.8 2010/07/23 13:08:09 klausman Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.6-r2.ebuild,v 1.9 2010/08/03 16:07:36 flameeyes Exp $
EAPI="2"
@@ -36,16 +36,6 @@ all_ruby_prepare() {
epatch "${FILESDIR}/${PN}-1.3.3-gentoo.patch"
}
-each_ruby_prepare() {
- case ${RUBY} in
- *rubyee18)
- epatch "${FILESDIR}/${PN}-rubyee.patch" || die "ree patch failed"
- ;;
- *)
- ;;
- esac
-}
-
each_ruby_install() {
# Unset RUBYOPT to avoid interferences, bug #158455 et. al.
unset RUBYOPT
@@ -66,8 +56,7 @@ each_ruby_install() {
${RUBY} setup.rb $myconf --destdir="${D}" || die "setup.rb install failed"
- insinto $(ruby_rbconfig_value 'sitelibdir')
- newins "${FILESDIR}/auto_gem.rb.$(basename ${RUBY})" auto_gem.rb || die "newins auto_gem failed"
+ doruby "${FILESDIR}/auto_gem.rb"
}
all_ruby_install() {
diff --git a/dev-ruby/rubygems/rubygems-1.3.6.ebuild b/dev-ruby/rubygems/rubygems-1.3.6.ebuild
deleted file mode 100644
index 00982ac488c4..000000000000
--- a/dev-ruby/rubygems/rubygems-1.3.6.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# 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.6.ebuild,v 1.1 2010/04/03 06:42:03 a3li 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_prepare() {
- case ${RUBY} in
- *rubyee18)
- epatch "${FILESDIR}/${PN}-rubyee.patch"
- ;;
- *)
- ;;
- esac
-}
-
-each_ruby_install() {
- # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
- export RUBYOPT="${GENTOO_RUBYOPT}"
- ewarn "RUBYOPT=${RUBYOPT}"
-
- local gemsitedir=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["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
-}
-
-pkg_postinst() {
- local gemsitedir=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]' | sed -e 's:site_ruby:gems:')
- SOURCE_CACHE="${gemsitedir}/source_cache"
- if [[ -e "${SOURCE_CACHE}" ]]; then
- rm "${SOURCE_CACHE}"
- fi
-
- if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then
- eselect ruby set ruby18
- 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"
-}
diff --git a/dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild b/dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild
deleted file mode 100644
index 3adf527a16bc..000000000000
--- a/dev-ruby/rubygems/rubygems-1.3.7-r1.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# 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.1 2010/05/16 13:30:02 a3li Exp $
-
-EAPI="2"
-
-USE_RUBY="ruby18 ruby19 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 )
- ruby_targets_ruby19? ( >=dev-lang/ruby-1.9.1_p376 )
-"
-
-# 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_prepare() {
- case ${RUBY} in
- *rubyee18)
- epatch "${FILESDIR}/${P}-rubyee.patch" || die "ree patch failed"
- ;;
- *ruby19)
- epatch "${FILESDIR}/${P}-ruby19.patch" || die "ruby19 patch failed"
- ;;
- *)
- ;;
- esac
-}
-
-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"
-
- insinto $(ruby_rbconfig_value 'sitelibdir')
- newins "${FILESDIR}/auto_gem.rb.$(basename ${RUBY})" auto_gem.rb || die "newins auto_gem failed"
-}
-
-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"
-}
diff --git a/dev-ruby/rubygems/rubygems-1.3.7-r2.ebuild b/dev-ruby/rubygems/rubygems-1.3.7-r2.ebuild
new file mode 100644
index 000000000000..fd464a176198
--- /dev/null
+++ b/dev-ruby/rubygems/rubygems-1.3.7-r2.ebuild
@@ -0,0 +1,121 @@
+# 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-r2.ebuild,v 1.1 2010/08/03 16:07:36 flameeyes Exp $
+
+EAPI="3"
+
+USE_RUBY="ruby18 ruby19 ree18 jruby"
+
+inherit ruby-ng prefix
+
+DESCRIPTION="Centralized Ruby extension management system"
+HOMEPAGE="http://rubyforge.org/projects/rubygems/"
+LICENSE="|| ( Ruby GPL-2 )"
+
+SRC_URI="mirror://rubyforge/${PN}/${P}.tgz"
+
+KEYWORDS="~amd64 ~hppa ~ia64 ~mips ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+IUSE="server test"
+
+RDEPEND="
+ ruby_targets_jruby? ( >=dev-java/jruby-1.4.0-r5 )
+ ruby_targets_ruby19? ( >=dev-lang/ruby-1.9.2_rc2 )"
+
+# index_gem_repository.rb
+PDEPEND="server? ( dev-ruby/builder[ruby_targets_ruby18] )"
+
+# Tests fail _badly_ when YARD is installed.. but just the
+# rdoc-related stuff, so it's not a mistake.
+ruby_add_bdepend "
+ test? (
+ dev-ruby/rake
+ dev-ruby/hoe
+ virtual/ruby-minitest
+ dev-ruby/builder
+ !dev-ruby/yard
+ !dev-ruby/test-unit:2
+ )"
+
+# Until all the JRuby tests' failures are sorted out
+RESTRICT="ruby_targets_jruby? ( test )"
+
+RUBY_PATCHES=(
+ "${FILESDIR}/${P}-gentoo.patch"
+)
+
+all_ruby_prepare() {
+ mkdir -p lib/rubygems/defaults || die
+ cp "${FILESDIR}/gentoo-defaults.rb" lib/rubygems/defaults/operating_system.rb || die
+
+ eprefixify lib/rubygems/defaults/operating_system.rb
+
+ # Disable broken tests when changing defaults:
+ sed -i -e '/^ def test_self_bindir_default_dir/, /^ end/ s:^:#:' \
+ test/test_gem.rb || die
+}
+
+each_ruby_compile() {
+ # Not really a build but...
+ sed -i -e 's:#!.*:#!'"${RUBY}"':' bin/gem
+}
+
+each_ruby_test() {
+ # Unset RUBYOPT to avoid interferences, bug #158455 et. al.
+ unset RUBYOPT
+
+ RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} -S rake test || die "tests failed"
+}
+
+each_ruby_install() {
+ # Unset RUBYOPT to avoid interferences, bug #158455 et. al.
+ unset RUBYOPT
+
+ pushd lib &>/dev/null
+ doruby -r *
+ popd &>/dev/null
+
+ case "${RUBY}" in
+ *ruby19)
+ insinto $(ruby_rbconfig_value 'sitelibdir')
+ newins "${FILESDIR}/auto_gem.rb.ruby19" auto_gem.rb || die
+ ;;
+ *)
+ doruby "${FILESDIR}/auto_gem.rb" || die
+ ;;
+ esac
+
+ newbin bin/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') || die
+}
+
+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
+}
+
+pkg_postinst() {
+ 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"
+}
diff --git a/dev-ruby/rubygems/rubygems-1.3.7.ebuild b/dev-ruby/rubygems/rubygems-1.3.7.ebuild
index a532397e8a47..af53c4a697fa 100644
--- a/dev-ruby/rubygems/rubygems-1.3.7.ebuild
+++ b/dev-ruby/rubygems/rubygems-1.3.7.ebuild
@@ -1,10 +1,10 @@
# 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.ebuild,v 1.1 2010/05/14 19:04:17 a3li Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.7.ebuild,v 1.2 2010/08/03 16:07:36 flameeyes Exp $
EAPI="2"
-USE_RUBY="ruby18 ruby19 ree18 jruby"
+USE_RUBY="ruby18 jruby"
inherit ruby-ng
@@ -22,10 +22,7 @@ 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 )
- ruby_targets_ruby19? ( >=dev-lang/ruby-1.9.1_p376 )
-"
+RDEPEND="ruby_targets_jruby? ( >=dev-java/jruby-1.4.0-r5 )"
# index_gem_repository.rb
PDEPEND="server? ( dev-ruby/builder[ruby_targets_ruby18] )"
@@ -37,16 +34,6 @@ all_ruby_prepare() {
epatch "${FILESDIR}/${PN}-1.3.3-gentoo.patch"
}
-each_ruby_prepare() {
- case ${RUBY} in
- *rubyee18)
- epatch "${FILESDIR}/${P}-rubyee.patch" || die "ree patch failed"
- ;;
- *)
- ;;
- esac
-}
-
each_ruby_install() {
# Unset RUBYOPT to avoid interferences, bug #158455 et. al.
unset RUBYOPT
@@ -67,8 +54,7 @@ each_ruby_install() {
${RUBY} setup.rb $myconf --destdir="${D}" || die "setup.rb install failed"
- insinto $(ruby_rbconfig_value 'sitelibdir')
- newins "${FILESDIR}/auto_gem.rb.$(basename ${RUBY})" auto_gem.rb || die "newins auto_gem failed"
+ doruby "${FILESDIR}/auto_gem.rb"
}
all_ruby_install() {