Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2013 14:11:04 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317117 - head/Mk
Message-ID:  <201305021411.r42EB4nL076566@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305021411.r42EB4nL076566>