2006-09-11 13:47:58 +04:00
|
|
|
{ bdbSupport ? false
|
2004-08-23 23:23:03 +04:00
|
|
|
, httpServer ? false
|
|
|
|
, sslSupport ? false
|
2005-03-04 18:20:54 +03:00
|
|
|
, compressionSupport ? false
|
2004-08-23 23:23:03 +04:00
|
|
|
, pythonBindings ? false
|
2008-01-28 22:27:44 +03:00
|
|
|
, perlBindings ? false
|
2004-10-18 12:56:09 +04:00
|
|
|
, javahlBindings ? false
|
2006-09-11 13:47:58 +04:00
|
|
|
, stdenv, fetchurl, apr, aprutil, neon, zlib
|
|
|
|
, httpd ? null, expat, swig ? null, jdk ? null
|
2004-08-23 23:23:03 +04:00
|
|
|
}:
|
|
|
|
|
2006-09-11 13:47:58 +04:00
|
|
|
assert bdbSupport -> aprutil.bdbSupport;
|
2008-10-06 17:38:45 +04:00
|
|
|
assert httpServer -> httpd != null && httpd.apr == apr && httpd.aprutil == aprutil;
|
2004-08-23 23:23:03 +04:00
|
|
|
assert pythonBindings -> swig != null && swig.pythonSupport;
|
2005-09-18 03:58:51 +04:00
|
|
|
assert javahlBindings -> jdk != null;
|
2006-09-11 13:47:58 +04:00
|
|
|
assert sslSupport -> neon.sslSupport;
|
|
|
|
assert compressionSupport -> neon.compressionSupport;
|
2004-08-23 23:23:03 +04:00
|
|
|
|
2008-03-20 01:32:00 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
version = "1.4.6"; # attribute version is used within svnmerge as well
|
|
|
|
|
|
|
|
name = "subversion-${version}";
|
2004-08-23 23:23:03 +04:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-12-31 00:49:42 +03:00
|
|
|
url = http://subversion.tigris.org/downloads/subversion-1.4.6.tar.bz2;
|
|
|
|
sha1 = "a9c941e2309744f6a2986200698b60da057a7527";
|
2004-08-23 23:23:03 +04:00
|
|
|
};
|
|
|
|
|
2006-09-11 13:47:58 +04:00
|
|
|
buildInputs =
|
|
|
|
[expat zlib]
|
2008-10-06 17:38:45 +04:00
|
|
|
++ stdenv.lib.optional pythonBindings swig.python
|
|
|
|
++ stdenv.lib.optional perlBindings swig.perl
|
|
|
|
;
|
2004-08-23 23:23:03 +04:00
|
|
|
|
2008-10-06 17:38:45 +04:00
|
|
|
configureFlags = ''
|
2006-09-11 13:47:58 +04:00
|
|
|
--without-gdbm --disable-static
|
|
|
|
--with-apr=${apr} -with-apr-util=${aprutil} --with-neon=${neon}
|
2006-09-12 00:15:40 +04:00
|
|
|
--disable-keychain
|
2006-09-11 13:47:58 +04:00
|
|
|
${if bdbSupport then "--with-berkeley-db" else "--without-berkeley-db"}
|
2008-10-06 17:38:45 +04:00
|
|
|
${if httpServer then "--with-apxs=${httpd}/bin/apxs" else "--without-apxs"}
|
|
|
|
${if pythonBindings || perlBindings then "--with-swig=${swig}" else "--without-swig"}
|
2006-09-11 13:47:58 +04:00
|
|
|
${if javahlBindings then "--enable-javahl --with-jdk=${jdk}" else ""}
|
2007-01-29 15:47:29 +03:00
|
|
|
--disable-neon-version-check
|
2008-10-06 17:38:45 +04:00
|
|
|
'';
|
2006-09-11 13:47:58 +04:00
|
|
|
|
2008-01-28 22:27:44 +03:00
|
|
|
inherit httpServer pythonBindings javahlBindings perlBindings;
|
2008-10-06 17:38:45 +04:00
|
|
|
|
2008-01-28 22:27:44 +03:00
|
|
|
patches = [ ./subversion-respect_CPPFLAGS_in_perl_bindings.patch ];
|
2006-10-11 20:45:55 +04:00
|
|
|
|
2008-05-30 20:04:00 +04:00
|
|
|
passthru = {
|
|
|
|
inherit perlBindings pythonBindings;
|
2008-10-06 17:38:45 +04:00
|
|
|
python = if swig != null && swig ? python then swig.python else null;
|
2008-05-30 20:04:00 +04:00
|
|
|
};
|
|
|
|
|
2006-10-11 20:45:55 +04:00
|
|
|
meta = {
|
|
|
|
description = "A version control system intended to be a compelling replacement for CVS in the open source community";
|
2007-12-31 00:49:42 +03:00
|
|
|
homepage = http://subversion.tigris.org/;
|
2006-10-11 20:45:55 +04:00
|
|
|
};
|
2004-08-23 23:23:03 +04:00
|
|
|
}
|
2008-01-28 22:27:44 +03:00
|
|
|
|