* Berkeley DB bindings for Perl.
svn path=/nixpkgs/trunk/; revision=405
This commit is contained in:
parent
7f97b73eef
commit
2220a171c9
17
pkgs/perl-BerkeleyDB/perl-BerkeleyDB-build.sh
Executable file
17
pkgs/perl-BerkeleyDB/perl-BerkeleyDB-build.sh
Executable 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
|
14
pkgs/perl-BerkeleyDB/perl-BerkeleyDB.fix
Normal file
14
pkgs/perl-BerkeleyDB/perl-BerkeleyDB.fix
Normal 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"))
|
||||
]
|
||||
)
|
Loading…
Reference in New Issue
Block a user