On Sat, Jul 15, 2006 at 02:23:36PM +0200, Karel Kulhavy wrote:
> On Sat, Jul 15, 2006 at 06:16:42PM +0800, Lars Hansson wrote:
> > On Saturday 15 July 2006 18:02, Karel Kulhavy wrote:
> > > But gdbm is in ports. I don't understand why the binding was taken out of
> > > Perl.
> >
> > And how would the base system build the gdbm module if gdbm itself is in
> > ports?
>
> Is there a way how to install GDBM_File on OpenBSD 3.9?
>
> CL<
> > You could always try creating a port of it though.
> >
> > ---
> > Lars Hansson
>
I've tried the same using GDBM_File from the perl in-tree.
Even if regress fails and something seems wrong it compiles... maybe
enough for someone else to get it working.
Other things not taken care of: gdbm.t uses Config.pm to check GDM_Files
existance which can't work as Config.pm gets setup with base perl.
I've worked around this patching the gdbm.t @INC with blib/lib but then
the tests fail with a hand full of unknown symbols...
And i don't know if this kind of Makefile is even accepted... may need
some more polishing.
Makefile attached,
good luck and regards
Simon
# $OpenBSD$
COMMENT= "Perl5 access to the gdbm library"
PKGNAME= p5-GDBM_File-1.08
CATEGORIES= databases perl5
# Artistic + GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
BUILD_DEPENDS= ::databases/gdbm
REGRESS_DEPENDS=${BUILD_DEPENDS}
FULLDISTDIR= /usr/src/gnu/usr.bin/perl/ext/GDBM_File
DISTFILES= GDBM_File.pm \
GDBM_File.xs \
Makefile.PL \
typemap \
t/gdbm.t
EXTRACT_ONLY=
NO_EXTRACT= Yes
NO_CHECKSUM= Yes
WRKSRC= ${WRKDIR}/GDBM_File
do-extract:
mkdir ${WRKSRC} ${WRKSRC}/t
.for F in ${DISTFILES}
cp ${FULLDISTDIR}/${F} ${WRKSRC}/${F}
.endfor
CONFIGURE_STYLE= perl
.include <bsd.port.mk>