aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-hat
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-06-09 21:46:09 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-06-09 21:46:09 +0000
commit4619933fd50673752160197402a2fb35001a6a77 (patch)
treefb2ff63d150d4bbf8f2c5f2bd1b51162c9c85c85 /devel/hs-hat
parentccd57bc622512f37d4c7c9eb5795a66ffc646746 (diff)
downloadports-4619933fd50673752160197402a2fb35001a6a77.tar.gz
ports-4619933fd50673752160197402a2fb35001a6a77.zip
Use ghc --numeric-version.
Notes
Notes: svn path=/head/; revision=82629
Diffstat (limited to 'devel/hs-hat')
-rw-r--r--devel/hs-hat/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/devel/hs-hat/Makefile b/devel/hs-hat/Makefile
index e9323e9d5a66..d80568d8c5b7 100644
--- a/devel/hs-hat/Makefile
+++ b/devel/hs-hat/Makefile
@@ -46,8 +46,7 @@ PLIST_SUB+= NHC98=""
PLIST_SUB+= GHC="@comment "
.else
PLIST_SUB+= NHC98="@comment "
-GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
- ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= GHC=""
PLIST_SUB+= GHC_VERSION="${GHC_VERSION}"
.endif