mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
lang/ghc: Print a error message if BOOT option is enabled, but the user has no "ghc" in PATH.
PR: 246800 Submitted by: software@bertram-scharpf.de
This commit is contained in:
parent
54faa52f59
commit
eeca407697
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536766
1 changed files with 5 additions and 0 deletions
|
@ -254,6 +254,11 @@ pre-configure: apply-slist
|
|||
.if empty(PORT_OPTIONS:MBOOT)
|
||||
cd ${BOOT_DIR} && ${CONFIGURE_ENV} ${CONFIGURE_CMD} --prefix=${BOOT_DIR}
|
||||
cd ${BOOT_DIR} && PACKAGES='' ${MAKE_CMD} install
|
||||
.else
|
||||
# otherwise, make sure we have "ghc" in PATH
|
||||
if ! ${WHICH} -s ghc ; then \
|
||||
echo "No 'ghc' executable is found in your PATH! Turn off BOOT option." ; false ; \
|
||||
fi
|
||||
.endif
|
||||
# If DOCS are set, install HsColour in-place
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
|
|
Loading…
Add table
Reference in a new issue