12 $line =~ /^Source-Makefile: \s*(.+\/([^\/]+)\/Makefile)\s*$/ and do {
16 $line =~ /^Package: \s*(.+)\s*$/ and do {
18 defined $pkg{$name} or $pkg{$name} = {};
19 $pkg{$name}->{src} = $src;
21 $line =~ /^Depends: \s*(.+)\s*$/ and do {
22 my @dep = split /,\s*/, $1;
23 $pkg{$name}->{depends} = \@dep;
27 foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) {
29 $line = "$pkg{$name}->{src}-compile:";
30 foreach my $dep (@{$pkg{$name}->{depends}}) {
31 if (defined $pkg{$dep}->{src} && $pkg{$name}->{src} ne $pkg{$dep}->{src}) {
33 $line .= " $pkg{$dep}->{src}-compile";