my %gentooism;
+my %where = (
+ 'Audio-CD-disc-cover' => 1,
+ 'aww' => 0,
+ 'frontier-rpc' => 1,
+ 'gimp-perl' => 1,
+ 'gnome2-wnck' => 1,
+ 'HTML-Object' => 0,
+ 'JKFlow' => 0,
+ 'PDF-Create' => 0,
+);
+
for my $category (qw/perl-core dev-perl/) {
my $dir = PORTAGE . '/' . $category;
chdir $dir;
my $eb = (sort glob "$dir/$name/$name-*")[-1];
open my $fh, '<', $eb;
my ($pn, $on_cpan);
+ $on_cpan = $where{$name} if exists $where{$name};
while (<$fh>) {
$on_cpan = 1 if not defined $on_cpan
and /(?:MODULE_AUTHOR|SRC_URI=.*?(?i:cpan))/;
if ($pn and $pn ne $name) {
if ($on_cpan) {
$gentooism{$pn} = $name;
- } else {
+ } elsif (not defined $on_cpan) {
print STDERR "'$pn' => '$name' may not be on CPAN\n";
}
}
print STDERR +(keys %gentooism) . " gentooisms found\n";
-print "my %gentooism = (\n";
+print "our %gentooism = (\n";
printf " '%s'%s => '%s',\n", $_, (' ' x ($max - length)), $gentooism{$_}
for sort keys %gentooism;
print ");\n";