1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Use ghc --numeric-version.

This commit is contained in:
Oliver Braun 2003-06-09 22:26:18 +00:00
parent 4619933fd5
commit ce9681d793
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82630
5 changed files with 5 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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 "

View File

@ -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 "

View File

@ -37,8 +37,7 @@ PLIST_SUB+= HUGS="@comment "
.if !defined(WITHOUT_GHC)
ALL_TARGET+= all
INSTALL_TARGET+=install_ghc pkg
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 "