~ubuntu-branches/ubuntu/wily/libalgorithm-dependency-perl/wily

« back to all changes in this revision

Viewing changes to inc/Module/Install/Can.pm

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Genannt
  • Date: 2011-07-02 12:52:05 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110702125205-20jfn0lgo4rjk91d
Tags: 1.110-1
* new upstream version (Closes: 605314)
* bumped debhelper compat version
* bumped standards version
  - dh_clean -k to dh_prep
  - added misc:Depends at control file
* changed PREFIX to DESTDIR at rules
* added homepage field at control

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
use strict;
5
5
use Module::Install::Base;
6
 
use Config ();
7
 
### This adds a 5.005 Perl version dependency.
8
 
### This is a bug and will be fixed.
9
 
use File::Spec ();
 
6
use Config              ();
 
7
use File::Spec          ();
10
8
use ExtUtils::MakeMaker ();
11
9
 
12
10
use vars qw{$VERSION $ISCORE @ISA};
13
11
BEGIN {
14
 
        $VERSION = '0.68';
 
12
        $VERSION = '0.83';
15
13
        $ISCORE  = 1;
16
14
        @ISA     = qw{Module::Install::Base};
17
15
}
39
37
        return $_cmd if (-x $_cmd or $_cmd = MM->maybe_command($_cmd));
40
38
 
41
39
        for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
 
40
                next if $dir eq '';
42
41
                my $abs = File::Spec->catfile($dir, $_[1]);
43
42
                return $abs if (-x $abs or $abs = MM->maybe_command($abs));
44
43
        }
79
78
 
80
79
__END__
81
80
 
82
 
#line 157
 
81
#line 156