diff options
author | tsarna <tsarna@pkgsrc.org> | 1998-08-20 15:16:34 +0000 |
---|---|---|
committer | tsarna <tsarna@pkgsrc.org> | 1998-08-20 15:16:34 +0000 |
commit | 6bd0d65c650273bf304f345910aeaa6dbb0d1904 (patch) | |
tree | 02014b09f0272e3c01f055156a42a91ab10cda59 /mk | |
parent | 6cec9af390b5f47cca2d200755c03518c99f033b (diff) | |
download | pkgsrc-6bd0d65c650273bf304f345910aeaa6dbb0d1904.tar.gz |
The Grand Homepagification:
- New, optional Makefile variable HOMEPAGE, specifies a URL for
the home page of the software if it has one.
- The value of HOMEPAGE is used to add a link from the
README.html files.
- pkglint updated to know about it. The "correct" location for
HOMEPAGE in the Makefile is after MAINTAINER, in that same
section.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 410c868a7c8..1c21b0503f2 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.145 1998/08/19 15:21:20 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.146 1998/08/20 15:17:16 tsarna Exp $ # # This file is in the public domain. # @@ -1739,6 +1739,13 @@ SED_LICENSE_EXPR= -e 's|%%LICENSE%%|<p>Please note that this package has a SED_LICENSE_EXPR= -e 's|%%LICENSE%%||' .endif +# set up the "more info URL" information as a sed expression +.ifdef HOMEPAGE +SED_HOMEPAGE_EXPR= -e 's|%%HOMEPAGE%%|<p><a HREF="${HOMEPAGE}">This package has a home page.</a></p>|' +.else +SED_HOMEPAGE_EXPR= -e 's|%%HOMEPAGE%%||' +.endif + README.html: @${MAKE} depends-list PACKAGE_NAME_AS_LINK=YES | sort -u >> $@.tmp1 @[ -s $@.tmp1 ] || echo "<I>(none)</I>" >> $@.tmp1 @@ -1752,6 +1759,7 @@ README.html: -e '/%%PKG%%/r$@.tmp3' \ -e '/%%PKG%%/d' \ ${SED_LICENSE_EXPR} \ + ${SED_HOMEPAGE_EXPR} \ -e '/%%COMMENT%%/r${PKGDIR}/COMMENT' \ -e '/%%COMMENT%%/d' \ -e '/%%BUILD_DEPENDS%%/r$@.tmp1' \ @@ -1775,7 +1783,7 @@ README.html: mv $@.tmp $@ ; \ rm -f $@.BAK ; \ fi - @rm -f $@.tmp1 $@.tmp2 $@.tmp3 $@.tmp4 + @rm -f $@.tmp1 $@.tmp2 $@.tmp3 $@.tmp4 $@.tmp5 .if !target(print-depends-list) print-depends-list: |