avoid pulling in unneeded dependencies when the assistant is disabled

This commit is contained in:
Joey Hess 2013-07-12 15:36:59 -04:00
parent 08385e8552
commit 4b9fa37b72
2 changed files with 19 additions and 16 deletions

2
debian/changelog vendored
View file

@ -6,6 +6,8 @@ git-annex (4.20130710) UNRELEASED; urgency=low
* Rsync.net have committed to support git-annex and offer a special * Rsync.net have committed to support git-annex and offer a special
discounted rate for git-annex users. Updated the webapp to reflect this. discounted rate for git-annex users. Updated the webapp to reflect this.
http://www.rsync.net/products/git-annex-pricing.html http://www.rsync.net/products/git-annex-pricing.html
* Improve cabal file to avoid unncessary dependencies when building with
the assistant disabled.
-- Joey Hess <joeyh@debian.org> Tue, 09 Jul 2013 19:17:13 -0400 -- Joey Hess <joeyh@debian.org> Tue, 09 Jul 2013 19:17:13 -0400

View file

@ -103,7 +103,7 @@ Executable git-annex
Build-Depends: hS3 Build-Depends: hS3
CPP-Options: -DWITH_S3 CPP-Options: -DWITH_S3
if flag(WebDAV) if flag(WebDAV) && flag(Assistant)
Build-Depends: DAV (>= 0.3), http-conduit, xml-conduit, http-types Build-Depends: DAV (>= 0.3), http-conduit, xml-conduit, http-types
CPP-Options: -DWITH_WEBDAV CPP-Options: -DWITH_WEBDAV
@ -115,23 +115,24 @@ Executable git-annex
Build-Depends: data-endian Build-Depends: data-endian
CPP-Options: -D__ANDROID__ CPP-Options: -D__ANDROID__
if os(linux) && flag(Inotify) if flag(Assistant)
Build-Depends: hinotify if os(linux) && flag(Inotify)
CPP-Options: -DWITH_INOTIFY Build-Depends: hinotify
else CPP-Options: -DWITH_INOTIFY
if os(darwin)
Build-Depends: hfsevents
CPP-Options: -DWITH_FSEVENTS
else else
if (! os(windows) && ! os(solaris) && ! os(linux)) if os(darwin)
CPP-Options: -DWITH_KQUEUE Build-Depends: hfsevents
C-Sources: Utility/libkqueue.c CPP-Options: -DWITH_FSEVENTS
else
if (! os(windows) && ! os(solaris) && ! os(linux))
CPP-Options: -DWITH_KQUEUE
C-Sources: Utility/libkqueue.c
if os(linux) && flag(Dbus) if os(linux) && flag(Dbus) && flag(Assistant)
Build-Depends: dbus (>= 0.10.3) Build-Depends: dbus (>= 0.10.3)
CPP-Options: -DWITH_DBUS CPP-Options: -DWITH_DBUS
if flag(Webapp) if flag(Webapp) && flag(Assistant)
Build-Depends: Build-Depends:
yesod, yesod-default, yesod-static, yesod-form, yesod-core, yesod, yesod-default, yesod-static, yesod-form, yesod-core,
case-insensitive, http-types, transformers, wai, wai-logger, warp, case-insensitive, http-types, transformers, wai, wai-logger, warp,
@ -140,15 +141,15 @@ Executable git-annex
CPP-Options: -DWITH_WEBAPP CPP-Options: -DWITH_WEBAPP
GHC-Options: -threaded GHC-Options: -threaded
if flag(Pairing) if flag(Pairing) && flag(WebApp)
Build-Depends: network-multicast, network-info Build-Depends: network-multicast, network-info
CPP-Options: -DWITH_PAIRING CPP-Options: -DWITH_PAIRING
if flag(XMPP) if flag(XMPP) && flag(Assistant)
Build-Depends: network-protocol-xmpp, gnutls (>= 0.1.4), xml-types Build-Depends: network-protocol-xmpp, gnutls (>= 0.1.4), xml-types
CPP-Options: -DWITH_XMPP CPP-Options: -DWITH_XMPP
if flag(DNS) if flag(DNS) && flag(WebApp)
Build-Depends: dns Build-Depends: dns
CPP-Options: -DWITH_DNS CPP-Options: -DWITH_DNS