mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
* 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:
parent
6d2f25e5f0
commit
66947ee7af
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;}
|
||||
|
|
|
@ -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;}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue