Date: Mon, 26 May 2008 06:26:29 GMT From: Mitchell Smith <mjs@bur.st> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/123997: (New Port) databases/p5-DBD-FrontBase Message-ID: <200805260626.m4Q6QTws011539@www.freebsd.org> Resent-Message-ID: <200805260630.m4Q6U2G4020901@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 123997 >Category: ports >Synopsis: (New Port) databases/p5-DBD-FrontBase >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 26 06:30:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Mitchell Smith >Release: 7.0 >Organization: >Environment: >Description: The perl DBI connector for the FrontBase relational database is not currently available in the FreeBSD ports tree. >How-To-Repeat: >Fix: The attached shar archive contains the necessary files to build the FrontBase DBI driver from the FreeBSd ports system. Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-DBD-FrontBase # p5-DBD-FrontBase/distinfo # p5-DBD-FrontBase/Makefile # p5-DBD-FrontBase/pkg-descr # p5-DBD-FrontBase/pkg-plist # p5-DBD-FrontBase/files # p5-DBD-FrontBase/files/patch-Makefile.PL # echo c - p5-DBD-FrontBase mkdir -p p5-DBD-FrontBase > /dev/null 2>&1 echo x - p5-DBD-FrontBase/distinfo sed 's/^X//' >p5-DBD-FrontBase/distinfo << 'END-of-p5-DBD-FrontBase/distinfo' XMD5 (DBD-FB-1.39.tar) = 3b65054fc3f5b935fccaaeb41549330c XSHA256 (DBD-FB-1.39.tar) = 04eb6e9ad9611b5810c38521f160f8ffebe6c9060571cbdcc93e4a4298618156 XSIZE (DBD-FB-1.39.tar) = 51828 END-of-p5-DBD-FrontBase/distinfo echo x - p5-DBD-FrontBase/Makefile sed 's/^X//' >p5-DBD-FrontBase/Makefile << 'END-of-p5-DBD-FrontBase/Makefile' X# New ports collection makefile for: DBD::FrontBase X# Date created: 19 Jul 2007 X# Whom: Mitchell Smith <mjs@bur.st> X# X# $FreeBSD$ X# X XPORTNAME= DBD-FrontBase XPORTVERSION= 1.39 XCATEGORIES= databases perl5 XMASTER_SITES+= http://www.frontbase.com/download/perl/ XPKGNAMEPREFIX= p5- XDISTNAME= DBD-FB-${PORTVERSION} XEXTRACT_SUFX= .tar X XMAINTAINER= mjs@bur.st XCOMMENT= DBI driver for FrontBase RDBMS server X XBUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI XBUILD_DEPENDS+= ${LOCALBASE}/lib/libFBCAccess.a:../frontbase XRUN_DEPENDS+= ${BUILD_DEPENDS} X XPERL_CONFIGURE= yes XCFLAGS+= -I${LOCALBASE}/include X X.include <bsd.port.pre.mk> X X.if ${PERL_LEVEL} < 500600 XIGNORE= perl 5.6 or newer required, Install lang/perl5.8 or lang/perl5 and try again X.endif X X.include <bsd.port.post.mk> END-of-p5-DBD-FrontBase/Makefile echo x - p5-DBD-FrontBase/pkg-descr sed 's/^X//' >p5-DBD-FrontBase/pkg-descr << 'END-of-p5-DBD-FrontBase/pkg-descr' XThis is the official implementation of DBD::FrontBase, the DBI Database XConnectivity driver, for accessing FrontBase databases from Perl. X XWWW: http://www.frontbase.com/ END-of-p5-DBD-FrontBase/pkg-descr echo x - p5-DBD-FrontBase/pkg-plist sed 's/^X//' >p5-DBD-FrontBase/pkg-plist << 'END-of-p5-DBD-FrontBase/pkg-plist' X%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/FB/.packlist X%%SITE_PERL%%/%%PERL_ARCH%%/DBD/FB.pm X%%SITE_PERL%%/%%PERL_ARCH%%/DBD/FB/GetInfo.pm X%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/FB/FB.bs X%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/FB/FB.so X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/DBD/FB X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/DBD X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/FB X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD END-of-p5-DBD-FrontBase/pkg-plist echo c - p5-DBD-FrontBase/files mkdir -p p5-DBD-FrontBase/files > /dev/null 2>&1 echo x - p5-DBD-FrontBase/files/patch-Makefile.PL sed 's/^X//' >p5-DBD-FrontBase/files/patch-Makefile.PL << 'END-of-p5-DBD-FrontBase/files/patch-Makefile.PL' X--- Makefile.PL.orig 2008-05-26 16:19:52.000000000 +1000 X+++ Makefile.PL 2008-05-26 16:20:12.000000000 +1000 X@@ -13,37 +13,10 @@ X X my $os = $^O; X X-if (! $ENV{FRONTBASE_HOME}) { X- print "Environment variable FRONTBASE_HOME not defined. Searching for Frontbase...\n"; X- if ($os eq 'MSWin32') X- { X- foreach(qw(\usr\FrontBase)) X- { X- if (-d "$_/lib") X- { X- $ENV{FRONTBASE_HOME} = $_; X- last; X- } X- } X- } X- else X- { X- foreach(qw(/Library/Frontbase /Local/Library/FrontBase /usr/FrontBase /opt/FrontBase /usr/local/FrontBase)) X- { X- if (-d "$_/lib") X- { X- $ENV{FRONTBASE_HOME} = $_; X- last; X- } X- } X- } X-} X- X-if (defined($ENV{FRONTBASE_HOME}) && -d "$ENV{FRONTBASE_HOME}/lib") { X- print "Found Frontbase in $ENV{FRONTBASE_HOME}\n"; X-} else { X- die "Unable to find Frontbase\nplease set environment variable FRONTBASE_HOME\n"; X-} X+# X+# The FreeBSD port for FrontBase puts the libraries in an unexpected location and causes the Makefile to die. As we know X+# that the package is installed at this point, the test for the libraries has been removed. X+# X X print "Configuring for ",$os, "\n"; X X@@ -59,7 +32,7 @@ X DISTNAME => 'DBD-FB', X VERSION_FROM => 'FB.pm', X INC => "-I$ENV{FRONTBASE_HOME}/include -I\$(INSTALLSITEARCH)/auto/DBI -I\$(INSTALLARCHLIB)/DBI -I\$(SITEARCH)/auto/DBI -I\$(ARCHLIB)/DBI", X- OBJECT => "FB\$(OBJ_EXT) dbdimp\$(OBJ_EXT) $ENV{FRONTBASE_HOME}/lib/$libFBCAccess", X+ OBJECT => "FB\$(OBJ_EXT) dbdimp\$(OBJ_EXT) /usr/local/lib/$libFBCAccess", X dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', POSTOP => 'mv $(DISTNAME)-$(VERSION).tar.gz ../' }, X realclean => { FILES => '*.xsi' } X ); END-of-p5-DBD-FrontBase/files/patch-Makefile.PL exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805260626.m4Q6QTws011539>