mirror of
https://git.freebsd.org/ports.git
synced 2025-05-24 23:16:33 -04: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:
parent
b155965534
commit
1504bf2f9f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354276
1 changed files with 7 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue