svn commit: r354276 - head/Mk

Dag-Erling Smørgrav des at FreeBSD.org
Sat May 17 02:43:38 UTC 2014


Author: des
Date: Sat May 17 02:43:37 2014
New Revision: 354276
URL: http://svnweb.freebsd.org/changeset/ports/354276
QAT: https://qat.redports.org/buildarchive/r354276/

Log:
  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)

Modified:
  head/Mk/bsd.pkgng.mk

Modified: head/Mk/bsd.pkgng.mk
==============================================================================
--- head/Mk/bsd.pkgng.mk	Sat May 17 02:39:24 2014	(r354275)
+++ head/Mk/bsd.pkgng.mk	Sat May 17 02:43:37 2014	(r354276)
@@ -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 \


More information about the svn-ports-all mailing list