[enhancement] proposal - make all ports independent of which version of Perl is installed or the major one

Bjarne D Mathiesen macintosh at mathiesen.info
Wed May 16 07:06:12 PDT 2012


Bjarne D Mathiesen wrote:
> I'll have some stat shortly as to how many & which ports we are talking
> about.

after some problems with variable scoping and piping, process
substitution came to the rescue, and I got this piece of bash 4.2 :

for version in 12 8 10 14
do
    cat << EOT

++++++++++++++++++++++++++++++++++++++
+ ports dependent on Perl 5.${version}
+
EOT
    declare -i counter=0
    while read portname[0] portname[1] portname[2]
    do
        fundet=$( \
            grep -E -e "(perl${version}|p5.${version})" $(port file
${portname[0]}) \
        |   wc -l )
        if [ ${fundet} -gt 0 ]
        then
            (( ++counter ))
            printf "%-25s %-10s %-s\n" \
                ${portname[0]} ${portname[1]} ${portname[2]%/*}
        fi
    done < <( port list )
    echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
    echo "number of ports dependent on Perl5.${version} : ${counter}"
done


++++++++++++++++++++++++++++++++++++++
+ ports dependent on Perl 5.12
+
PsyncX                    @2.2.2     aqua
flac2mp3                  @20041223  audio
libgda3                   @3.0.4     databases
mysql-zrm                 @2.0       databases
postgresql_autodoc        @1.31      databases
archway                   @0.2.1     devel
bugzilla                  @2.22.3    devel
cvsweb                    @3.0.6     devel
gnome-bindings-perl5      @2.30.2    devel
mtn-browse                @0.72      devel
vcheck                    @1.2.1     devel
ackmate                   @1.1.2     editors
zim                       @0.28      editors
tsung                     @1.4.2     erlang
frozenbubble2             @2.2.0     games
pioneers                  @0.12.5    games
xqf                       @1.0.5     games
anjuta                    @2.30.2.1  gnome
gnucash                   @2.4.10    gnome
gnucash-devel             @2.4.10    gnome
icon-naming-utils         @0.8.90    gnome
planner                   @0.14.4    gnome
system-tools-backends     @2.10.2    gnome
hugin-app                 @2011.0.0  graphics
imageindex                @1.1       graphics
amavisd-new               @2.7.0     mail
imapsync                  @1.488     mail
mailqfmt                  @0.6       mail
mb2md                     @3.20      mail
muttprint                 @0.72d     mail
pemail                    @1.2       mail
perfect_maildir           @0.3       mail
pflogsumm                 @1.1.3     mail
postgrey                  @1.32      mail
signing-party             @1.1.4     mail
sympa                     @5.4.7     mail
t-prot                    @2.5       mail
libqalculate              @0.9.7     math
pspp-devel                @0.7.9     math
cws2fws-pl                @0.0.1     multimedia
dvdrip                    @0.98.8    multimedia
gnupod                    @0.99.7    multimedia
libgpod                   @0.8.0     multimedia
GTorrentViewer            @0.2b      net
argus-monitor             @3.5       net
ddclient                  @3.8.1     net
ftpsync                   @1.2.34    net
fwknop                    @1.9.12    net
mediaserv                 @0.05      net
monarch                   @2.5.0     net
mosh                      @1.2       net
munin                     @1.4.5     net
nagios-plugins            @1.4.15    net
nedi                      @1.0.5     net
nfsen                     @1.3       net
nrg                       @0.99.27   net
rancid                    @2.3.6     net
sendpage                  @1.000003  net
shelldap                  @0.5       net
smokeping                 @2.4.2     net
snmptt                    @1.2       net
snownews                  @1.5.12    net
torrentsniff              @0.3.0     net
vantages                  @0.8.8b    net
gpredict                  @1.3       science
magicspp                  @2.10.0    science
perlprimer                @1.1.20    science
log2timeline              @0.51      security
makepasswd                @1.10-3    security
metasploit2               @2.7       security
tinyca2                   @0.7.5     security
backuppc                  @3.1.0     sysutils
cssh                      @3.22      sysutils
dirvish                   @1.2.1     sysutils
openbrowser               @1.0.1     sysutils
sleuthkit                 @3.2.3     sysutils
xserve-raid-tools         @1.2       sysutils
LaTeXML                   @0.7.0     tex
docbook2X                 @0.8.8     textproc
stardict                  @3.0.2     textproc
spidereyeballs            @0.21      www
wml                       @2.0.11    www
auto-multiple-choice      @0.491     x11
homebank                  @4.4       x11
exo                       @0.3.107   xfce
xfce-utils                @4.6.2     xfce
xfce4-appfinder           @4.6.2     xfce
xfce4-session             @4.6.2     xfce
xfce4-settings            @4.6.5     xfce
xfdesktop                 @4.6.2     xfce
xfprint                   @4.6.1     xfce
xfwm4                     @4.6.2     xfce
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
number of ports dependent on Perl5.12 : 92

:-)
-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3


More information about the macports-dev mailing list