aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-05-25 02:23:30 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-05-25 02:23:30 +0000
commit197c8cfc17948ebdda98832b0b6cc05dd1294d99 (patch)
treeb26016b7acde7ac5a320c210fc67d234485f7f06
parent9fd97a9ecc1cebbd6ca1240a5da336c448c78b40 (diff)
downloadports-197c8cfc17948ebdda98832b0b6cc05dd1294d99.tar.gz
ports-197c8cfc17948ebdda98832b0b6cc05dd1294d99.zip
- Install install.rb and setup.rb as libraries again.
- Install a slightly patched version of the scripts that work stand-alone under ${PREFIX}/bin/ prefixing `ruby-'.
Notes
Notes: svn path=/head/; revision=59945
-rw-r--r--devel/ruby-setup.rb/Makefile15
-rw-r--r--devel/ruby-setup.rb/files/patch-ruby-install.rb7
-rw-r--r--devel/ruby-setup.rb/files/patch-ruby-setup.rb7
-rw-r--r--devel/ruby-setup.rb/pkg-plist6
4 files changed, 32 insertions, 3 deletions
diff --git a/devel/ruby-setup.rb/Makefile b/devel/ruby-setup.rb/Makefile
index c96590ff9802..87b057c5e70d 100644
--- a/devel/ruby-setup.rb/Makefile
+++ b/devel/ruby-setup.rb/Makefile
@@ -7,6 +7,7 @@
PORTNAME= setup.rb
PORTVERSION= 3.1.2
+PORTREVISION= 1
CATEGORIES= devel ruby
MASTER_SITES= http://www.loveruby.net/archive/%SUBDIR%/ \
http://www.ruby-lang.org/~knu/backup/
@@ -21,11 +22,23 @@ USE_RUBY= yes
NO_BUILD= yes
+_SCRIPTS= install.rb setup.rb
+
+RUBY_SHEBANG_FILES= ${_SCRIPTS:S:^:${WRKSRC}/ruby-:}
+
DOCS_EN= doc.en/* usage-en.txt
DOCS_JA= doc.ja/* usage-ja.txt
+post-extract:
+.for f in ${_SCRIPTS}
+ ${CP} -p ${WRKSRC}/${f} ${WRKSRC}/ruby-${f}
+.endfor
+
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/install.rb ${WRKSRC}/setup.rb ${PREFIX}/bin/
+.for f in ${_SCRIPTS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}/
+ ${INSTALL_SCRIPT} ${WRKSRC}/ruby-${f} ${PREFIX}/bin/
+.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
.for f in ${DOCS_EN}
diff --git a/devel/ruby-setup.rb/files/patch-ruby-install.rb b/devel/ruby-setup.rb/files/patch-ruby-install.rb
new file mode 100644
index 000000000000..d2ebf39a17a0
--- /dev/null
+++ b/devel/ruby-setup.rb/files/patch-ruby-install.rb
@@ -0,0 +1,7 @@
+--- ruby-install.rb.orig Tue May 7 13:52:44 2002
++++ ruby-install.rb Sat May 25 11:06:48 2002
+@@ -1006,3 +1006,3 @@
+ begin
+- installer = ToplevelInstaller.new( File.dirname($0) )
++ installer = ToplevelInstaller.new( Dir.pwd )
+ installer.execute
diff --git a/devel/ruby-setup.rb/files/patch-ruby-setup.rb b/devel/ruby-setup.rb/files/patch-ruby-setup.rb
new file mode 100644
index 000000000000..87c369bea99b
--- /dev/null
+++ b/devel/ruby-setup.rb/files/patch-ruby-setup.rb
@@ -0,0 +1,7 @@
+--- ruby-setup.rb.orig Tue May 7 13:52:44 2002
++++ ruby-setup.rb Sat May 25 11:06:36 2002
+@@ -1121,3 +1121,3 @@
+ begin
+- installer = PackageManager.new( File.dirname($0) )
++ installer = PackageManager.new( Dir.pwd )
+ installer.execute
diff --git a/devel/ruby-setup.rb/pkg-plist b/devel/ruby-setup.rb/pkg-plist
index 4bcbf6427286..1126a65a0433 100644
--- a/devel/ruby-setup.rb/pkg-plist
+++ b/devel/ruby-setup.rb/pkg-plist
@@ -1,5 +1,7 @@
-bin/install.rb
-bin/setup.rb
+bin/ruby-install.rb
+bin/ruby-setup.rb
+%%RUBY_SITELIBDIR%%/install.rb
+%%RUBY_SITELIBDIR%%/setup.rb
%%PORTDOCS%%%%RUBY_DOCDIR%%/setup.rb/changes.html
%%PORTDOCS%%%%RUBY_DOCDIR%%/setup.rb/devel.html
%%PORTDOCS%%%%RUBY_DOCDIR%%/setup.rb/hookapi.html