[Pkg-haskell-commits] darcs: haskell-reflection: Do not depend on ghc-ghci but set the template-haskell flag accordingly.

Joachim Breitner mail at joachim-breitner.de
Mon Jun 15 08:29:13 UTC 2015


Mon Jun 15 07:58:02 UTC 2015  Joachim Breitner <mail at joachim-breitner.de>
  * Do not depend on ghc-ghci but set the template-haskell flag accordingly.

    M ./changelog +6
    M ./rules +6

Mon Jun 15 07:58:02 UTC 2015  Joachim Breitner <mail at joachim-breitner.de>
  * Do not depend on ghc-ghci but set the template-haskell flag accordingly.
diff -rN -u old-haskell-reflection/changelog new-haskell-reflection/changelog
--- old-haskell-reflection/changelog	2015-06-15 08:29:13.385667924 +0000
+++ new-haskell-reflection/changelog	2015-06-15 08:29:13.393667921 +0000
@@ -1,3 +1,9 @@
+haskell-reflection (1.5.1.2-4) UNRELEASED; urgency=medium
+
+  * Do not depend on ghc-ghci but set the template-haskell flag accordingly.
+
+ -- Joachim Breitner <nomeata at debian.org>  Mon, 15 Jun 2015 09:56:23 +0200
+
 haskell-reflection (1.5.1.2-3) unstable; urgency=medium
 
   * Depend on ghc-ghci, as it uses Template Haskell
diff -rN -u old-haskell-reflection/rules new-haskell-reflection/rules
--- old-haskell-reflection/rules	2015-06-15 08:29:13.385667924 +0000
+++ new-haskell-reflection/rules	2015-06-15 08:29:13.389667922 +0000
@@ -1,4 +1,10 @@
 #!/usr/bin/make -f
 
+ifeq (0,$(shell ghc --info | grep 'Have interpreter.*YES' >/dev/null 2>&1; echo $$?))
+DEB_SETUP_GHC_CONFIGURE_ARGS += --flags=template-haskell
+else
+DEB_SETUP_GHC_CONFIGURE_ARGS += --flags=-template-haskell
+endif
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk




More information about the Pkg-haskell-commits mailing list