From 4d70ad96ab279755bc69625f840e3b653f80668c Mon Sep 17 00:00:00 2001
From: Volker Stolz <vs@FreeBSD.org>
Date: Fri, 29 Jun 2007 09:06:05 +0000
Subject: Unbreak after latest GHC update: accept new preprocessor output

---
 devel/hs-hmake/files/patch-script_confhc | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 devel/hs-hmake/files/patch-script_confhc

diff --git a/devel/hs-hmake/files/patch-script_confhc b/devel/hs-hmake/files/patch-script_confhc
new file mode 100644
index 000000000000..35a09961c4ec
--- /dev/null
+++ b/devel/hs-hmake/files/patch-script_confhc
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- script/confhc.orig
++++ script/confhc
+@@ -78,7 +78,7 @@
+ ghcsym () {
+   echo __GLASGOW_HASKELL__ >ghcsym.hs;
+   $1 -E -cpp -optP-P ghcsym.hs -o ghcsym.out;
+-  grep -v '^#' ghcsym.out | grep -v '^$' > $2;
++  grep -v '^#' ghcsym.out | grep -v '^$' | grep -v '^{' > $2;
+   rm -f ghcsym.hs ghcsym.out;
+ }
+ echo -n "  Looking for ghc...   "
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0