diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2002-02-01 13:34:36 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2002-02-01 13:34:36 +0000 |
commit | 4a99ef1a19e5e2a260b9e83cb0c3516fb0a4e23c (patch) | |
tree | e953de1bf46de4295eb37349b60a09e43a011e12 | |
parent | Fixed nasty tpyo (diff) | |
download | historical-4a99ef1a19e5e2a260b9e83cb0c3516fb0a4e23c.tar.gz historical-4a99ef1a19e5e2a260b9e83cb0c3516fb0a4e23c.tar.bz2 historical-4a99ef1a19e5e2a260b9e83cb0c3516fb0a4e23c.zip |
Ruby Interactive reference, 0.7a
-rw-r--r-- | dev-ruby/ri/files/digest-ri-0.7a | 1 | ||||
-rw-r--r-- | dev-ruby/ri/files/ri-0.7a-gentoo.patch | 36 | ||||
-rw-r--r-- | dev-ruby/ri/ri-0.7a.ebuild | 23 |
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 +} |