ports/148331: A DBI driver for the Cego database for Perl 5
Kurt Jaeger
pi at opsec.eu
Mon Jul 5 19:38:33 UTC 2010
Hi!
> http://people.freebsd.org/~sylvio/p5-DBD-cego-1.1.9.log
>
> The port have depends to
> /usr/local/lib/perl5/site_perl/5.10.1/mach/DBI.pm but the port
> databases/cego not install this file, I believe that the depends is
> other, maybe the port p5-DBI and not databases/cego.
You're absolutly right, fixed (attached shar).
> The plist must have the variables to perl and not full path, ex.:
> %%SITE_PERL%%, %%SITE_ARCH%%, ...
Thanks, fixed that, too. I did not find any examples of how to handle
man pages, but somehow, none of the p5-* packages I looked at had
any man page reference in their plists ? Any hint what I do wrong ?
-------------------
# 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-cego
# p5-DBD-cego/Makefile
# p5-DBD-cego/pkg-descr
# p5-DBD-cego/distinfo
# p5-DBD-cego/files
# p5-DBD-cego/files/patch-makefile-pl
# p5-DBD-cego/pkg-plist
#
echo c - p5-DBD-cego
mkdir -p p5-DBD-cego > /dev/null 2>&1
echo x - p5-DBD-cego/Makefile
sed 's/^X//' >p5-DBD-cego/Makefile << '3ea606a3cabc54bd4b946bea94c1a5b3'
X# New ports collection makefile for: p5-DBD-cego
X# Date created: Jul 2, 2010
X# Whom: Kurt Jaeger <fbsd-ports at opsec.eu>
X#
X# $FreeBSD$
X
XPORTNAME= DBD-cego
XPORTVERSION= 1.1.9
XCATEGORIES= databases perl5
XMASTER_SITES= http://www.lemke-it.com/
XPKGNAMEPREFIX= p5-
XDISTNAME= DBD-cego-${PORTVERSION}
X
XMAINTAINER= fbsd-ports at opsec.eu
XCOMMENT= A Cego DBI driver for Perl 5
X
XBUILD_DEPENDS= p5-DBI>=1.61:${PORTSDIR}/databases/p5-DBI
XRUN_DEPENDS= ${BUILD_DEPENDS}
XLIB_DEPENDS= cego.1:${PORTSDIR}/databases/cego
X
XLICENSE= GPLv2
XWRKSRC= ${WRKDIR}/DBD-cego
XPERL_CONFIGURE= yes
XCC= g++
X
X.include <bsd.port.mk>
3ea606a3cabc54bd4b946bea94c1a5b3
echo x - p5-DBD-cego/pkg-descr
sed 's/^X//' >p5-DBD-cego/pkg-descr << 'daf9043f6cb0065f846ccd27ec24bff3'
XA DBI driver for the Cego database for Perl 5
X
XMany more details are available at:
X
XWWW: http://www.lemke-it.com/
daf9043f6cb0065f846ccd27ec24bff3
echo x - p5-DBD-cego/distinfo
sed 's/^X//' >p5-DBD-cego/distinfo << '3bb74ae1aa80612a564f127d7893a43e'
XMD5 (DBD-cego-1.1.9.tar.gz) = 4c220989e07557873b7ce3e67420897f
XSHA256 (DBD-cego-1.1.9.tar.gz) = 21a9c28961a9c84716220959c9bde77de3a45344f1cc53e51a732adc43ceda84
XSIZE (DBD-cego-1.1.9.tar.gz) = 23577
3bb74ae1aa80612a564f127d7893a43e
echo c - p5-DBD-cego/files
mkdir -p p5-DBD-cego/files > /dev/null 2>&1
echo x - p5-DBD-cego/files/patch-makefile-pl
sed 's/^X//' >p5-DBD-cego/files/patch-makefile-pl << '4b33a43310aecbccc9a0623e8cdf1296'
X--- Makefile.PL 2010-07-02 21:08:00.000000000 +0200
X+++ Makefile.PL-new 2010-07-02 21:19:41.000000000 +0200
X@@ -29,24 +29,16 @@
X "verbose",
X ) || die Usage();
X
X-if (! exists $opt->{'prefix'})
X-{
X- print "Missing prefix, use option --prefix\n";
X- die Usage();
X-}
X-
X use vars qw($loadlibs);
X-$loadlibs= "-L" . $opt->{'prefix'} . " -lBase";
X+$loadlibs= " -lBase";
X
X WriteMakefile(
X 'NAME' => 'DBD::Cego',
X 'VERSION_FROM' => 'Cego.pm',
X 'PREREQ_PM' => {DBI => 1.03},
X 'OBJECT' => '$(O_FILES)',
X- 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include',
X- 'MYEXTLIB' => $opt->{'prefix'} . "/lib/libcego.a "
X- . $opt->{'prefix'} . "/lib/libXML.a "
X- . $opt->{'prefix'} . "/lib/libBase.a",
X+ 'INC' => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include',
X+ 'MYEXTLIB' => " -lcego -lXML -lBase ",
X "CC" => "g++",
X "LD" => "g++",
X "XSPROTOARG" => "-noprototypes",
X@@ -58,12 +50,7 @@
X
X sub Usage {
X print STDERR <<"USAGE";
X-Usage: perl $0 [options]
X-
X-Possible options are:
X-
X- --prefix=<prefix path> Use <prefix> for setting up the appropriate prefix path
X- to find cego libs and includes
X+Usage: perl $0
X
X USAGE
X exit 1;
4b33a43310aecbccc9a0623e8cdf1296
echo x - p5-DBD-cego/pkg-plist
sed 's/^X//' >p5-DBD-cego/pkg-plist << 'a73c5c2ea256fac8c9767305a09eded8'
X%%SITE_PERL%%/%%PERL_ARCH%%/DBD/Cego.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/Cego/.packlist
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/Cego/Cego.bs
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/Cego/Cego.so
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/Cego
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/DBD
a73c5c2ea256fac8c9767305a09eded8
exit
--
pi at opsec.eu +49 171 3101372 10 years to go !
More information about the freebsd-ports-bugs
mailing list