summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-10-23 16:39:55 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-10-23 16:39:55 -0400
commit737267c0a0c21823ec65d786e59589900859320d (patch)
tree1abc4342559c565149b30e55537c620e3e220c16
parent3fc2cf4ddcb54abdd30c31efef5e8588b4af358a (diff)
add cabal flag for use with debian's older version of aws, which is now patched with the necessary stuff
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules4
-rw-r--r--git-annex.cabal10
3 files changed, 14 insertions, 2 deletions
diff --git a/debian/control b/debian/control
index 659ec05fa..55fc17448 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,7 @@ Build-Depends:
libghc-cryptohash-dev,
libghc-dataenc-dev,
libghc-utf8-string-dev,
- libghc-aws-dev (>= 0.10.2),
+ libghc-aws-dev (>= 0.9.2),
libghc-conduit-dev,
libghc-resourcet-dev,
libghc-dav-dev (>= 1.0) [amd64 i386 kfreebsd-amd64 kfreebsd-i386 powerpc],
diff --git a/debian/rules b/debian/rules
index 7c8f8a560..22be48195 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,10 @@ export RELEASE_BUILD=1
%:
dh $@
+# Debian currently has a patched aws 0.9.2, rather than the newer 0.10.2.
+override_dh_auto_configure:
+ debian/cabal-wrapper configure -fPatchedAWS
+
# Not intended for use by anyone except the author.
announcedir:
@echo ${HOME}/src/git-annex/doc/news
diff --git a/git-annex.cabal b/git-annex.cabal
index 94b1ed3be..863f35cf8 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -34,6 +34,10 @@ Description:
Flag S3
Description: Enable S3 support
+Flag PatchedAWS
+ Description: Building on system, like Debian, with old AWS patched to support git-annex
+ Default: False
+
Flag WebDAV
Description: Enable WebDAV support
@@ -151,7 +155,11 @@ Executable git-annex
CPP-Options: -DWITH_CRYPTOHASH
if flag(S3)
- Build-Depends: aws (>= 0.10.2), conduit, resourcet
+ Build-Depends: conduit, resourcet
+ if flag(PatchedAWS)
+ Build-Depends: aws (>= 0.9.2)
+ else
+ Build-Depends: aws (>= 0.10.2)
CPP-Options: -DWITH_S3
if flag(WebDAV)