* Berkeley DB bindings for Perl.

svn path=/nixpkgs/trunk/; revision=405
This commit is contained in:
Eelco Dolstra 2003-10-09 08:08:05 +00:00
parent 7f97b73eef
commit 2220a171c9
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#! /bin/sh
envpkgs="$db4"
. $stdenv/setup || exit 1
export PATH=$perl/bin:$PATH
tar xvfz $src || exit 1
cd BerkeleyDB-* || exit 1
echo "LIB = $db4/lib" > config.in
echo "INCLUDE = $db4/include" >> config.in
perl Makefile.PL || exit 1
make || exit 1
make install PREFIX=$out || exit 1
echo $envpkgs > $out/envpkgs || exit 1

View File

@ -0,0 +1,14 @@
Package(
[ ("name", "perl-BerkeleyDB-0.23")
, ("build", Relative("perl-BerkeleyDB/perl-BerkeleyDB-build.sh"))
, ("src", App(IncludeFix("fetchurl/fetchurl.fix"),
[ ("url", "http://archive.cs.uu.nl/mirror/CPAN/authors/id/P/PM/PMQS/BerkeleyDB-0.23.tar.gz")
, ("md5", "d97b85ea5b61bde7de4a998c91ef29c7")
]))
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
, ("perl", IncludeFix("perl/perl.fix"))
, ("db4", IncludeFix("db4/db4.fix"))
]
)