1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

New feature: undefine variables.

PR:		ports/125273
Submitted by:	Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
This commit is contained in:
Alex Dupre 2008-07-11 10:48:35 +00:00
parent 85f5c9faad
commit aa10d1c25b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216688
3 changed files with 6 additions and 4 deletions

View File

@ -8,7 +8,7 @@
#
PORTNAME= portconf
PORTVERSION= 1.3
PORTVERSION= 1.4
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none

View File

@ -6,8 +6,10 @@ with the following syntax:
---------------------------------------------------------
# this is a comment
editors/openoffice*: WITH_CCACHE|LOCALIZED_LANG=it
print/ghostscript-gpl print/lpr-wrapper: A4
*: NOPORTDOCS
editors/openoffice.org-2: WITH_CCACHE|LOCALIZED_LANG=it
print/ghostscript-* print/lpr-wrapper: A4
sysutils/fusefs-kmod*: !KERNCONF | !NOPORTDOCS
www/firefox-i18n: WITHOUT_SWITCHER | FIREFOX_I18N=fr it
x11/fakeport: CONFIGURE_ARGS=--with-modules="aaa bbb ccc"
---------------------------------------------------------

View File

@ -36,7 +36,7 @@ _pwd=`pwd`
sed '/^#/d;/^[[:space:]]*$/d' "${_conf}" | while read _line; do
for _port in ${_line%%:*}; do
if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then
echo ${_line#*:} | sed -E 's/([A-Z0-9_]+)(=([^|]+))?/\1=\3/g;s/ *\| */|/g;s/ /%/g'
echo ${_line#*:} | sed -E 's/([A-Z0-9_]+)(=([^|]+))?/\1=\3/g;s/!([A-Z0-9_]+)=([^|]+)?/.undef \1/g;s/ *\| */|/g;s/ /%/g'
fi
done
done