svn commit: r317117 - head/Mk
Baptiste Daroussin
bapt at FreeBSD.org
Thu May 2 14:11:04 UTC 2013
Author: bapt
Date: Thu May 2 14:11:03 2013
New Revision: 317117
URL: http://svnweb.freebsd.org/changeset/ports/317117
Log:
Only try to retrieve python's version is the python command is installed to please bmake
Obtained from: dports
Modified:
head/Mk/bsd.python.mk
Modified: head/Mk/bsd.python.mk
==============================================================================
--- head/Mk/bsd.python.mk Thu May 2 14:09:21 2013 (r317116)
+++ head/Mk/bsd.python.mk Thu May 2 14:11:03 2013 (r317117)
@@ -359,8 +359,10 @@ DEPENDS_ARGS+= PYTHON_VERSION=${PYTHON_
# should point to some other version we have installed, according to the port USE_PYTHON
# specification
.if !defined(PYTHON_DEFAULT_PORTVERSION) || (${PYTHON_VERSION} != ${PYTHON_DEFAULT_VERSION})
+.if exists(${PYTHON_CMD})
_PYTHON_PORTVERSION!= (${PYTHON_CMD} -c 'import sys; \
print(sys.version.split()[0].replace("b",".b"))' 2> /dev/null) | ${TAIL} -1
+.endif
.if !defined(PYTHON_NO_DEPENDS) && !empty(_PYTHON_PORTVERSION)
PYTHON_PORTVERSION= ${_PYTHON_PORTVERSION}
.endif
More information about the svn-ports-all
mailing list