Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2005 18:42:13 +0300 (MSK)
From:      Alexander Novitsky <alecn2002@yandex.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        alecn2002@yandex.ru
Subject:   ports/77864: [MAINTAINER-UPDATE] devel/ruby18-freebase: update to 0.9.3
Message-ID:  <200502211542.j1LFgD2p015038@server.v42of.icc-vvd.ru>
Resent-Message-ID: <200502211550.j1LFoI24076718@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77864
>Category:       ports
>Synopsis:       [MAINTAINER-UPDATE] devel/ruby18-freebase: update to 0.9.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 21 15:50:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Novitsky
>Release:        FreeBSD 5.2-RELEASE i386
>Organization:
Inzhcomcentre VVD
>Environment:
System: FreeBSD server.v42of.icc-vvd.ru 5.2-RELEASE FreeBSD 5.2-RELEASE #2: Mon Jul 12 21:45:44 MSD 2004
>Description:
- Update to 0.9.3

Port maintainer (alecn2002@yandex.ru) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- ruby18-freebase-0.9.3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/freebase.orig/Makefile /usr/ports/devel/freebase/Makefile
--- /usr/ports/devel/freebase.orig/Makefile	Mon Feb 21 17:55:32 2005
+++ /usr/ports/devel/freebase/Makefile	Mon Feb 21 18:35:56 2005
@@ -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 @@
 NO_BUILD=	yes
 
 do-install:
-	cd ${WRKSRC}; ${RUBY} bin/install.rb
+	cd ${WRKSRC}; ${RUBY} bin/install.rb --prefix=${PREFIX}
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/devel/freebase.orig/distinfo /usr/ports/devel/freebase/distinfo
--- /usr/ports/devel/freebase.orig/distinfo	Mon Feb 21 17:55:32 2005
+++ /usr/ports/devel/freebase/distinfo	Mon Feb 21 17:58:21 2005
@@ -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 -ruN --exclude=CVS /usr/ports/devel/freebase.orig/files/patch-freebase:bin:install.rb /usr/ports/devel/freebase/files/patch-freebase:bin:install.rb
--- /usr/ports/devel/freebase.orig/files/patch-freebase:bin:install.rb	Mon Feb 21 17:55:32 2005
+++ /usr/ports/devel/freebase/files/patch-freebase:bin:install.rb	Mon Feb 21 18:38:02 2005
@@ -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"
--- ruby18-freebase-0.9.3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502211542.j1LFgD2p015038>