1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Fix excluding implied options.

This fixes the devel/git-lite port to not get PERL despite being excluded.

PR:		207460
PR:		202701
With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D5538
This commit is contained in:
Bryan Drewery 2016-05-03 18:36:29 +00:00
parent 1bffea19a2
commit 0e0764a175
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=414547

View File

@ -216,6 +216,16 @@ OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${ARCH}}
_ALL_EXCLUDE= ${OPTIONS_EXCLUDE_${ARCH}} ${OPTIONS_EXCLUDE} \
${OPTIONS_SLAVE} ${OPTIONS_EXCLUDE_${OPSYS}}
.for opt in ${OPTIONS_DEFINE:O:u}
. if !${_ALL_EXCLUDE:M${opt}}
. for opt_implied in ${${opt}_IMPLIES}
. if ${_ALL_EXCLUDE:M${opt_implied}}
_ALL_EXCLUDE+= ${opt}
. endif
. endfor
. endif
.endfor
# Remove options the port maintainer doesn't want
.for opt in ${_ALL_EXCLUDE:O:u}
OPTIONS_DEFAULT:= ${OPTIONS_DEFAULT:N${opt}}