aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2008-02-29 05:26:08 +0800
committerobraun <obraun@FreeBSD.org>2008-02-29 05:26:08 +0800
commitdb4af9c9a2a5d677c1b185f6eeefb41285e72f48 (patch)
tree7036a854aaeab31618b6fa3be08fbdb9efc100f3
parent0baeaaa3a8a8b0bf05fb44f90c2323d0eeecd0cc (diff)
downloadfreebsd-ports-gnome-db4af9c9a2a5d677c1b185f6eeefb41285e72f48.tar.gz
freebsd-ports-gnome-db4af9c9a2a5d677c1b185f6eeefb41285e72f48.tar.zst
freebsd-ports-gnome-db4af9c9a2a5d677c1b185f6eeefb41285e72f48.zip
Fix build with ghc 6.8.2.
-rw-r--r--devel/hs-hmake/files/patch-src-hmake-Config.hs11
-rw-r--r--devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs11
2 files changed, 22 insertions, 0 deletions
diff --git a/devel/hs-hmake/files/patch-src-hmake-Config.hs b/devel/hs-hmake/files/patch-src-hmake-Config.hs
new file mode 100644
index 000000000000..71078ca276b7
--- /dev/null
+++ b/devel/hs-hmake/files/patch-src-hmake-Config.hs
@@ -0,0 +1,11 @@
+--- src/hmake/Config.hs.orig 2006-07-07 18:01:16.000000000 +0200
++++ src/hmake/Config.hs 2008-02-28 22:18:01.000000000 +0100
+@@ -267,7 +267,7 @@
+ else do -- 5.00 and above
+ pkgcfg <- runAndReadStdout (escape ghcpath++" --print-libdir")
+ let libdir = escape pkgcfg
+- incdir1 = libdir++"/imports"
++ incdir1 = if ghcsym < 608 then libdir++"/imports" else libdir++"/lib"
+ ok <- doesDirectoryExist incdir1
+ if ok
+ then do
diff --git a/devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs b/devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs
new file mode 100644
index 000000000000..b7aa42627db9
--- /dev/null
+++ b/devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs
@@ -0,0 +1,11 @@
+--- src/hmake/PackageConfig.hs.orig 2006-08-21 17:30:46.000000000 +0200
++++ src/hmake/PackageConfig.hs 2008-02-28 22:19:23.000000000 +0100
+@@ -51,7 +51,7 @@
+ else unsafePerformIO $ do
+ pkgcfg <- runAndReadStdout (ghc++" --print-libdir")
+ let libdir = escape pkgcfg
+- incdir1 = libdir++"/imports"
++ incdir1 = if ghcsym < 608 then libdir++"/imports" else libdir++"/lib"
+ ok <- doesDirectoryExist incdir1
+ if ok
+ then do