summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rubygems/Manifest12
-rw-r--r--dev-ruby/rubygems/files/digest-rubygems-0.9.53
-rw-r--r--dev-ruby/rubygems/files/rubygems-0.9.5-setup.patch70
-rw-r--r--dev-ruby/rubygems/rubygems-0.9.5.ebuild93
4 files changed, 178 insertions, 0 deletions
diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest
index 2fd9fa17eb63..5d8cadf6b849 100644
--- a/dev-ruby/rubygems/Manifest
+++ b/dev-ruby/rubygems/Manifest
@@ -42,8 +42,13 @@ AUX rubygems-0.9.4-shebang-env-fix.patch 1064 RMD160 c9532f60054199cd4c2a2e305e1
MD5 4e18e9fad034f189ba521581572fdde6 files/rubygems-0.9.4-shebang-env-fix.patch 1064
RMD160 c9532f60054199cd4c2a2e305e114a28eb929bfa files/rubygems-0.9.4-shebang-env-fix.patch 1064
SHA256 50402d910bf01e59f68d4aba4aedd5218ecd927d13fe2aa84fbd36b893c1c22e files/rubygems-0.9.4-shebang-env-fix.patch 1064
+AUX rubygems-0.9.5-setup.patch 1794 RMD160 3b417ae647a187dbfa27aeca41c045a5e593400c SHA1 e3216b98fa73790c5294e429814a4afa6479d202 SHA256 1c516056489c760de1aa2bdd826c763cfb72193f9b038023499f7b08bec7579a
+MD5 e51f23b18ac781b6da5f330c33c4b2e4 files/rubygems-0.9.5-setup.patch 1794
+RMD160 3b417ae647a187dbfa27aeca41c045a5e593400c files/rubygems-0.9.5-setup.patch 1794
+SHA256 1c516056489c760de1aa2bdd826c763cfb72193f9b038023499f7b08bec7579a files/rubygems-0.9.5-setup.patch 1794
DIST rubygems-0.8.11.tgz 160265 RMD160 381ef7f088b3b439f28797d6d7a3257b3e28d6e4 SHA1 6a7d047349a073f24621e589f50a6a6548f943be SHA256 6ad2b857248aef0e9a5297f708f9988fbade78e16d670109937a73e56fdbae6d
DIST rubygems-0.9.4.tgz 204841 RMD160 6ee02db45173f05e6f8c5b1ecd5af832fb8601f8 SHA1 904080d36e34d7a6969c3cef228380eb82688d2a SHA256 b4d47bcfe2f3b08f7c3bb659a2f4e34a3fa9c1135ba98ad3272753753c354e5c
+DIST rubygems-0.9.5.tgz 226070 RMD160 c22d5092c62f36c6025658962052b582609e4fb7 SHA1 73cb8f226bd9c623abf5dff35861bda43e4ce793 SHA256 a2da0229a6d834695ed1530895cc3d9653f7f8b333aa4122fe1f7c41b92fb9ce
EBUILD rubygems-0.8.11-r6.ebuild 1689 RMD160 62663f7c3f60be3c31bda96c967dd32425bbf6cb SHA1 6f1e9597fd17d1d72a15721d73ca614a667f8cbf SHA256 70f91c1d0abf91897796f0dfcfcb42472b28c6c29e26740be578c2c44b0d4215
MD5 1ce9a22f221bd60239cc8c31008df814 rubygems-0.8.11-r6.ebuild 1689
RMD160 62663f7c3f60be3c31bda96c967dd32425bbf6cb rubygems-0.8.11-r6.ebuild 1689
@@ -60,6 +65,10 @@ EBUILD rubygems-0.9.4.ebuild 2753 RMD160 62d3725c309778184b5639bf80d0a3277b7be75
MD5 9fb8a7f4eb4b434f2716b2ea712a7f9b rubygems-0.9.4.ebuild 2753
RMD160 62d3725c309778184b5639bf80d0a3277b7be752 rubygems-0.9.4.ebuild 2753
SHA256 0466e321185e2bef8b796c0de744ef58de27a64cb98f65651b1e0e1cd659df35 rubygems-0.9.4.ebuild 2753
+EBUILD rubygems-0.9.5.ebuild 2733 RMD160 0511688319689bd980683420779d864eb9b11dd3 SHA1 7a5182101ac67259c6724fb043d72f060744d4ef SHA256 5b3de281fc8dca7c9a4d455153bdf37ddfc30a6f90ed73324a2fc60caeced1ff
+MD5 0c9cbc273b876e524e7e3e8fb419040c rubygems-0.9.5.ebuild 2733
+RMD160 0511688319689bd980683420779d864eb9b11dd3 rubygems-0.9.5.ebuild 2733
+SHA256 5b3de281fc8dca7c9a4d455153bdf37ddfc30a6f90ed73324a2fc60caeced1ff rubygems-0.9.5.ebuild 2733
MISC ChangeLog 10900 RMD160 e04c64ebf24f455187da9c38f5112160b4fe643a SHA1 9d473c0a647e729f2f101865d4b3a99b94cc788a SHA256 f62bbbf9e47a422efb1de56fe5d29b538ed9e942094423142f6ef19647b8bedf
MD5 4a90cd5c1b348658122bb593f3053e6e ChangeLog 10900
RMD160 e04c64ebf24f455187da9c38f5112160b4fe643a ChangeLog 10900
@@ -80,3 +89,6 @@ SHA256 01e01f85b72c814b08949caff97674ef45d0560c218c1de3d3814b9310b1d4d1 files/di
MD5 c7ab1d478ef92824585c153009dff80b files/digest-rubygems-0.9.4-r2 235
RMD160 3a4038918818bfe86f352858b2ee4656c761c4d2 files/digest-rubygems-0.9.4-r2 235
SHA256 01e01f85b72c814b08949caff97674ef45d0560c218c1de3d3814b9310b1d4d1 files/digest-rubygems-0.9.4-r2 235
+MD5 65eda3c9f23d63100c282f15f76b3ae4 files/digest-rubygems-0.9.5 235
+RMD160 f3a3b5dfd6f7f0d7007554eb9dfa56a84f19e09b files/digest-rubygems-0.9.5 235
+SHA256 803095f85656d5112d4cebf98c6ad23501854ad6dc778dcfad40e1fb66b6b4df files/digest-rubygems-0.9.5 235
diff --git a/dev-ruby/rubygems/files/digest-rubygems-0.9.5 b/dev-ruby/rubygems/files/digest-rubygems-0.9.5
new file mode 100644
index 000000000000..d68ffb9b6e65
--- /dev/null
+++ b/dev-ruby/rubygems/files/digest-rubygems-0.9.5
@@ -0,0 +1,3 @@
+MD5 91f7036a724e34cc66dd8d09348733d9 rubygems-0.9.5.tgz 226070
+RMD160 c22d5092c62f36c6025658962052b582609e4fb7 rubygems-0.9.5.tgz 226070
+SHA256 a2da0229a6d834695ed1530895cc3d9653f7f8b333aa4122fe1f7c41b92fb9ce rubygems-0.9.5.tgz 226070
diff --git a/dev-ruby/rubygems/files/rubygems-0.9.5-setup.patch b/dev-ruby/rubygems/files/rubygems-0.9.5-setup.patch
new file mode 100644
index 000000000000..789c68018fca
--- /dev/null
+++ b/dev-ruby/rubygems/files/rubygems-0.9.5-setup.patch
@@ -0,0 +1,70 @@
+Index: setup.rb
+===================================================================
+--- setup.rb (revision 1542)
++++ setup.rb (working copy)
+@@ -72,8 +72,8 @@
+
+ raise "invalid --prefix #{prefix.inspect}" if prefix.nil?
+
+- lib_dir = File.join prefix, 'lib'
+- bin_dir = File.join prefix, 'bin'
++ lib_dir = File.join prefix, Config::CONFIG['sitelibdir']
++ bin_dir = File.join prefix, Config::CONFIG['bindir']
+
+ mkdir_p lib_dir
+ mkdir_p bin_dir
+@@ -173,26 +173,12 @@
+ end
+ end
+
+-# Remove source caches
+-
+-require 'rubygems/source_info_cache'
+-
+-user_cache_file = Gem::SourceInfoCache.user_cache_file
+-system_cache_file = Gem::SourceInfoCache.system_cache_file
+-
+-rm user_cache_file if File.writable? user_cache_file
+-rm system_cache_file if File.writable? system_cache_file
+-
+ # install RDoc
+
+-gem_doc_dir = File.join Gem.dir, 'doc'
++gem_doc_dir = File.join prefix, Gem.dir, 'doc'
+
++unless ARGV.include? '--no-rdoc'
+ if File.writable? gem_doc_dir then
+- puts "Removing old RubyGems RDoc and ri..."
+- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
+- rm_rf dir
+- end
+-
+ def run_rdoc(*args)
+ args << '--quiet'
+ args << '--main' << 'README'
+@@ -204,7 +190,7 @@
+
+ rubygems_name = "rubygems-#{Gem::RubyGemsVersion}"
+
+- doc_dir = File.join Gem.dir, 'doc', rubygems_name
++ doc_dir = File.join prefix, Gem.dir, 'doc', rubygems_name
+
+ unless ARGV.include? '--no-ri' then
+ ri_dir = File.join doc_dir, 'ri'
+@@ -221,8 +207,10 @@
+ puts "Skipping RDoc generation, #{gem_doc_dir} not writable"
+ puts "Set the GEM_HOME environment variable if you want RDoc generated"
+ end
++end
+
+ # Remove stubs
++if false # Don't want this
+
+ def stub?(path)
+ return unless File.readable? path
+@@ -268,3 +256,4 @@
+ puts "No library stubs found."
+ end
+
++end
+
diff --git a/dev-ruby/rubygems/rubygems-0.9.5.ebuild b/dev-ruby/rubygems/rubygems-0.9.5.ebuild
new file mode 100644
index 000000000000..1a5748f18d4c
--- /dev/null
+++ b/dev-ruby/rubygems/rubygems-0.9.5.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-0.9.5.ebuild,v 1.1 2007/12/15 17:34:26 rbrown Exp $
+
+inherit ruby
+
+DESCRIPTION="Centralized Ruby extension management system"
+HOMEPAGE="http://rubyforge.org/projects/rubygems/"
+LICENSE="Ruby"
+
+# Needs to be installed first
+RESTRICT="test"
+
+# The URL depends implicitly on the version, unfortunately. Even if you
+# change the filename on the end, it still downloads the same file.
+SRC_URI="http://rubyforge.org/frs/download.php/28174/${P}.tgz"
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+IUSE="doc server examples"
+DEPEND=">=dev-lang/ruby-1.8"
+PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb
+
+USE_RUBY="ruby18"
+
+PATCHES="${FILESDIR}/${P}-setup.patch"
+
+src_unpack() {
+ ruby_src_unpack
+
+ # Delete mis-packaged . files
+ cd "${S}"
+ find -name '.*' -type f -print0|xargs -0 rm
+
+}
+
+src_compile() {
+ # Allowing ruby_src_compile would be bad with the new setup.rb
+ :
+}
+
+src_install() {
+ # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
+ export RUBYOPT="${GENTOO_RUBYOPT}"
+
+ ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
+ export GEM_HOME="/usr/$(get_libdir)/ruby/gems/${ver}"
+ keepdir /usr/$(get_libdir)/ruby/gems/$ver/{doc,gems,cache,specifications}
+
+ myconf="--no-ri"
+ if ! use doc; then
+ myconf="${myconf} --no-rdoc"
+ fi
+
+ ${RUBY} setup.rb $myconf --prefix="${D}" || die "setup.rb install failed"
+
+ dodoc README
+ if use examples; then
+ cp -pPR examples "${D}/usr/share/doc/${PF}"
+ fi
+
+ cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
+ doenvd "${FILESDIR}/10rubygems"
+
+ if use server; then
+ newinitd "${FILESDIR}/init.d-gem_server" gem_server
+ newconfd "${FILESDIR}/conf.d-gem_server" gem_server
+ fi
+}
+
+pkg_postinst()
+{
+ ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
+ SOURCE_CACHE="/usr/$(get_libdir)/ruby/gems/$ver/source_cache"
+ if [[ -e "${SOURCE_CACHE}" ]]; then
+ rm "${SOURCE_CACHE}"
+ fi
+
+ ewarn "If you have previously switched to using ruby18_with_gems using ruby-config, this"
+ ewarn "package has removed that file and makes it unnecessary anymore."
+ ewarn "Please use ruby-config to revert back to ruby18."
+}
+
+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"
+}