openbsd-ports/devel/hmake/patches/patch-src_hmake_Config_hs
kili aa043e1a02 Resurrect, but only for nhc98 (required for devel/cpphs on platforms
without ghc, as noticed by jasper@).

"Bring out your dead! Bring out your dead!" jasper@
2011-04-14 12:15:53 +00:00

22 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_hmake_Config_hs,v 1.3 2011/04/14 12:15:53 kili Exp $
--- src/hmake/Config.hs.orig Fri Nov 23 15:26:05 2007
+++ src/hmake/Config.hs Thu Apr 8 14:19:13 2010
@@ -272,14 +272,14 @@ configure' Ghc ghcpath = do
ok <- doesFileExist ghcpkg0
let ghcpkg = if ok then ghcpkg0 else dirname fullpath++"/ghc-pkg"
-- pkgs <- runAndReadStdout (ghcpkg++" --list-packages")
- pkgs <- runAndReadStdout (ghcpkg++" -l")
+ pkgs <- runAndReadStdout (ghcpkg++" list")
let pkgsOK = filter (\p-> any (`isPrefixOf` p)
["std","base","haskell98"])
(deComma pkgs)
idirs <- mapM (\p-> runAndReadStdout
- (ghcpkg++" --show-package="
+ (ghcpkg++" field "
++deVersion (ghcsym>=604) p
- ++" --field=import_dirs"))
+ ++" import_dirs"))
pkgsOK
return config{ includePaths = pkgDirs libdir (nub idirs) }
where