From owner-freebsd-ports Tue Mar 5 22:56:13 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA23267 for ports-outgoing; Tue, 5 Mar 1996 22:56:13 -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 WAA23211 for ; Tue, 5 Mar 1996 22:56:09 -0800 (PST) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.7.4/8.6.9) id WAA15239; Tue, 5 Mar 1996 22:55:02 -0800 (PST) Date: Tue, 5 Mar 1996 22:55:02 -0800 (PST) Message-Id: <199603060655.WAA15239@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 (John: looking at the ports www page, no immediate action is required on your part, as there is no mention to the keywords field anyway.) * It won't win any prizes for speed, but it looks fine! ;-) * * Also, don't forget that the print-index target will also have to * change in /usr/ports/Makefile. Yes. By the way, I was wondering if adding fetch/build dependencies (as a separate field, of course) might be worthwhile too. This would be more interesting for use on the web page, as we've been hearing from the users "hey I downloaded the port, why didn't you tell me that I needed something else?". 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").... ===== --- /usr/src/share/mk/bsd.port.mk Sun Feb 18 01:35:48 1996 +++ bsd.port.mk Tue Mar 5 22:50:56 1996 @@ -1126,6 +1126,15 @@ .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/.*://'`; \ + /bin/echo -n "$$dir " | /usr/bin/sed -e 's%${PORTSDIR}/%%'; \ + (cd $$dir ; ${MAKE} depends-list); \ + done +.endif + ################################################################ # Everything after here are internal targets and really # shouldn't be touched by anybody but the release engineers. @@ -1135,7 +1144,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 +1160,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