Date: Tue, 5 Mar 1996 22:55:02 -0800 (PST) From: asami@cs.berkeley.edu (Satoshi Asami) To: jkh@time.cdrom.com Cc: ports@freebsd.org, jfieber@grendel.csc.smith.edu Subject: Re: Dependencies in the INDEX? Whine.. Message-ID: <199603060655.WAA15239@silvia.HIP.Berkeley.EDU> In-Reply-To: <24626.826094981@time.cdrom.com> (jkh@time.cdrom.com)
next in thread | previous in thread | raw e-mail | index | archive | help
(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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603060655.WAA15239>