From owner-freebsd-ports Wed Aug 9 0:16:58 2000 Delivered-To: freebsd-ports@freebsd.org Received: from bsa-1-as01-7-a60.gd.uol.com.br (bsa-1-as01-7-a60.gd.uol.com.br [200.197.118.60]) by hub.freebsd.org (Postfix) with ESMTP id 8BD1637B7AD for ; Wed, 9 Aug 2000 00:16:47 -0700 (PDT) (envelope-from lioux@uol.com.br) Received: (qmail 1999 invoked by uid 1001); 8 Aug 2000 20:36:58 -0000 From: "Mario Sergio Fujikawa Ferreira" Date: Tue, 8 Aug 2000 17:36:36 -0300 To: Akinori -Aki- MUSHA Cc: Mario Sergio Fujikawa Ferreira , Ade Lovett , asami@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG, yasuf@bsdclub.org Subject: Re: Call for a new virtual category: "ruby" Message-ID: <20000808173636.B517@Fedaykin.here> References: <86og37a5jc.wl@localhost.local.idaemons.org> <20000806175148.D343@FreeBSD.org> <86zompvqgd.wl@localhost.local.idaemons.org> <20000806200512.A452@FreeBSD.org> <20000807124240.A14734@Fedaykin.here> <86u2cvwrzu.wl@localhost.local.idaemons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <86u2cvwrzu.wl@localhost.local.idaemons.org>; from knu@idaemons.org on Wed, Aug 09, 2000 at 03:02:23AM +0900 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Aug 09, 2000 at 03:02:23AM +0900, Akinori -Aki- MUSHA wrote: > By the way, > > At Mon, 7 Aug 2000 12:42:41 -0300, > Mario Sergio Fujikawa Ferreira wrote: > > Not counting the language categories (ko, ...), > > we should not create virtual categories with less > > than the smallest category we already have: > > namely mbone (15 ports). > > The following Ruby script counts the number of ports in each category > and lists them sorted: > > $ ruby -naF'\|' -e 'BEGIN { $cat = Hash.new(0) }; \ > $F[6].split(/ /).each { |c| $cat[c] += 1 }; \ > END { $cat.sort {|a,b| b[1] <=> a[1] }.each \ > {|a| puts a.reverse.join("\t") } }' /usr/ports/INDEX > 347 devel > 320 japanese > 293 games > 291 net > 244 www > 220 graphics > 200 print > 195 editors > 191 perl5 > 160 misc > 150 mail > 145 x11 > 144 security > 141 audio > 138 lang > 127 sysutils > 119 textproc > 115 gnome > 111 elisp > 84 x11-toolkits > 80 math > 72 tk82 > 68 databases > 66 kde > 63 windowmaker > 61 emulators > 61 news > 59 korean > 48 linux > 48 python > 48 x11-wm > 41 x11-fonts > 39 chinese > 39 ipv6 > 38 ftp > 37 java > 36 x11-servers > 36 deskutils > 34 comms > 32 irc > 32 archivers > 31 converters > 28 x11-clocks > 26 shells > 25 biology > 24 astro > 23 afterstep > 23 palm > 22 cad > 20 x11-fm > 18 russian > 18 benchmarks > 14 tk80 > 14 tcl82 > 11 mbone > 10 tkstep80 > 8 plan9 > 8 german > 7 tcl83 > 7 vietnamese > 6 offix > 6 tcl80 > 5 tk42 > 4 tk83 > 1 hebrew > 1 tcl81 > 1 tcl76 > > Hmm. I can't think of a good comment for now. Anyone? :) > > Please don't yell at me "Too many Japanese ports!" :) I wouldn't dare. I am Fujikawa, you know. However, there seems to be some confusion on the number of real ports. Here follows my little script (just wrote) to check the number of non-virtual ports. I check by the number of subdirectories in each category. Not clever but I did in 15 seconds. You are counting the crosscategories ports more than once. for i in *^Jdo^Jj=`cd $i && ls | wc -w && cd ..` && echo $((j-3)) $i^Jdone 5 Mk 2 Templates 2 Tools 32 archivers 25 astro 137 audio 17 benchmarks 26 biology 18 cad 41 chinese 24 comms 29 converters 55 databases 33 deskutils 318 devel 356 distfiles 133 editors 51 emulators 38 ftp 285 games 11 german 198 graphics 4 hebrew 32 irc 328 japanese 25 java 62 korean 125 lang 133 mail 75 math 12 mbone 153 misc 263 net 45 news 23 palm 100 print 18 russian 109 security 16 shells 121 sysutils 102 textproc 9 vietnamese 186 www 106 x11 29 x11-clocks 19 x11-fm 22 x11-fonts 38 x11-servers 81 x11-toolkits 50 x11-wm To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message