diff options
-rw-r--r-- | devel/freebase/Makefile | 6 | ||||
-rw-r--r-- | devel/freebase/distinfo | 4 | ||||
-rw-r--r-- | devel/freebase/files/patch-freebase:bin:install.rb | 44 |
3 files changed, 43 insertions, 11 deletions
diff --git a/devel/freebase/Makefile b/devel/freebase/Makefile index ea3eb38d67e0..4b76dfddf71b 100644 --- a/devel/freebase/Makefile +++ b/devel/freebase/Makefile @@ -6,9 +6,9 @@ # PORTNAME= freebase -PORTVERSION= 0.9.2 +PORTVERSION= 0.9.3 CATEGORIES= devel ruby -MASTER_SITES= http://rubyforge.org/frs/download.php/2185/ +MASTER_SITES= http://rubyforge.org/frs/download.php/3148/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= freeride-${PORTVERSION} DIST_SUBDIR= ruby @@ -22,6 +22,6 @@ USE_RUBY= yes NO_BUILD= yes do-install: - cd ${WRKSRC}; ${RUBY} bin/install.rb + cd ${WRKSRC}; ${RUBY} bin/install.rb --prefix=${PREFIX} .include <bsd.port.mk> diff --git a/devel/freebase/distinfo b/devel/freebase/distinfo index 0aa6d1c9c6a5..80c33015a845 100644 --- a/devel/freebase/distinfo +++ b/devel/freebase/distinfo @@ -1,2 +1,2 @@ -MD5 (ruby/freeride-0.9.2.tar.gz) = 04a9802f712074085349eac6d0d1483d -SIZE (ruby/freeride-0.9.2.tar.gz) = 496043 +MD5 (ruby/freeride-0.9.3.tar.gz) = 3377004028f027454af4d4de0a7c9e1f +SIZE (ruby/freeride-0.9.3.tar.gz) = 501458 diff --git a/devel/freebase/files/patch-freebase:bin:install.rb b/devel/freebase/files/patch-freebase:bin:install.rb index c79cbef1ccfe..691d0ad5d772 100644 --- a/devel/freebase/files/patch-freebase:bin:install.rb +++ b/devel/freebase/files/patch-freebase:bin:install.rb @@ -1,8 +1,40 @@ --- bin/install.rb.orig Mon Mar 24 07:10:57 2003 -+++ bin/install.rb Thu Dec 16 20:42:15 2004 -@@ -8,14 +8,9 @@ ++++ bin/install.rb Mon Feb 21 18:38:00 2005 +@@ -1,21 +1,40 @@ + require 'rbconfig' + require 'find' + require 'ftools' ++require 'getoptlong' ++ ++def usage( exit_code = 1 ) ++ printf "Usage: #{ARGV[0]} [--path <PATH>]\n" ++ exit( exit_code ) ++end - $srcdir = CONFIG["srcdir"] + Dir.chdir ".." if Dir.pwd =~ /bin.?$/ + ++opts = GetoptLong.new( ["--prefix", "-p", GetoptLong::REQUIRED_ARGUMENT ] ) ++$my_prefix = nil ++opts.each { |opt, arg| ++ case opt ++ when "--prefix" ++ $my_prefix = arg ++ else ++ usage() ++ end ++} ++ ++def prefixize( str ) ++ $my_prefix ? ++ str.gsub( Regexp::compile( "^#{Regexp::escape($prefix)}" ), $my_prefix ) : ++ str ++end ++ + include Config + +-$srcdir = CONFIG["srcdir"] ++$prefix = CONFIG["prefix"] ++$srcdir = prefixize( CONFIG["srcdir"] ) $version = CONFIG["MAJOR"]+"."+CONFIG["MINOR"] -$libdir = File.join(CONFIG["libdir"], "ruby", $version) -$archdir = File.join($libdir, CONFIG["arch"]) @@ -12,9 +44,9 @@ -elsif $site_libdir !~ Regexp.quote($version) - $site_libdir = File.join($site_libdir, $version) -end -+$libdir = CONFIG["rubylibdir"] -+$archdir = CONFIG["archdir"] -+$site_libdir = CONFIG["sitelibdir"] ++$libdir = prefixize( CONFIG["rubylibdir"] ) ++$archdir = prefixize( CONFIG["archdir"] ) ++$site_libdir = prefixize( CONFIG["sitelibdir"] ) def install_rb(srcdir = nil) libdir = "lib" |