Don't pass the default version in DEPENDS_ARGS.

This greatly simplifies handling for Poudriere.

With hat:	portmgr
This commit is contained in:
Bryan Drewery 2017-06-06 00:28:56 +00:00
parent a88bcd8d74
commit 4745d5c87d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442730
2 changed files with 4 additions and 1 deletions

View file

@ -377,7 +377,8 @@ IGNORE= needs an unsupported version of Python
# try to find a different one, if the passed version fits into
# the supported version range.
PYTHON_VERSION?= python${_PYTHON_VERSION}
.if !defined(PYTHON_NO_DEPENDS)
.if !defined(PYTHON_NO_DEPENDS) && \
${PYTHON_VERSION} != ${PYTHON_DEFAULT_VERSION}
DEPENDS_ARGS+= PYTHON_VERSION=${PYTHON_VERSION}
.endif

View file

@ -256,7 +256,9 @@ RUBY_SHLIBVER?= ${RUBY_VER:S/.//}
RUBY_CONFIGURE_ARGS+= --program-prefix=""
.if ${RUBY_VER} != ${RUBY_DEFAULT_VER}
DEPENDS_ARGS+= RUBY_VER=${RUBY_VER}
.endif
RUBY_CONFIGURE_ARGS+= --program-suffix="${RUBY_SUFFIX}"