* 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

View File

@ -1,29 +1,7 @@
buildInputs="$openssl $zlib $db4 $httpd $swig $python $jdk $expat $patch"
source $stdenv/setup 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 if test "$httpServer"; then
configureFlags="--with-apxs=$httpd/bin/apxs --with-apr=$httpd --with-apr-util=$httpd $configureFlags"
makeFlags="APACHE_LIBEXECDIR=$out/modules $makeFlags" 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 fi
installFlags="$makeFlags" installFlags="$makeFlags"

View File

@ -1,38 +1,44 @@
{ localServer ? false { bdbSupport ? false
, httpServer ? false , httpServer ? false
, sslSupport ? false , sslSupport ? false
, compressionSupport ? false , compressionSupport ? false
, pythonBindings ? false , pythonBindings ? false
, javahlBindings ? false , javahlBindings ? false
, stdenv, fetchurl , stdenv, fetchurl, apr, aprutil, neon, zlib
, openssl ? null, httpd ? null, db4 ? null, expat, swig ? null, jdk ? null, zlib ? null , httpd ? null, expat, swig ? null, jdk ? null
}: }:
assert expat != null; assert bdbSupport -> aprutil.bdbSupport;
assert localServer -> db4 != null;
assert httpServer -> httpd != null && httpd.expat == expat; assert httpServer -> httpd != null && httpd.expat == expat;
assert sslSupport -> openssl != null && (httpServer -> httpd.openssl == openssl);
assert pythonBindings -> swig != null && swig.pythonSupport; assert pythonBindings -> swig != null && swig.pythonSupport;
assert javahlBindings -> jdk != null; assert javahlBindings -> jdk != null;
assert compressionSupport -> zlib != null; assert sslSupport -> neon.sslSupport;
assert compressionSupport -> neon.compressionSupport;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "subversion-1.4.0pre-rc1"; name = "subversion-1.4.0";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://subversion.tigris.org/downloads/subversion-1.4.0-rc1.tar.bz2; url = http://subversion.tigris.org/downloads/subversion-1.4.0.tar.bz2;
sha1 = "0729403204f4cdebb4c40bdb62531721b0885cd0"; sha1 = "92671bba140e9b9e300b5ffb526c4a7c59aeb5b1";
}; };
openssl = if sslSupport then openssl else null; buildInputs =
zlib = if compressionSupport then zlib else null; [expat zlib]
httpd = if httpServer then httpd else null; ++ (if pythonBindings then [swig.python] else []);
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;
inherit expat localServer httpServer sslSupport configureFlags = "
pythonBindings javahlBindings; --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;
} }

View File

@ -1,10 +1,10 @@
{ stdenv, fetchurl, apr, expat { stdenv, fetchurl, apr, expat
, bdbSupport ? false, bdb ? null , bdbSupport ? false, db4 ? null
}: }:
assert bdbSupport -> bdb != null; assert bdbSupport -> db4 != null;
stdenv.mkDerivation { (stdenv.mkDerivation {
name = "apr-util-1.2.7"; name = "apr-util-1.2.7";
src = fetchurl { src = fetchurl {
url = http://archive.apache.org/dist/apr/apr-util-1.2.7.tar.bz2; url = http://archive.apache.org/dist/apr/apr-util-1.2.7.tar.bz2;
@ -12,6 +12,6 @@ stdenv.mkDerivation {
}; };
configureFlags = " configureFlags = "
--with-apr=${apr} --with-expat=${expat} --with-apr=${apr} --with-expat=${expat}
${if bdbSupport then "--with-berkeley-db=${bdb}" else ""} ${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
"; ";
} }) // {inherit bdbSupport;}

View File

@ -1,12 +1,24 @@
{stdenv, fetchurl, libxml2}: { stdenv, fetchurl, libxml2
, compressionSupport ? true, zlib ? null
, sslSupport ? true, openssl ? null
}:
stdenv.mkDerivation { assert compressionSupport -> zlib != null;
assert sslSupport -> openssl != null;
(stdenv.mkDerivation {
name = "neon-0.25.5"; name = "neon-0.25.5";
src = fetchurl { src = fetchurl {
url = http://www.webdav.org/neon/neon-0.25.5.tar.gz; url = http://www.webdav.org/neon/neon-0.25.5.tar.gz;
md5 = "b5fdb71dd407f0a3de0f267d27c9ab17"; md5 = "b5fdb71dd407f0a3de0f267d27c9ab17";
}; };
buildInputs = [libxml2];
buildInputs = [libxml2] ++ (if compressionSupport then [zlib] else []);
configureFlags="--enable-shared"; configureFlags="
} --enable-shared --disable-static
${if compressionSupport then "--with-zlib" else "--without-zlib"}
${if sslSupport then "--with-ssl --with-libs=${openssl}" else "--without-ssl"}
";
}) // {inherit compressionSupport sslSupport;}

View File

@ -1167,7 +1167,9 @@ rec {
}; };
neon = (import ../development/libraries/neon) { neon = (import ../development/libraries/neon) {
inherit fetchurl stdenv libxml2; inherit fetchurl stdenv libxml2 zlib openssl;
compressionSupport = true;
sslSupport = true;
}; };
nss = (import ../development/libraries/nss) { nss = (import ../development/libraries/nss) {
@ -1534,7 +1536,8 @@ rec {
}; };
aprutil = import ../development/libraries/apr-util { aprutil = import ../development/libraries/apr-util {
inherit fetchurl stdenv apr expat; inherit fetchurl stdenv apr expat db4;
bdbSupport = true;
}; };
### DEVELOPMENT / LIBRARIES / JAVA ### DEVELOPMENT / LIBRARIES / JAVA
@ -2175,7 +2178,9 @@ rec {
inherit fetchurl stdenv vim; inherit fetchurl stdenv vim;
}; };
subversion = (import ../applications/version-management/subversion-1.3.x) { subversion = subversion14;
subversion13 = (import ../applications/version-management/subversion-1.3.x) {
inherit fetchurl stdenv openssl db4 expat swig zlib; inherit fetchurl stdenv openssl db4 expat swig zlib;
localServer = true; localServer = true;
httpServer = false; httpServer = false;
@ -2185,8 +2190,8 @@ rec {
}; };
subversion14 = (import ../applications/version-management/subversion-1.4.x) { subversion14 = (import ../applications/version-management/subversion-1.4.x) {
inherit fetchurl stdenv openssl db4 expat swig zlib; inherit fetchurl stdenv apr aprutil neon expat swig zlib;
localServer = true; bdbSupport = true;
httpServer = false; httpServer = false;
sslSupport = true; sslSupport = true;
compressionSupport = true; compressionSupport = true;