* redland: make the dependency on postgresql, mysql, sqlite and db4

optional.  It's really not necessary for KDE to depend on four
  different databases...

svn path=/nixpkgs/trunk/; revision=19932
This commit is contained in:
Eelco Dolstra
2010-02-11 14:31:49 +00:00
parent 554549de5b
commit 8fab70fde3
5 changed files with 34 additions and 56 deletions
+4 -3
View File
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
buildInputs = [ buildInputs = [
scons boost scons boost
pkgconfig fftw redland librdf_raptor librdf_rasqal jackaudio flac pkgconfig fftw librdf_raptor librdf_rasqal jackaudio flac
libsamplerate alsaLib libxml2 libxslt libsndfile libsigcxx libusb cairomm libsamplerate alsaLib libxml2 libxslt libsndfile libsigcxx libusb cairomm
glib pango gtk glibmm gtkmm libgnomecanvas fftw librdf liblo aubio glib pango gtk glibmm gtkmm libgnomecanvas fftw librdf liblo aubio
fftw fftwSinglePrec libmad fftw fftwSinglePrec libmad
@@ -25,12 +25,13 @@ stdenv.mkDerivation {
export CXX=g++ export CXX=g++
scons PREFIX=$out install scons PREFIX=$out install
''; '';
installPhase = ":"; installPhase = ":";
meta = { meta = {
description = "multi-track hard disk recording software"; description = "Multi-track hard disk recording software";
longDescription = '' longDescription = ''
Also read "the importance of Paying Something on their homepage, pelase!" Also read "The importance of Paying Something" on their homepage, please!
''; '';
homepage = http://ardour.org/; homepage = http://ardour.org/;
license = "GPLv2"; license = "GPLv2";
@@ -1,4 +1,7 @@
args: with args; { stdenv, fetchurl, pkgconfig, openssl, libxslt, perl
, curl, pcre, libxml2, librdf_rasqal, librdf_raptor
, mysql ? null, postgresql ? null, sqlite ? null, bdb ? null
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "redland-1.0.10"; name = "redland-1.0.10";
@@ -8,15 +11,17 @@ stdenv.mkDerivation rec {
sha256 = "05cq722qvw5sq08qbydzjv5snqk402cbdsy8s6qjzir7vq2hs1p3"; sha256 = "05cq722qvw5sq08qbydzjv5snqk402cbdsy8s6qjzir7vq2hs1p3";
}; };
buildInputs = [pkgconfig]; buildInputs = [ pkgconfig ];
propagatedBuildInputs = [ propagatedBuildInputs = [
bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2 bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2
librdf_raptor librdf_rasqal librdf_raptor librdf_rasqal
]; ];
configureFlags = "--with-threads --with-bdb=${bdb}"; configureFlags =
[ "--with-threads" ]
++ stdenv.lib.optional (bdb != null) "--with-bdb=${bdb}";
patchPhase = patchPhase =
'' ''
sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl
+12 -7
View File
@@ -1,4 +1,7 @@
args: with args; { stdenv, fetchurl, pkgconfig, openssl, libxslt, perl
, curl, pcre, libxml2, librdf_rasqal, librdf_raptor
, mysql ? null, postgresql ? null, sqlite ? null, bdb ? null
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "redland-1.0.8"; name = "redland-1.0.8";
@@ -8,14 +11,16 @@ stdenv.mkDerivation rec {
sha256 = "8a77fcfd20fea2c6e53761d6dcbbee3fdb35e5308de36c1daa0d2014e5a96afe"; sha256 = "8a77fcfd20fea2c6e53761d6dcbbee3fdb35e5308de36c1daa0d2014e5a96afe";
}; };
buildInputs = [pkgconfig librdf_raptor]; buildInputs = [ pkgconfig ];
propagatedBuildInputs = [ propagatedBuildInputs =
bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2 [ bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2
librdf_rasqal librdf_raptor librdf_rasqal librdf_raptor
]; ];
configureFlags = "--with-threads --with-bdb=${bdb}"; configureFlags =
[ "--with-threads" ]
++ stdenv.lib.optional (bdb != null) "--with-bdb=${bdb}";
patchPhase = patchPhase =
'' ''
@@ -1,30 +0,0 @@
args: with args;
stdenv.mkDerivation rec {
name = "redland-1.0.9";
src = fetchurl {
url = "mirror://sf/librdf/${name}.tar.gz";
sha256 = "aa90ded84f5dd4cc2330bf79d139e00ceb93c6a9b94d17e1a93449ad579e1524";
};
buildInputs = [pkgconfig];
propagatedBuildInputs = [
bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2
librdf_raptor librdf_rasqal
];
configureFlags = "--with-threads --with-bdb=${bdb}";
patchPhase =
''
sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl
# Redland 1.0.9 uses an internal pre-processor symbol SQLITE_API
# that collides with a symbol of the same name in sqlite 3.6.19.
# This is a quick fix for the problem. A real solution needs to be
# implemented upstream, though.
find . -type f -exec sed -i -e 's/SQLITE_API/REDLAND_SQLITE_API/g' {} \;
'';
}
+9 -12
View File
@@ -4799,28 +4799,25 @@ let
librdf_raptor = import ../development/libraries/librdf/raptor.nix { librdf_raptor = import ../development/libraries/librdf/raptor.nix {
inherit fetchurl stdenv lib libxml2 curl; inherit fetchurl stdenv lib libxml2 curl;
}; };
librdf_rasqal = import ../development/libraries/librdf/rasqal.nix { librdf_rasqal = import ../development/libraries/librdf/rasqal.nix {
inherit fetchurl stdenv lib pcre libxml2 gmp librdf_raptor; inherit fetchurl stdenv lib pcre libxml2 gmp librdf_raptor;
}; };
librdf = import ../development/libraries/librdf { librdf = import ../development/libraries/librdf {
inherit fetchurl stdenv lib pkgconfig librdf_raptor ladspaH openssl zlib; inherit fetchurl stdenv lib pkgconfig librdf_raptor ladspaH openssl zlib;
}; };
# Also known as librdf, includes raptor and rasqal redland = redland_1_0_10;
redland = composedArgsAndFun (import ../development/libraries/redland/1.0.9.nix) {
inherit fetchurl stdenv openssl libxml2 pkgconfig perl postgresql sqlite redland_1_0_8 = makeOverridable (import ../development/libraries/redland/1.0.8.nix) {
mysql libxslt curl pcre librdf_rasqal librdf_raptor; inherit fetchurl stdenv openssl libxml2 pkgconfig perl sqlite
libxslt curl pcre librdf_rasqal librdf_raptor;
bdb = db4; bdb = db4;
}; };
redland_1_0_8 = composedArgsAndFun (import ../development/libraries/redland/1.0.8.nix) { redland_1_0_10 = makeOverridable (import ../development/libraries/redland/1.0.10.nix) {
inherit fetchurl stdenv openssl libxml2 pkgconfig perl postgresql sqlite inherit fetchurl stdenv openssl libxml2 pkgconfig perl sqlite
mysql libxslt curl pcre librdf_rasqal librdf_raptor;
bdb = db4;
};
redland_1_0_10 = composedArgsAndFun (import ../development/libraries/redland/1.0.10.nix) {
inherit fetchurl stdenv openssl libxml2 pkgconfig perl postgresql sqlite
mysql libxslt curl pcre librdf_rasqal librdf_raptor; mysql libxslt curl pcre librdf_rasqal librdf_raptor;
bdb = db4; bdb = db4;
}; };