summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Thai Ngoc Duy <pclouds@gentoo.org>2007-01-17 14:01:13 +0000
committerNguyen Thai Ngoc Duy <pclouds@gentoo.org>2007-01-17 14:01:13 +0000
commit884324fa4f342e272a894fb582e74612723860a1 (patch)
treeb1feac823347f85b0f184d3d2f4c1a3d9e03dd32 /dev-ruby
parentAdded rubygems-0.9.1 (diff)
downloadgentoo-2-884324fa4f342e272a894fb582e74612723860a1.tar.gz
gentoo-2-884324fa4f342e272a894fb582e74612723860a1.tar.bz2
gentoo-2-884324fa4f342e272a894fb582e74612723860a1.zip
rubygems-0.9.1
(Portage version: 2.1.2_rc4-r5)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rubygems/ChangeLog11
-rw-r--r--dev-ruby/rubygems/files/digest-rubygems-0.9.13
-rw-r--r--dev-ruby/rubygems/files/rubygems-0.9.1-no_post_install.patch9
-rw-r--r--dev-ruby/rubygems/files/rubygems-0.9.1-no_rdoc_install.patch11
-rw-r--r--dev-ruby/rubygems/rubygems-0.9.1.ebuild66
5 files changed, 98 insertions, 2 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog
index 8839695c1e1d..62f95eab143f 100644
--- a/dev-ruby/rubygems/ChangeLog
+++ b/dev-ruby/rubygems/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-ruby/rubygems
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.39 2006/12/23 01:27:10 pclouds Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.40 2007/01/17 14:01:13 pclouds Exp $
+
+*rubygems-0.9.1 (17 Jan 2007)
+
+ 17 Jan 2007; Nguyễn Thái Ngọc Duy <pclouds@gentoo.org>
+ +files/rubygems-0.9.1-no_post_install.patch,
+ +files/rubygems-0.9.1-no_rdoc_install.patch, +rubygems-0.9.1.ebuild:
+ Version bump
23 Dec 2006; Nguyễn Thái Ngọc Duy <pclouds@gentoo.org>
rubygems-0.9.0-r2.ebuild, rubygems-0.8.11-r5.ebuild:
diff --git a/dev-ruby/rubygems/files/digest-rubygems-0.9.1 b/dev-ruby/rubygems/files/digest-rubygems-0.9.1
new file mode 100644
index 000000000000..967efde8c487
--- /dev/null
+++ b/dev-ruby/rubygems/files/digest-rubygems-0.9.1
@@ -0,0 +1,3 @@
+MD5 a62314cdb174ccc88a27b8924fa79e4a rubygems-0.9.1.tgz 190688
+RMD160 49bbe6d686b7183784cb4e5f351933e9a68911e0 rubygems-0.9.1.tgz 190688
+SHA256 960c858e5fbea2d52f913349103e827398e71fdb76f05820927acd48e41f71aa rubygems-0.9.1.tgz 190688
diff --git a/dev-ruby/rubygems/files/rubygems-0.9.1-no_post_install.patch b/dev-ruby/rubygems/files/rubygems-0.9.1-no_post_install.patch
new file mode 100644
index 000000000000..4324d004b7f1
--- /dev/null
+++ b/dev-ruby/rubygems/files/rubygems-0.9.1-no_post_install.patch
@@ -0,0 +1,9 @@
+diff -ur rubygems-0.9.1/post-install.rb rubygems-0.9.1.new/post-install.rb
+--- rubygems-0.9.1/post-install.rb 2007-01-16 07:31:27.000000000 +0700
++++ rubygems-0.9.1.new/post-install.rb 2007-01-17 20:05:04.000000000 +0700
+@@ -117,5 +117,4 @@
+ remove_old_rdoc
+ install_rdoc
+ install_windows_batch_files
+-remove_stubs
+
diff --git a/dev-ruby/rubygems/files/rubygems-0.9.1-no_rdoc_install.patch b/dev-ruby/rubygems/files/rubygems-0.9.1-no_rdoc_install.patch
new file mode 100644
index 000000000000..a7bb19a43dc2
--- /dev/null
+++ b/dev-ruby/rubygems/files/rubygems-0.9.1-no_rdoc_install.patch
@@ -0,0 +1,11 @@
+diff -ur rubygems-0.9.1/post-install.rb rubygems-0.9.1.new/post-install.rb
+--- rubygems-0.9.1/post-install.rb 2007-01-17 20:18:48.000000000 +0700
++++ rubygems-0.9.1.new/post-install.rb 2007-01-17 20:18:24.000000000 +0700
+@@ -114,7 +114,5 @@
+ end
+
+ install_sources
+-remove_old_rdoc
+-install_rdoc
+ install_windows_batch_files
+
diff --git a/dev-ruby/rubygems/rubygems-0.9.1.ebuild b/dev-ruby/rubygems/rubygems-0.9.1.ebuild
new file mode 100644
index 000000000000..f8d10255f96c
--- /dev/null
+++ b/dev-ruby/rubygems/rubygems-0.9.1.ebuild
@@ -0,0 +1,66 @@
+# 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.1.ebuild,v 1.1 2007/01/17 14:01:13 pclouds Exp $
+
+inherit ruby
+
+DESCRIPTION="Centralized Ruby extension management system"
+HOMEPAGE="http://rubyforge.org/projects/rubygems/"
+LICENSE="Ruby"
+
+# 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/16452/${P}.tgz"
+
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc-macos ~ppc64 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+IUSE="doc server"
+DEPEND=">=dev-lang/ruby-1.8"
+PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb
+
+PATCHES="${FILESDIR}/${P}-no_post_install.patch"
+USE_RUBY="ruby18"
+
+src_unpack() {
+ ruby_src_unpack
+ use doc || epatch "${FILESDIR}/${P}-no_rdoc_install.patch"
+}
+
+src_compile() {
+ return
+}
+
+src_install() {
+ # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
+ unset RUBYOPT
+ ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
+ GEM_HOME=${D}usr/lib/ruby/gems/$ver ruby_src_install
+ cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
+ keepdir /usr/lib/ruby/gems/$ver/doc
+ doenvd "${FILESDIR}/10rubygems"
+}
+
+src_test() {
+ #rake test || die "test failed"
+ for i in test/{test,functional}*.rb; do
+ ruby ${i} || die "$i failed"
+ done
+}
+
+pkg_postinst()
+{
+ 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. Please use ruby-config"
+ ewarn "to revert back to ruby18."
+}
+
+pkg_postrm()
+{
+ # If we potentially downgraded, then getting rid of RUBYOPT from env.d is probably a smart idea.
+ env-update
+ source /etc/profile
+ ewarn "You have removed dev-ruby/rubygems. Ruby applications are unlikely"
+ ewarn "to run in current shells because of missing auto_gem."
+ ewarn "Please source /etc/profile in your shells before using ruby"
+ ewarn "or start new shells"
+}