diff options
author | tsarna <tsarna@pkgsrc.org> | 1998-08-26 16:50:48 +0000 |
---|---|---|
committer | tsarna <tsarna@pkgsrc.org> | 1998-08-26 16:50:48 +0000 |
commit | 5e9cc577b8fdcc54f53b8688282af200abffa93e (patch) | |
tree | 5092d7557b175153b49374dbff6ec2e97fa94698 /mk | |
parent | 26f088cc59759a754fa997968e5b7d878e2ce04e (diff) | |
download | pkgsrc-5e9cc577b8fdcc54f53b8688282af200abffa93e.tar.gz |
Automatically append HOMEPAge to DESCR files, and remove homepage URLs
from individual DESCR files that had them.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index df47ebc04e3..a92bb6e67ec 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.148 1998/08/25 16:26:09 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.149 1998/08/26 16:50:53 tsarna Exp $ # # This file is in the public domain. # @@ -326,7 +326,8 @@ SCRIPTS_ENV+= ${INSTALL_MACROS} .endif COMMENT?= ${PKGDIR}/COMMENT -DESCR?= ${PKGDIR}/DESCR +DESCR_SRC?= ${PKGDIR}/DESCR +DESCR?= ${WRKDIR}/.DESCR PLIST= ${WRKDIR}/.PLIST PKG_CMD?= /usr/sbin/pkg_create @@ -934,7 +935,7 @@ do-install: # Package .if !target(do-package) -do-package: ${PLIST} +do-package: ${PLIST} ${DESCR} @if [ -e ${PLIST} ]; then \ ${ECHO_MSG} "===> Building package for ${PKGNAME}"; \ if [ -d ${PACKAGES} ]; then \ @@ -1700,8 +1701,8 @@ describe: else \ ${ECHO} -n "** No Description"; \ fi; \ - if [ -f ${DESCR} ]; then \ - ${ECHO} -n "|${DESCR}"; \ + if [ -f ${DESCR_SRC} ]; then \ + ${ECHO} -n "|${DESCR_SRC}"; \ else \ ${ECHO} -n "|/dev/null"; \ fi; \ @@ -1816,7 +1817,7 @@ print-package-depends: # accordance to the @pkgdep directive in the packing lists .if !target(fake-pkg) -fake-pkg: ${PLIST} +fake-pkg: ${PLIST} ${DESCR} @if [ ! -f ${PLIST} -o ! -f ${COMMENT} -o ! -f ${DESCR} ]; then ${ECHO} "** Missing package files for ${PKGNAME} - installation not recorded."; exit 1; fi @if [ ! -d ${PKG_DBDIR} ]; then ${RM} -f ${PKG_DBDIR}; ${MKDIR} ${PKG_DBDIR}; fi .if defined(FORCE_PKG_REGISTER) @@ -1896,3 +1897,13 @@ ${PLIST}: ${PLIST_SRC} >${PLIST} ; \ fi .endif # MANZ + +# generate ${DESCR} from ${DESCR_SRC} by: +# - Appending the homepage URL, if any + +${DESCR}: ${DESCR_SRC} + @${CAT} ${DESCR_SRC} > ${DESCR} +.if defined(HOMEPAGE) + @(${ECHO} ; ${ECHO} "Homepage:" ; \ + ${ECHO} '${HOMEPAGE}') >> ${DESCR} +.endif |