Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 484108 | Differences between
and this patch

Collapse All | Expand All

(-)a/bin/g-cpan (-1 / +1 lines)
Lines 710-716 sub generatePackageInfo Link Here
710
710
711
                        # Detect the file extension, upstream usually uses .tar.gz, but not always
711
                        # Detect the file extension, upstream usually uses .tar.gz, but not always
712
                        my $module_a_ext = '';
712
                        my $module_a_ext = '';
713
                        foreach my $ext qw(tgz tbz2 tar.bz2 tar.xz tar.Z zip)
713
                        foreach my $ext (qw(tgz tbz2 tar.bz2 tar.xz tar.Z zip))
714
                        {
714
                        {
715
                            if ( $gcpan_run->{'cpan'}{lc($original_ebuild)}{'src_uri'} =~ m/\.\Q$ext\E$/ ) {
715
                            if ( $gcpan_run->{'cpan'}{lc($original_ebuild)}{'src_uri'} =~ m/\.\Q$ext\E$/ ) {
716
                                $module_a_ext = sprintf 'MODULE_A_EXT="%s"', $ext;
716
                                $module_a_ext = sprintf 'MODULE_A_EXT="%s"', $ext;
(-)a/lib/Gentoo/CPAN.pm (-3 / +2 lines)
Lines 322-328 sub FindDeps { Link Here
322
                close(YAML);
322
                close(YAML);
323
                if ( check_yaml(@yaml) ) {
323
                if ( check_yaml(@yaml) ) {
324
                my $arr = YAML::Load(@yaml);
324
                my $arr = YAML::Load(@yaml);
325
                foreach my $type qw(configure_requires requires build_requires recommends) {
325
                foreach my $type (qw(configure_requires requires build_requires recommends)) {
326
                    if ( my $ar_type = $arr->{$type} ) {
326
                    if ( my $ar_type = $arr->{$type} ) {
327
                        foreach my $module ( keys %{$ar_type} ) {
327
                        foreach my $module ( keys %{$ar_type} ) {
328
                            next if ( $module eq "" );
328
                            next if ( $module eq "" );
Lines 384-390 sub FindDeps { Link Here
384
                my (%p) = ();
384
                my (%p) = ();
385
                my $fh;
385
                my $fh;
386
386
387
                foreach my $type qw(requires configure_requires build_requires) {
387
                foreach my $type (qw(requires configure_requires build_requires)) {
388
                    if ( $fh = FileHandle->new("<$makefile\0") ) {
388
                    if ( $fh = FileHandle->new("<$makefile\0") ) {
389
                        local ($/) = "";
389
                        local ($/) = "";
390
                        while (<$fh>) {
390
                        while (<$fh>) {
391
- 

Return to bug 484108