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:
Gleb Popov 2020-05-28 12:58:56 +00:00
parent 54faa52f59
commit eeca407697
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536766

View file

@ -254,6 +254,11 @@ pre-configure: apply-slist
.if empty(PORT_OPTIONS:MBOOT) .if empty(PORT_OPTIONS:MBOOT)
cd ${BOOT_DIR} && ${CONFIGURE_ENV} ${CONFIGURE_CMD} --prefix=${BOOT_DIR} cd ${BOOT_DIR} && ${CONFIGURE_ENV} ${CONFIGURE_CMD} --prefix=${BOOT_DIR}
cd ${BOOT_DIR} && PACKAGES='' ${MAKE_CMD} install 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 .endif
# If DOCS are set, install HsColour in-place # If DOCS are set, install HsColour in-place
.if ${PORT_OPTIONS:MDOCS} .if ${PORT_OPTIONS:MDOCS}