aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-02-28 01:47:50 +0800
committervs <vs@FreeBSD.org>2005-02-28 01:47:50 +0800
commit8b7e620ca4ec54235f6b755d2ad54c5162c31c24 (patch)
tree6100a688599ab5ef7164aca5cde1b1945240f303
parent69ab270c877ce7dd6db73d71137f27a24dabd225 (diff)
downloadfreebsd-ports-gnome-8b7e620ca4ec54235f6b755d2ad54c5162c31c24.tar.gz
freebsd-ports-gnome-8b7e620ca4ec54235f6b755d2ad54c5162c31c24.tar.zst
freebsd-ports-gnome-8b7e620ca4ec54235f6b755d2ad54c5162c31c24.zip
Update to 0.9.3
PR: ports/77864 Submitted by: maintainer
-rw-r--r--devel/freebase/Makefile6
-rw-r--r--devel/freebase/distinfo4
-rw-r--r--devel/freebase/files/patch-freebase:bin:install.rb44
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"