From 6cdcae9e9acbc58feea5bf129b8f61e02f6f5940 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 29 Sep 2012 01:28:02 -0400 Subject: Avoid building the webapp on Debian architectures that do not yet have template haskell and thus yesod. (Should be available for arm soonish I hope). --- debian/rules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index aeb947054..c0fbd9aa4 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,11 @@ #!/usr/bin/make -f -export GIT_ANNEX_LOCAL_FEATURES=-DWITH_OLD_YESOD +ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH) +ifeq (install ok installed,$(shell dpkg-query -W -f '$${Status}' libghc-yesod-dev 2>/dev/null)) +export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_OLD_YESOD -DWITH_WEBAPP -DWITH_PAIRING +else +export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_PAIRING +endif %: dh $@ -- cgit v1.2.3