summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2003-03-19 15:45:27 +0000
committerseb <seb@pkgsrc.org>2003-03-19 15:45:27 +0000
commit9b6c0d2e3f4b180c3e76041a485adf96b31f21ab (patch)
treeae967827af9e269e53dd148ddc83ab0fc31e70e3 /databases
parent443f02cadcbc28c18f141c1a95905aa0e50900ff (diff)
downloadpkgsrc-9b6c0d2e3f4b180c3e76041a485adf96b31f21ab.tar.gz
Initial import of p5-DB_File version 1.806 into the NetBSD Packages Collection.
DB_File is a module which allows Perl programs to make use of the facilities provided by Berkeley DB version 1. (DB_File can be built version 2, 3 or 4 of Berkeley DB, but it will only support the 1.x features). Note: this package is skipped on systems providing DB 1 as we assume that the perl5 package picked it up so already provides this module.
Diffstat (limited to 'databases')
-rw-r--r--databases/p5-DB_File/DESCR4
-rw-r--r--databases/p5-DB_File/Makefile33
-rw-r--r--databases/p5-DB_File/PLIST1
-rw-r--r--databases/p5-DB_File/distinfo5
-rw-r--r--databases/p5-DB_File/patches/patch-aa35
5 files changed, 78 insertions, 0 deletions
diff --git a/databases/p5-DB_File/DESCR b/databases/p5-DB_File/DESCR
new file mode 100644
index 00000000000..371bc79ef6f
--- /dev/null
+++ b/databases/p5-DB_File/DESCR
@@ -0,0 +1,4 @@
+DB_File is a module which allows Perl programs to make use of the
+facilities provided by Berkeley DB version 1. (DB_File can be built
+version 2, 3 or 4 of Berkeley DB, but it will only support the 1.x
+features).
diff --git a/databases/p5-DB_File/Makefile b/databases/p5-DB_File/Makefile
new file mode 100644
index 00000000000..21a5a29a00c
--- /dev/null
+++ b/databases/p5-DB_File/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/03/19 15:45:27 seb Exp $
+
+DISTNAME= DB_File-1.806
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= databases perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DB_File/}
+
+MAINTAINER= packages@netbsd.org
+COMMENT= perl5 module to use Berkeley DB version 1 API
+
+USE_BUILDLINK2= # defined
+USE_DB185= # defined
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/DB_File/.packlist
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../databases/db/buildlink2.mk"
+
+# XXX This is a bit ugly...
+DB_NAME= ${BUILDLINK_TRANSFORM:Ml\:db\:*:S/l:db:/-l/}
+MAKE_ENV+= DB_NAME=${DB_NAME}
+PERL5_LDFLAGS+= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db}/lib
+PERL5_LDFLAGS+= -L${BUILDLINK_PREFIX.db}/lib
+MAKE_ENV+= DB_CPPFLAGS=${BUILDLINK_CPPFLAGS.db}
+.if ${_NEED_DB2} == "YES"
+MAKE_ENV+= DB_FILE_COMPAT185=1
+.else
+# We assume that DB 1 is provided by the system and perl5 package picked
+# it up.
+PKG_SKIP_REASON+= "The perl package already provides DB_File"
+.endif
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/p5-DB_File/PLIST b/databases/p5-DB_File/PLIST
new file mode 100644
index 00000000000..b116b0b332a
--- /dev/null
+++ b/databases/p5-DB_File/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/19 15:45:27 seb Exp $
diff --git a/databases/p5-DB_File/distinfo b/databases/p5-DB_File/distinfo
new file mode 100644
index 00000000000..d3fab8e76e9
--- /dev/null
+++ b/databases/p5-DB_File/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/03/19 15:45:27 seb Exp $
+
+SHA1 (DB_File-1.806.tar.gz) = 83cd50f25699f8661e03671cea210e0996ce05f8
+Size (DB_File-1.806.tar.gz) = 80078 bytes
+SHA1 (patch-aa) = 497699386a532f97962a67592fd5e09088994662
diff --git a/databases/p5-DB_File/patches/patch-aa b/databases/p5-DB_File/patches/patch-aa
new file mode 100644
index 00000000000..5016068e801
--- /dev/null
+++ b/databases/p5-DB_File/patches/patch-aa
@@ -0,0 +1,35 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/03/19 15:45:27 seb Exp $
+
+--- Makefile.PL.orig 2002-06-22 11:35:48.000000000 +0200
++++ Makefile.PL
+@@ -14,7 +14,8 @@ my $DB_NAME ;
+ my $LIBS ;
+ my $COMPAT185 = "" ;
+
+-ParseCONFIG() ;
++my $DB_CPPFLAGS = $ENV{'DB_CPPFLAGS'};
++$DB_NAME = $ENV{'DB_NAME'};
+
+ my @files = ('DB_File.pm', glob "t/*.t") ;
+ UpDowngrade(@files);
+@@ -40,9 +41,9 @@ $OS2 = "-DOS2" if $Config{'osname'} eq '
+
+ WriteMakefile(
+ NAME => 'DB_File',
+- LIBS => ["-L${LIB_DIR} $LIBS"],
++ LIBS => ["$LIBS"],
+ #MAN3PODS => {}, # Pods will be built by installman.
+- INC => "-I$INC_DIR",
++ INC => "$DB_CPPFLAGS",
+ VERSION_FROM => 'DB_File.pm',
+ XSPROTOARG => '-noprototypes',
+ DEFINE => "-D_NOT_CORE $OS2 $VER_INFO $COMPAT185",
+@@ -51,7 +52,7 @@ WriteMakefile(
+ 'depend' => { 'Makefile' => 'config.in',
+ 'version$(OBJ_EXT)' => 'version.c'},
+ 'clean' => { FILES => 'constants.h constants.xs' },
+- 'macro' => { INSTALLDIRS => 'perl', my_files => "@files" },
++ 'macro' => { my_files => "@files" },
+ 'dist' => { COMPRESS => 'gzip', SUFFIX => 'gz',
+ DIST_DEFAULT => 'MyDoubleCheck tardist'},
+ );