| 1 | #--------------------------------------------------------------------------# | ||||||||||||||
| 2 | # This is a modified copy of version.pm 0.9909, bundled exclusively for | ||||||||||||||
| 3 | # use by ExtUtils::Makemaker and its dependencies to bootstrap when | ||||||||||||||
| 4 | # version.pm is not available. It should not be used by ordinary modules. | ||||||||||||||
| 5 | # | ||||||||||||||
| 6 | # When loaded, it will try to load version.pm. If that fails, it will load | ||||||||||||||
| 7 | # ExtUtils::MakeMaker::version::vpp and alias various *version functions | ||||||||||||||
| 8 | # to functions in that module. It will also override UNIVERSAL::VERSION. | ||||||||||||||
| 9 | #--------------------------------------------------------------------------# | ||||||||||||||
| 10 | |||||||||||||||
| 11 | package ExtUtils::MakeMaker::version; | ||||||||||||||
| 12 | |||||||||||||||
| 13 | 50 | ▶ | use 5.006001; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 14 | 50 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 15 | |||||||||||||||
| 16 | 50 | ▶ | use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 17 | |||||||||||||||
| 18 | 50 | $VERSION = '7.13_01'; | |||||||||||||
| 19 | 50 | $VERSION = eval $VERSION; | |||||||||||||
| 20 | 50 | $CLASS = 'version'; | |||||||||||||
| 21 | |||||||||||||||
| 22 | { | ||||||||||||||
| 23 | 50 | local $SIG{'__DIE__'}; | |||||||||||||
| 24 | 50 | ▶ | eval "use version"; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 25 | 50 | ▶ | if ( $@ ) { # don't have any version.pm installed | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 26 | 0 | eval "use ExtUtils::MakeMaker::version::vpp"; | |||||||||||||
| 27 | 0 | ▶ | die "$@" if ( $@ ); | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 28 | 0 | local $^W; | |||||||||||||
| 29 | 0 | delete $INC{'version.pm'}; | |||||||||||||
| 30 | 0 | $INC{'version.pm'} = $INC{'ExtUtils/MakeMaker/version.pm'}; | |||||||||||||
| 31 | 0 | push @version::ISA, "ExtUtils::MakeMaker::version::vpp"; | |||||||||||||
| 32 | 0 | $version::VERSION = $VERSION; | |||||||||||||
| 33 | 0 | *version::qv = \&ExtUtils::MakeMaker::version::vpp::qv; | |||||||||||||
| 34 | 0 | *version::declare = \&ExtUtils::MakeMaker::version::vpp::declare; | |||||||||||||
| 35 | 0 | *version::_VERSION = \&ExtUtils::MakeMaker::version::vpp::_VERSION; | |||||||||||||
| 36 | 0 | *version::vcmp = \&ExtUtils::MakeMaker::version::vpp::vcmp; | |||||||||||||
| 37 | 0 | *version::new = \&ExtUtils::MakeMaker::version::vpp::new; | |||||||||||||
| 38 | 0 | ▶ | if ($] >= 5.009000) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 39 | 50 | ▶ | no strict 'refs'; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 40 | 0 | *version::stringify = \&ExtUtils::MakeMaker::version::vpp::stringify; | |||||||||||||
| 41 | 0 | *{'version::(""'} = \&ExtUtils::MakeMaker::version::vpp::stringify; | |||||||||||||
| 42 | 0 | *{'version::(<=>'} = \&ExtUtils::MakeMaker::version::vpp::vcmp; | |||||||||||||
| 43 | 0 | *version::parse = \&ExtUtils::MakeMaker::version::vpp::parse; | |||||||||||||
| 44 | } | ||||||||||||||
| 45 | 0 | require ExtUtils::MakeMaker::version::regex; | |||||||||||||
| 46 | 0 | *version::is_lax = \&ExtUtils::MakeMaker::version::regex::is_lax; | |||||||||||||
| 47 | 0 | *version::is_strict = \&ExtUtils::MakeMaker::version::regex::is_strict; | |||||||||||||
| 48 | 0 | *LAX = \$ExtUtils::MakeMaker::version::regex::LAX; | |||||||||||||
| 49 | 0 | *STRICT = \$ExtUtils::MakeMaker::version::regex::STRICT; | |||||||||||||
| 50 | } | ||||||||||||||
| 51 | elsif ( ! version->can('is_qv') ) { | ||||||||||||||
| 52 | 0 | ▶ | *version::is_qv = sub { exists $_[0]->{qv} }; | ||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||
| 53 | } | ||||||||||||||
| 54 | } | ||||||||||||||
| 55 | |||||||||||||||
| 56 | 50 | 1; | |||||||||||||