aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2015-07-30 06:09:53 +0800
committerantoine <antoine@FreeBSD.org>2015-07-30 06:09:53 +0800
commit303e73dabd702e19dae0638e402b7adedc2e63d0 (patch)
tree39f5db5e677aac0352369cb6e46374b5bd11a774 /Mk
parentf1cfa348702ffe72cc29c7129885253c7d19e090 (diff)
downloadfreebsd-ports-gnome-303e73dabd702e19dae0638e402b7adedc2e63d0.tar.gz
freebsd-ports-gnome-303e73dabd702e19dae0638e402b7adedc2e63d0.tar.zst
freebsd-ports-gnome-303e73dabd702e19dae0638e402b7adedc2e63d0.zip
Switch default python_CMD used by shebangfix to ${PYTHON_CMD} for ports
using python PR: 201077 Reviewed by: mat With hat: portmgr Differential Revision: https://reviews.freebsd.org/D2955
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/shebangfix.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/Uses/shebangfix.mk b/Mk/Uses/shebangfix.mk
index 5ef46388fcf8..14443dc32a79 100644
--- a/Mk/Uses/shebangfix.mk
+++ b/Mk/Uses/shebangfix.mk
@@ -40,7 +40,11 @@ perl_CMD?= ${LOCALBASE}/bin/perl
php_OLD_CMD?= /usr/bin/php
php_CMD?= ${LOCALBASE}/bin/php
python_OLD_CMD?= /usr/bin/python
+.if ${USES:Mpython*}
+python_CMD?= ${PYTHON_CMD}
+.else
python_CMD?= ${LOCALBASE}/bin/python
+.endif
ruby_OLD_CMD?= /usr/bin/ruby
ruby_CMD?= ${LOCALBASE}/bin/ruby
tcl_OLD_CMD?= /usr/bin/tclsh