From 66947ee7afd71fea22dbb2311bdf1aca82010e68 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 11 Sep 2006 09:47:58 +0000 Subject: [PATCH] * 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 --- .../subversion-1.4.x/builder.sh | 22 ---------- .../subversion-1.4.x/default.nix | 44 +++++++++++-------- .../libraries/apr-util/default.nix | 10 ++--- pkgs/development/libraries/neon/default.nix | 22 +++++++--- pkgs/top-level/all-packages.nix | 15 ++++--- 5 files changed, 57 insertions(+), 56 deletions(-) diff --git a/pkgs/applications/version-management/subversion-1.4.x/builder.sh b/pkgs/applications/version-management/subversion-1.4.x/builder.sh index ae36439da8f..e0695d5e2e7 100644 --- a/pkgs/applications/version-management/subversion-1.4.x/builder.sh +++ b/pkgs/applications/version-management/subversion-1.4.x/builder.sh @@ -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" diff --git a/pkgs/applications/version-management/subversion-1.4.x/default.nix b/pkgs/applications/version-management/subversion-1.4.x/default.nix index 69a0fbaa034..f53716139ad 100644 --- a/pkgs/applications/version-management/subversion-1.4.x/default.nix +++ b/pkgs/applications/version-management/subversion-1.4.x/default.nix @@ -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; } diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix index 5ffc92ae93d..7f2ce3e3882 100644 --- a/pkgs/development/libraries/apr-util/default.nix +++ b/pkgs/development/libraries/apr-util/default.nix @@ -1,10 +1,10 @@ { 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"; src = fetchurl { url = http://archive.apache.org/dist/apr/apr-util-1.2.7.tar.bz2; @@ -12,6 +12,6 @@ stdenv.mkDerivation { }; configureFlags = " --with-apr=${apr} --with-expat=${expat} - ${if bdbSupport then "--with-berkeley-db=${bdb}" else ""} + ${if bdbSupport then "--with-berkeley-db=${db4}" else ""} "; -} +}) // {inherit bdbSupport;} diff --git a/pkgs/development/libraries/neon/default.nix b/pkgs/development/libraries/neon/default.nix index 3cc061cd42b..0a75efa56ae 100644 --- a/pkgs/development/libraries/neon/default.nix +++ b/pkgs/development/libraries/neon/default.nix @@ -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"; + src = fetchurl { url = http://www.webdav.org/neon/neon-0.25.5.tar.gz; 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;} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9991857eeff..6e11df32ba0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1167,7 +1167,9 @@ rec { }; neon = (import ../development/libraries/neon) { - inherit fetchurl stdenv libxml2; + inherit fetchurl stdenv libxml2 zlib openssl; + compressionSupport = true; + sslSupport = true; }; nss = (import ../development/libraries/nss) { @@ -1534,7 +1536,8 @@ rec { }; aprutil = import ../development/libraries/apr-util { - inherit fetchurl stdenv apr expat; + inherit fetchurl stdenv apr expat db4; + bdbSupport = true; }; ### DEVELOPMENT / LIBRARIES / JAVA @@ -2175,7 +2178,9 @@ rec { 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; localServer = true; httpServer = false; @@ -2185,8 +2190,8 @@ rec { }; subversion14 = (import ../applications/version-management/subversion-1.4.x) { - inherit fetchurl stdenv openssl db4 expat swig zlib; - localServer = true; + inherit fetchurl stdenv apr aprutil neon expat swig zlib; + bdbSupport = true; httpServer = false; sslSupport = true; compressionSupport = true;