From owner-freebsd-ports Tue Mar 5 23:01:29 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA24277 for ports-outgoing; Tue, 5 Mar 1996 23:01:29 -0800 (PST) Received: from silvia.HIP.Berkeley.EDU (silvia.HIP.Berkeley.EDU [136.152.64.181]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA24248 for ; Tue, 5 Mar 1996 23:01:20 -0800 (PST) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.7.4/8.6.9) id XAA15481; Tue, 5 Mar 1996 23:01:04 -0800 (PST) Date: Tue, 5 Mar 1996 23:01:04 -0800 (PST) Message-Id: <199603060701.XAA15481@silvia.HIP.Berkeley.EDU> To: jkh@time.cdrom.com CC: ports@freebsd.org, jfieber@grendel.csc.smith.edu In-reply-to: <24626.826094981@time.cdrom.com> (jkh@time.cdrom.com) Subject: Re: Dependencies in the INDEX? Whine.. From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-ports@freebsd.org Precedence: bulk I said: * The only problem is that we probably want the "directory" in that * field (like "lang/tcl74 x11/tk40") and it might look a little funny * going side-by-side with the list of package names ("tcl-7.4.2 * tk-4.0.2").... Or, we can just put in the package name in there, and let the web page use the INDEX file to do the reverse lookup. This probably makes more sense (and is aesthetically pleasing :). ===== --- /usr/src/share/mk/bsd.port.mk Sun Feb 18 01:35:48 1996 +++ bsd.port.mk Tue Mar 5 22:58:11 1996 @@ -1126,6 +1126,14 @@ .endif +.if !target(depends-list) +depends-list: + @for i in ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${DEPENDS}; do \ + dir=`/bin/echo $$i | /usr/bin/sed -e 's/.*://'`; \ + (cd $$dir ; ${MAKE} package-name depends-list); \ + done +.endif + ################################################################ # Everything after here are internal targets and really # shouldn't be touched by anybody but the release engineers. @@ -1135,7 +1143,7 @@ # a large index. Format is: # # distribution-name|port-path|installation-prefix|comment| \ -# description-file|maintainer|categories|keywords +# description-file|maintainer|categories|build deps|run deps # .if !target(describe) describe: @@ -1151,7 +1159,10 @@ else \ /bin/echo -n "|/dev/null"; \ fi - @/bin/echo -n "|${MAINTAINER}|${CATEGORIES}|${KEYWORDS}" + @/bin/echo -n "|${MAINTAINER}|${CATEGORIES}|" + @/bin/echo -n `make depends-list|sort|uniq` + @/bin/echo -n "|" + @/bin/echo -n `make package-depends|sort|uniq` @/bin/echo "" .endif ===== Satoshi