* Subversion 1.4.0. Note: Subversion 1.4 upgrades your working

copies, so it's hard to go back to 1.3.

svn path=/nixpkgs/trunk/; revision=6486
This commit is contained in:
Eelco Dolstra
2006-09-11 09:47:58 +00:00
parent 6d2f25e5f0
commit 66947ee7af
5 changed files with 57 additions and 56 deletions
@@ -1,29 +1,7 @@
buildInputs="$openssl $zlib $db4 $httpd $swig $python $jdk $expat $patch"
source $stdenv/setup
configureFlags="--without-gdbm --disable-static"
if test "$localServer"; then
configureFlags="--with-berkeley-db=$db4 $configureFlags"
fi
if test "$sslSupport"; then
configureFlags="--with-ssl --with-libs=$openssl $configureFlags"
fi
if test "$httpServer"; then
configureFlags="--with-apxs=$httpd/bin/apxs --with-apr=$httpd --with-apr-util=$httpd $configureFlags"
makeFlags="APACHE_LIBEXECDIR=$out/modules $makeFlags"
else
configureFlags="--without-apxs $configureFlags"
fi
if test -n "$pythonBindings"; then
configureFlags="--with-swig=$swig $configureFlags"
fi
if test "$javahlBindings"; then
configureFlags="--enable-javahl --with-jdk=$jdk $configureFlags"
fi
installFlags="$makeFlags"
@@ -1,38 +1,44 @@
{ localServer ? false
{ bdbSupport ? false
, httpServer ? false
, sslSupport ? false
, compressionSupport ? false
, pythonBindings ? false
, javahlBindings ? false
, stdenv, fetchurl
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null, jdk ? null, zlib ? null
, stdenv, fetchurl, apr, aprutil, neon, zlib
, httpd ? null, expat, swig ? null, jdk ? null
}:
assert expat != null;
assert localServer -> db4 != null;
assert bdbSupport -> aprutil.bdbSupport;
assert httpServer -> httpd != null && httpd.expat == expat;
assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl);
assert pythonBindings -> swig != null && swig.pythonSupport;
assert javahlBindings -> jdk != null;
assert compressionSupport -> zlib != null;
assert sslSupport -> neon.sslSupport;
assert compressionSupport -> neon.compressionSupport;
stdenv.mkDerivation {
name = "subversion-1.4.0pre-rc1";
name = "subversion-1.4.0";
builder = ./builder.sh;
src = fetchurl {
url = http://subversion.tigris.org/downloads/subversion-1.4.0-rc1.tar.bz2;
sha1 = "0729403204f4cdebb4c40bdb62531721b0885cd0";
url = http://subversion.tigris.org/downloads/subversion-1.4.0.tar.bz2;
sha1 = "92671bba140e9b9e300b5ffb526c4a7c59aeb5b1";
};
openssl = if sslSupport then openssl else null;
zlib = if compressionSupport then zlib else null;
httpd = if httpServer then httpd else null;
db4 = if localServer then db4 else null;
swig = if pythonBindings then swig else null;
python = if pythonBindings then swig.python else null;
jdk = if javahlBindings then jdk else null;
buildInputs =
[expat zlib]
++ (if pythonBindings then [swig.python] else []);
inherit expat localServer httpServer sslSupport
pythonBindings javahlBindings;
configureFlags = "
--without-gdbm --disable-static
--with-apr=${apr} -with-apr-util=${aprutil} --with-neon=${neon}
${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;
}