Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2014 02:43:37 +0000 (UTC)
From:      Dag-Erling Smørgrav <des@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r354276 - head/Mk
Message-ID:  <201405170243.s4H2hb5h017736@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405170243.s4H2hb5h017736>