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

Add support for package annotations. PKG_NOTES is a list of

annotation keys.  For each key "foo", there should be a variable
PKG_NOTE_foo which contains the corresponding value.

Approved by:	portmgr (bdrewery)
This commit is contained in:
Dag-Erling Smørgrav 2014-05-17 02:43:37 +00:00
parent b155965534
commit 1504bf2f9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354276

View File

@ -84,6 +84,13 @@ create-manifest:
@[ -z "${PORT_OPTIONS:M${opt}}" ] || match="on" ; ${ECHO_MSG} -n " ${opt}: $${match:-off}," >> ${MANIFESTF}
.endfor
@${ECHO_CMD} "}" >> ${MANIFESTF}
.if defined(PKG_NOTES)
@${ECHO_CMD} -n "annotations: {" >> ${MANIFESTF}
.for note in ${PKG_NOTES}
@${ECHO_CMD} -n ' ${note}: "${PKG_NOTE_${note}:Q}",' >> ${MANIFESTF}
.endfor
@${ECHO_CMD} " }" >> ${MANIFESTF}
.endif
@[ -f ${PKGINSTALL} ] && ${CP} ${PKGINSTALL} ${METADIR}/+INSTALL; \
${RM} -f ${METADIR}/+PRE_INSTALL ; \
for a in ${PKGPREINSTALL}; do \