diff options
author | Oliver Braun <obraun@FreeBSD.org> | 2003-06-09 21:46:09 +0000 |
---|---|---|
committer | Oliver Braun <obraun@FreeBSD.org> | 2003-06-09 21:46:09 +0000 |
commit | 4619933fd50673752160197402a2fb35001a6a77 (patch) | |
tree | fb2ff63d150d4bbf8f2c5f2bd1b51162c9c85c85 | |
parent | Remove ghc's package.conf.old. (diff) |
Use ghc --numeric-version.
-rw-r--r-- | devel/hs-c2hs/Makefile | 3 | ||||
-rw-r--r-- | devel/hs-hat/Makefile | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/devel/hs-c2hs/Makefile b/devel/hs-c2hs/Makefile index 0b1166415f1a..e197ba4d39e2 100644 --- a/devel/hs-c2hs/Makefile +++ b/devel/hs-c2hs/Makefile @@ -20,8 +20,7 @@ RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc HAS_CONFIGURE= yes USE_GMAKE= yes -GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \ - ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'` +GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version` PLIST_SUB+= C2HS_VERSION="${PORTVERSION}" GHC_VERSION="${GHC_VERSION}" CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-add-package 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 |