svn commit: r536766 - head/lang/ghc
Gleb Popov
arrowd at FreeBSD.org
Thu May 28 12:58:56 UTC 2020
Author: arrowd
Date: Thu May 28 12:58:56 2020
New Revision: 536766
URL: https://svnweb.freebsd.org/changeset/ports/536766
Log:
lang/ghc: Print a error message if BOOT option is enabled, but the user has no "ghc" in PATH.
PR: 246800
Submitted by: software at bertram-scharpf.de
Modified:
head/lang/ghc/Makefile
Modified: head/lang/ghc/Makefile
==============================================================================
--- head/lang/ghc/Makefile Thu May 28 11:59:09 2020 (r536765)
+++ head/lang/ghc/Makefile Thu May 28 12:58:56 2020 (r536766)
@@ -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}
More information about the svn-ports-head
mailing list