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
|
2008-01-28 20:27:44 +01:00
|
|
|
, perlBindings ? 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
|
|
|
|
2008-03-19 23:32:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
version = "1.4.6"; # attribute version is used within svnmerge as well
|
|
|
|
|
|
|
|
name = "subversion-${version}";
|
2004-08-23 21:23:03 +02:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-12-30 22:49:42 +01:00
|
|
|
url = http://subversion.tigris.org/downloads/subversion-1.4.6.tar.bz2;
|
|
|
|
sha1 = "a9c941e2309744f6a2986200698b60da057a7527";
|
2004-08-23 21:23:03 +02:00
|
|
|
};
|
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
buildInputs =
|
|
|
|
[expat zlib]
|
2008-01-28 20:27:44 +01:00
|
|
|
++ (if pythonBindings then [swig.python] else [])
|
|
|
|
++ (if perlBindings then [swig.perl] 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"}
|
2008-01-28 20:27:44 +01:00
|
|
|
${if (pythonBindings || perlBindings) then "--with-swig=${swig}" else "--without-swig"}
|
2006-09-11 11:47:58 +02:00
|
|
|
${if javahlBindings then "--enable-javahl --with-jdk=${jdk}" else ""}
|
2007-01-29 13:47:29 +01:00
|
|
|
--disable-neon-version-check
|
2006-09-11 11:47:58 +02:00
|
|
|
";
|
|
|
|
|
2008-01-28 20:27:44 +01:00
|
|
|
inherit httpServer pythonBindings javahlBindings perlBindings;
|
|
|
|
patches = [ ./subversion-respect_CPPFLAGS_in_perl_bindings.patch ];
|
2006-10-11 18:45:55 +02:00
|
|
|
|
2008-05-30 18:04:00 +02:00
|
|
|
passthru = {
|
|
|
|
inherit perlBindings pythonBindings;
|
|
|
|
python = if ( swig != null ) && (swig ? python) then
|
|
|
|
swig.python
|
|
|
|
else null;
|
|
|
|
};
|
|
|
|
|
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";
|
2007-12-30 22:49:42 +01:00
|
|
|
homepage = http://subversion.tigris.org/;
|
2006-10-11 18:45:55 +02:00
|
|
|
};
|
2004-08-23 21:23:03 +02:00
|
|
|
}
|
2008-01-28 20:27:44 +01:00
|
|
|
|