svn path=/nixpkgs/trunk/; revision=18406
This commit is contained in:
parent
4437778e33
commit
b4636d333c
@ -1,10 +1,7 @@
|
|||||||
args: with args;
|
args: with args;
|
||||||
|
|
||||||
let name = "redland-${version}";
|
stdenv.mkDerivation rec {
|
||||||
in
|
name = "redland-1.0.8";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sf/librdf/${name}.tar.gz";
|
url = "mirror://sf/librdf/${name}.tar.gz";
|
||||||
|
@ -18,13 +18,13 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlags = "--with-threads --with-bdb=${bdb}";
|
configureFlags = "--with-threads --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
|
||||||
|
|
||||||
# Redland 1.0.9 uses an internal pre-processor symbol SQLITE_API
|
# 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.
|
# 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
|
# This is a quick fix for the problem. A real solution needs to be
|
||||||
# implemented upstream, though.
|
# implemented upstream, though.
|
||||||
find . -type f -exec sed -i -e 's/SQLITE_API/REDLAND_SQLITE_API/g' {} \;
|
find . -type f -exec sed -i -e 's/SQLITE_API/REDLAND_SQLITE_API/g' {} \;
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user