1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Simplify the creation of the options part of the pkgng manifest

This commit is contained in:
Baptiste Daroussin 2013-06-10 13:47:43 +00:00
parent 774c9a6ca6
commit 9db022d954
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320475

View File

@ -83,53 +83,13 @@ fake-pkg:
.endfor
@${ECHO_CMD} "]" >> ${MANIFESTF}
@${ECHO_CMD} -n "options: {" >> ${MANIFESTF}
.for opt in ${ALL_OPTIONS}
.for opt in ${COMPLETE_OPTIONS_LIST}
.if empty(PORT_OPTIONS:M${opt})
@${ECHO_CMD} -n "${opt}: off," >> ${MANIFESTF}
.else
@${ECHO_CMD} -n "${opt}: on," >> ${MANIFESTF}
.endif
.endfor
.for multi in ${OPTIONS_MULTI}
. for opt in ${OPTIONS_MULTI_${multi}}
. if empty(PORT_OPTIONS:M${opt})
@${ECHO_MSG} -n "${opt}: off, " >> ${MANIFESTF}
. else
@${ECHO_MSG} -n "${opt}: on, " >> ${MANIFESTF}
. endif
. endfor
.endfor
.for single in ${OPTIONS_SINGLE}
. for opt in ${OPTIONS_SINGLE_${single}}
. if empty(PORT_OPTIONS:M${opt})
@${ECHO_MSG} -n "${opt}: off, " >> ${MANIFESTF}
. else
@${ECHO_MSG} -n "${opt}: on, " >> ${MANIFESTF}
. endif
. endfor
.endfor
.for radio in ${OPTIONS_RADIO}
. for opt in ${OPTIONS_RADIO_${radio}}
. if empty(PORT_OPTIONS:M${opt})
@${ECHO_MSG} -n "${opt}: off, " >> ${MANIFESTF}
. else
@${ECHO_MSG} -n "${opt}: on, " >> ${MANIFESTF}
. endif
. endfor
.endfor
.for group in ${OPTIONS_GROUP}
. for opt in ${OPTIONS_GROUP_${group}}
. if empty(PORT_OPTIONS:M${opt})
@${ECHO_MSG} -n "${opt}: off, " >> ${MANIFESTF}
. else
@${ECHO_MSG} -n "${opt}: on, " >> ${MANIFESTF}
. endif
. endfor
.endfor
.undef multi
.undef single
.undef radio
.undef group
.undef opt
@${ECHO_CMD} "}" >> ${MANIFESTF}
@[ -f ${PKGINSTALL} ] && ${CP} ${PKGINSTALL} ${METADIR}/+INSTALL; \