summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2002-02-01 13:34:36 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2002-02-01 13:34:36 +0000
commit857979bab15e6736aefce560b8baef9f51b1ca9f (patch)
tree255854a2f703d3dab05dbf0b4c6b9cdd266e77b3 /dev-ruby/ri
parentFixed nasty tpyo (diff)
downloadgentoo-2-857979bab15e6736aefce560b8baef9f51b1ca9f.tar.gz
gentoo-2-857979bab15e6736aefce560b8baef9f51b1ca9f.tar.bz2
gentoo-2-857979bab15e6736aefce560b8baef9f51b1ca9f.zip
Ruby Interactive reference, 0.7a
Diffstat (limited to 'dev-ruby/ri')
-rw-r--r--dev-ruby/ri/files/digest-ri-0.7a1
-rw-r--r--dev-ruby/ri/files/ri-0.7a-gentoo.patch36
-rw-r--r--dev-ruby/ri/ri-0.7a.ebuild23
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/ri/files/digest-ri-0.7a b/dev-ruby/ri/files/digest-ri-0.7a
new file mode 100644
index 000000000000..879cee72cfc8
--- /dev/null
+++ b/dev-ruby/ri/files/digest-ri-0.7a
@@ -0,0 +1 @@
+MD5 861acd6785f9c49b302c0e0704f3c08f ri-0.7a.tgz 113536
diff --git a/dev-ruby/ri/files/ri-0.7a-gentoo.patch b/dev-ruby/ri/files/ri-0.7a-gentoo.patch
new file mode 100644
index 000000000000..c61dd4c67a49
--- /dev/null
+++ b/dev-ruby/ri/files/ri-0.7a-gentoo.patch
@@ -0,0 +1,36 @@
+--- install.rb.orig Thu Jan 31 04:18:34 2002
++++ install.rb Thu Jan 31 04:20:21 2002
+@@ -16,10 +16,11 @@
+ # This sets up a standard environment for any sub-installs as well
+
+ $version = CONFIG["MAJOR"]+"."+CONFIG["MINOR"]
+-$libdir = File.join(CONFIG["libdir"], "ruby", $version)
+
+-$bindir = CONFIG["bindir"]
+-$sitedir = CONFIG["sitedir"] || File.join($libdir, "site_ruby")
++$libdir = File.join(ENV["D"], CONFIG["libdir"], "ruby", $version)
++$bindir = File.join(ENV["D"], CONFIG["bindir"])
++$sitedir = File.join(ENV["D"], CONFIG["sitedir"] || File.join($libdir, "site_ruby"))
++
+ $ri_dest = File.join($sitedir, "ri")
+ $ri_op = File.join($ri_dest, "op")
+
+@@ -112,6 +113,9 @@
+
+
+ File::makedirs($ri_dest)
++
++# I don't know why we need to create the bin dir, but we do :(
++File::makedirs($bindir)
+ File::chmod(0755, $ri_dest, true)
+
+ $stderr.puts "Installing reference material"
+@@ -142,7 +146,7 @@
+
+ File.open("ri_cmd.rb") do |ip|
+ File.open("ri_tmp", "w") do |op|
+- ruby = File.join($bindir, "ruby")
++ ruby = File.join(CONFIG["bindir"], "ruby")
+ op.puts "#!#{ruby}"
+ op.write ip.read
+ end
diff --git a/dev-ruby/ri/ri-0.7a.ebuild b/dev-ruby/ri/ri-0.7a.ebuild
new file mode 100644
index 000000000000..f80b6af1a96a
--- /dev/null
+++ b/dev-ruby/ri/ri-0.7a.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author: Richard Lowe <richlowe@richlowe.net>
+# Maintainer: Tools Team <tools@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ri/ri-0.7a.ebuild,v 1.1 2002/02/01 13:34:36 karltk Exp $
+
+S="${WORKDIR}/ri"
+DESCRIPTION="Ruby Interactive reference"
+SRC_URI="http://www.pragmaticprogrammer.com/ruby/downloads/files/${P}.tgz"
+HOMEPAGE="http://www.pragmaticprogrammer.com/ruby/downloads/ri.html"
+DEPEND=">=dev-lang/ruby-1.6.2" # Specified in ${HOMEPAGE}
+
+src_unpack () {
+ unpack ${A}
+ cd ${S}
+ patch < ${FILESDIR}/${P}-gentoo.patch || die
+}
+
+
+src_install () {
+ dodoc COPYING ChangeLog README
+ ruby install.rb
+}