From owner-freebsd-ports Sat Oct 14 0:50:11 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 58EDA37B675 for ; Sat, 14 Oct 2000 00:50:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA10755; Sat, 14 Oct 2000 00:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sat, 14 Oct 2000 00:50:02 -0700 (PDT) Message-Id: <200010140750.AAA10755@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: asami@FreeBSD.org (Satoshi - Ports Wraith - Asami) Subject: Re: ports/21952: make readmes in ports is broke Reply-To: asami@FreeBSD.org (Satoshi - Ports Wraith - Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/21952; it has been noted by GNATS. From: asami@FreeBSD.org (Satoshi - Ports Wraith - Asami) To: Cc: srodberg@visi.com, freebsd-gnats-submit@FreeBSD.org, Dann Lunsford Subject: Re: ports/21952: make readmes in ports is broke Date: 14 Oct 2000 00:40:01 -0700 * This same problem was reported by Dann Lunsford in PR 21851. * Does his patch work for you? Actually, bsd.port.subdir.mk was broken a long time ago -- the recent update just made the problem worse. Please try the following. It seems to work fine for ports that define MASTERDIR and/or COMMENT/DESCR. I've also added inclusion of the comment file in the category level. Satoshi ------- Index: Mk/bsd.port.subdir.mk =================================================================== RCS file: /usr/cvs/ports/Mk/bsd.port.subdir.mk,v retrieving revision 1.38 diff -u -r1.38 bsd.port.subdir.mk --- Mk/bsd.port.subdir.mk 2000/08/08 14:56:46 1.38 +++ Mk/bsd.port.subdir.mk 2000/10/14 03:49:18 @@ -195,6 +195,8 @@ .else README= ${TEMPLATES}/README.category .endif +COMMENT?= ${.CURDIR}/pkg/COMMENT +DESCR?= ${.CURDIR}/pkg/DESCR HTMLIFY= sed -e 's/&/\&/g' -e 's/>/\>/g' -e 's/'"`cd ${entry}; make package-name | ${HTMLIFY}`: " >> $@.tmp .endif -.if exists(${entry}/pkg/COMMENT) - @${HTMLIFY} ${entry}/pkg/COMMENT >> $@.tmp -.else - @echo "(no description)" >> $@.tmp -.endif + @cat `cd ${entry}; make -V COMMENT` | ${HTMLIFY} >> $@.tmp .endfor @sort -t '>' +1 -2 $@.tmp > $@.tmp2 -.if exists(${.CURDIR}/pkg/DESCR) - @${HTMLIFY} ${.CURDIR}/pkg/DESCR > $@.tmp3 +.if exists(${DESCR}) + @${HTMLIFY} ${DESCR} > $@.tmp3 .else @> $@.tmp3 .endif +.if exists(${COMMENT}) + @${HTMLIFY} ${COMMENT} > $@.tmp4 +.else + @> $@.tmp4 +.endif @cat ${README} | \ sed -e 's/%%CATEGORY%%/'"`basename ${.CURDIR}`"'/g' \ + -e '/%%COMMENT%%/r$@.tmp4' \ + -e '/%%COMMENT%%/d' \ -e '/%%DESCR%%/r$@.tmp3' \ -e '/%%DESCR%%/d' \ -e '/%%SUBDIR%%/r$@.tmp2' \ Index: Templates/README.category =================================================================== RCS file: /usr/cvs/ports/Templates/README.category,v retrieving revision 1.2 diff -u -r1.2 README.category --- Templates/README.category 2000/01/21 11:08:22 1.2 +++ Templates/README.category 2000/10/14 03:47:19 @@ -5,6 +5,12 @@

You are now in the directory "%%CATEGORY%%". +

This is the one-line description for this category: + +


+%%COMMENT%% +


+

%%DESCR%% To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message