diff options
author | obraun <obraun@FreeBSD.org> | 2003-06-10 06:26:18 +0800 |
---|---|---|
committer | obraun <obraun@FreeBSD.org> | 2003-06-10 06:26:18 +0800 |
commit | fc3879796cb8838f41c3cfd05d23ca8c4e9f9eb2 (patch) | |
tree | 00958db1d8c9bb13f984474828a33886d0ac9dfe /textproc | |
parent | 1346b9bdb47f37858f6ec007edfdfd94a12b3d92 (diff) | |
download | freebsd-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/Makefile | 3 | ||||
-rw-r--r-- | textproc/hs-haxml/Makefile | 3 |
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 " |