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:
parent
4619933fd5
commit
ce9681d793
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82630
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 "
|
||||
|
@ -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 "
|
||||
|
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user