Add macos fix taken from the Makefile

This commit is contained in:
fendor 2018-12-13 16:48:36 +01:00
parent 276d72f812
commit 8fef0576c3

View File

@ -55,6 +55,11 @@ main = do
installHie stackLocalDir version
)
phony "icu-macos-fix"
(need ["icu-macos-fix-install"] >> need ["icu-macos-fix-build"])
phony "icu-macos-fix-install" (command_ [] "brew" ["install", "icu4c"])
phony "icu-macos-fix-build" $ mapM_ buildIcuMacosFix hieVersions
buildDist :: Action ()
buildDist = do
Stdout gitRef' <- command [] "git" ["describe", "--tags"]
@ -89,6 +94,15 @@ buildDist = do
)
return ()
buildIcuMacosFix :: VersionNumber -> Action ()
buildIcuMacosFix version = execStackWithYaml_
version
[ "build"
, "text-icu"
, "--extra-lib-dirs=/usr/local/opt/icu4c/lib"
, "--extra-include-dirs=/usr/local/opt/icu4c/include"
]
updateSubmodules :: Action ()
updateSubmodules = do
command_ [] "git" ["submodule", "sync"]