aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2003-06-10 06:26:18 +0800
committerobraun <obraun@FreeBSD.org>2003-06-10 06:26:18 +0800
commitfc3879796cb8838f41c3cfd05d23ca8c4e9f9eb2 (patch)
tree00958db1d8c9bb13f984474828a33886d0ac9dfe /textproc
parent1346b9bdb47f37858f6ec007edfdfd94a12b3d92 (diff)
downloadfreebsd-ports-gnome-fc3879796cb8838f41c3cfd05d23ca8c4e9f9eb2.tar.gz
freebsd-ports-gnome-fc3879796cb8838f41c3cfd05d23ca8c4e9f9eb2.tar.zst
freebsd-ports-gnome-fc3879796cb8838f41c3cfd05d23ca8c4e9f9eb2.zip
Use ghc --numeric-version.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/hs-HaXml/Makefile3
-rw-r--r--textproc/hs-haxml/Makefile3
2 files changed, 2 insertions, 4 deletions
diff --git a/textproc/hs-HaXml/Makefile b/textproc/hs-HaXml/Makefile
index 4ee0cec8c2e3..b2352ef57300 100644
--- a/textproc/hs-HaXml/Makefile
+++ b/textproc/hs-HaXml/Makefile
@@ -46,8 +46,7 @@ PLIST_SUB+= NHC98=""
PLIST_SUB+= NHC98="@comment "
.endif
.if defined(WITH_GHC)
-GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
- ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= GHC="" GHC_VERSION="${GHC_VERSION}"
.else
PLIST_SUB+= GHC="@comment "
diff --git a/textproc/hs-haxml/Makefile b/textproc/hs-haxml/Makefile
index 4ee0cec8c2e3..b2352ef57300 100644
--- a/textproc/hs-haxml/Makefile
+++ b/textproc/hs-haxml/Makefile
@@ -46,8 +46,7 @@ PLIST_SUB+= NHC98=""
PLIST_SUB+= NHC98="@comment "
.endif
.if defined(WITH_GHC)
-GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
- ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= GHC="" GHC_VERSION="${GHC_VERSION}"
.else
PLIST_SUB+= GHC="@comment "