aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/darcs/Makefile3
-rw-r--r--devel/hs-darcs/Makefile3
2 files changed, 2 insertions, 4 deletions
diff --git a/devel/darcs/Makefile b/devel/darcs/Makefile
index 312e9cde4a0e..ab47068e4288 100644
--- a/devel/darcs/Makefile
+++ b/devel/darcs/Makefile
@@ -20,8 +20,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
ALL_TARGET= darcs darcs.1 darcs-patcher darcs-createrepo
-GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
- ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+GHC_VERSION= `${LOCALBASE}/bin/ghc ----numeric-version`
.if defined(WITH_CGI)
ALL_TARGET+= darcs_cgi
diff --git a/devel/hs-darcs/Makefile b/devel/hs-darcs/Makefile
index 312e9cde4a0e..ab47068e4288 100644
--- a/devel/hs-darcs/Makefile
+++ b/devel/hs-darcs/Makefile
@@ -20,8 +20,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
ALL_TARGET= darcs darcs.1 darcs-patcher darcs-createrepo
-GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
- ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+GHC_VERSION= `${LOCALBASE}/bin/ghc ----numeric-version`
.if defined(WITH_CGI)
ALL_TARGET+= darcs_cgi