2006-09-11 11:47:58 +02:00
|
|
|
{ bdbSupport ? false
|
2004-08-23 21:23:03 +02:00
|
|
|
, httpServer ? false
|
|
|
|
, sslSupport ? false
|
2005-03-04 16:20:54 +01:00
|
|
|
, compressionSupport ? false
|
2004-08-23 21:23:03 +02:00
|
|
|
, pythonBindings ? false
|
2004-10-18 10:56:09 +02:00
|
|
|
, javahlBindings ? false
|
2006-09-11 11:47:58 +02:00
|
|
|
, stdenv, fetchurl, apr, aprutil, neon, zlib
|
|
|
|
, httpd ? null, expat, swig ? null, jdk ? null
|
2004-08-23 21:23:03 +02:00
|
|
|
}:
|
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
assert bdbSupport -> aprutil.bdbSupport;
|
2004-08-23 21:23:03 +02:00
|
|
|
assert httpServer -> httpd != null && httpd.expat == expat;
|
|
|
|
assert pythonBindings -> swig != null && swig.pythonSupport;
|
2005-09-18 01:58:51 +02:00
|
|
|
assert javahlBindings -> jdk != null;
|
2006-09-11 11:47:58 +02:00
|
|
|
assert sslSupport -> neon.sslSupport;
|
|
|
|
assert compressionSupport -> neon.compressionSupport;
|
2004-08-23 21:23:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-01-25 19:09:13 +01:00
|
|
|
name = "subversion-1.4.3";
|
2004-08-23 21:23:03 +02:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-01-25 19:09:13 +01:00
|
|
|
url = http://subversion.tigris.org/downloads/subversion-1.4.3.tar.bz2;
|
|
|
|
sha1 = "7e740c469b61977b7b623642892470207ae64a50";
|
2004-08-23 21:23:03 +02:00
|
|
|
};
|
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
buildInputs =
|
|
|
|
[expat zlib]
|
|
|
|
++ (if pythonBindings then [swig.python] else []);
|
2004-08-23 21:23:03 +02:00
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
configureFlags = "
|
|
|
|
--without-gdbm --disable-static
|
|
|
|
--with-apr=${apr} -with-apr-util=${aprutil} --with-neon=${neon}
|
2006-09-11 22:15:40 +02:00
|
|
|
--disable-keychain
|
2006-09-11 11:47:58 +02:00
|
|
|
${if bdbSupport then "--with-berkeley-db" else "--without-berkeley-db"}
|
|
|
|
${if httpServer then
|
|
|
|
"--with-apxs=${httpd}/bin/apxs --with-apr=${httpd} --with-apr-util=${httpd}"
|
|
|
|
else
|
|
|
|
"--without-apxs"}
|
|
|
|
${if pythonBindings then "--with-swig=${swig}" else "--without-swig"}
|
|
|
|
${if javahlBindings then "--enable-javahl --with-jdk=${jdk}" else ""}
|
|
|
|
";
|
|
|
|
|
|
|
|
inherit httpServer pythonBindings javahlBindings;
|
2006-10-11 18:45:55 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A version control system intended to be a compelling replacement for CVS in the open source community";
|
|
|
|
};
|
2004-08-23 21:23:03 +02:00
|
|
|
}
|