Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2005 13:51:44 +0400 (MSD)
From:      Alexander Novitsky <alecn2002@yandex.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        alecn2002@yandex.ru
Subject:   ports/87365: [PATCH] devel/ruby18-freebase: [repocopy to devel/freeride]
Message-ID:  <200510130951.j9D9pida091635@server.v42of.icc-vvd.ru>
Resent-Message-ID: <200510131000.j9DA0Sm8060792@freefall.freebsd.org>

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

>Number:         87365
>Category:       ports
>Synopsis:       [PATCH] devel/ruby18-freebase: [repocopy to devel/freeride]
>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:   Thu Oct 13 10:00:27 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Novitsky
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD server.v42of.icc-vvd.ru 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Fri May 13 16:59:19 MSD 2005
>Description:
Made it a repocopy of devel/freeride because they both originated from the same distfile

Removed file:
- files/patch-freebase:bin:install.rb

Added file(s):
- files/patch-freebase_bin_install.rb

It's not just renaming - files/patch-freebase_bin_install.rb is different from old one!

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

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

--- ruby18-freebase-0.9.4_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/freebase/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	10 Jun 2005 09:57:30 -0000	1.7
+++ Makefile	13 Oct 2005 09:48:42 -0000
@@ -6,22 +6,18 @@
 #
 
 PORTNAME=	freebase
-PORTVERSION=	0.9.4
-CATEGORIES=	devel ruby
-MASTER_SITES=	http://rubyforge.org/frs/download.php/3931/
-PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
-DISTNAME=	freeride-${PORTVERSION}
-DIST_SUBDIR=	ruby
+PORTREVISION=	1
 
-MAINTAINER=	alecn2002@yandex.ru
 COMMENT=	Plugin subsystem of FreeRIDE
 
 WRKSRC=		${WRKDIR}/${DISTNAME}/${PORTNAME}
 
-USE_RUBY=	yes
-NO_BUILD=	yes
+MASTERDIR=	${.CURDIR}/../freeride
+FILESDIR=	${.CURDIR}/files
+PATCHDIR=	${FILESDIR}
+PLIST=	${.CURDIR}/pkg-plist
 
 do-install:
 	cd ${WRKSRC}; ${RUBY} bin/install.rb --prefix=${PREFIX}
 
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"
Index: files/patch-freebase_bin_install.rb
===================================================================
RCS file: files/patch-freebase_bin_install.rb
diff -N files/patch-freebase_bin_install.rb
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-freebase_bin_install.rb	13 Oct 2005 09:48:42 -0000
@@ -0,0 +1,58 @@
+--- bin/install.rb.orig	Mon Mar 24 07:10:57 2003
++++ bin/install.rb	Thu Oct 13 12:05:17 2005
+@@ -1,21 +1,39 @@
+ require 'rbconfig'
+ require 'find'
+ require 'ftools'
++require 'getoptlong'
++
++def usage( exit_code = 1 )
++	printf "Usage: #{ARGV[0]} [--path <PATH>]\n"
++	exit( exit_code )
++end
+ 
+ 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"]
+ $version = CONFIG["MAJOR"]+"."+CONFIG["MINOR"]
+-$libdir = File.join(CONFIG["libdir"], "ruby", $version)
+-$archdir = File.join($libdir, CONFIG["arch"])
+-$site_libdir = $:.find {|x| x =~ /site_ruby$/}
+-if !$site_libdir
+-  $site_libdir = File.join($libdir, "site_ruby")
+-elsif $site_libdir !~ Regexp.quote($version)
+-  $site_libdir = File.join($site_libdir, $version)
+-end
++$libdir = prefixize( CONFIG["rubylibdir"] )
++$archdir = prefixize( CONFIG["archdir"] )
++$site_libdir = prefixize( CONFIG["sitelibdir"] )
+ 
+ def install_rb(srcdir = nil)
+   libdir = "lib"
+@@ -39,4 +57,4 @@
+   end
+ end
+ 
+-install_rb
+\ No newline at end of file
++install_rb
--- ruby18-freebase-0.9.4_1.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?200510130951.j9D9pida091635>