aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.python.mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-05-02 14:11:03 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-05-02 14:11:03 +0000
commite727f72ce82a119ded89c38019cfb677207b98d7 (patch)
treee61a997db96cf00e80c0e9befaaa02d633c7e998 /Mk/bsd.python.mk
parent24fae57ed84ae28e1203f44529936e2f2cf03d0c (diff)
Notes
Diffstat (limited to 'Mk/bsd.python.mk')
-rw-r--r--Mk/bsd.python.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index f065310bde21..d94abd1c5093 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -359,8 +359,10 @@ DEPENDS_ARGS+= PYTHON_VERSION=${PYTHON_VERSION}
# 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