| 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 | 96 | ▶ | use 5.006001; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 14 | 96 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 15 | 96 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 16 | |||||||||||||||
| 17 | 96 | ▶ | use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 18 | |||||||||||||||
| 19 | 96 | $VERSION = '7.78'; | |||||||||||||
| 20 | 96 | $VERSION =~ tr/_//d; | |||||||||||||
| 21 | 96 | $CLASS = 'version'; | |||||||||||||
| 22 | |||||||||||||||
| 23 | { | ||||||||||||||
| 24 | 96 | local $SIG{'__DIE__'}; | |||||||||||||
| 25 | 96 | ▶ | eval "use version"; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 26 | 96 | ▶ | if ( $@ ) { # don't have any version.pm installed | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 27 | 0 | eval "use ExtUtils::MakeMaker::version::vpp"; | |||||||||||||
| 28 | 0 | ▶ | die "$@" if ( $@ ); | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 29 | 96 | ▶ | no warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 30 | 0 | delete $INC{'version.pm'}; | |||||||||||||
| 31 | 0 | $INC{'version.pm'} = $INC{'ExtUtils/MakeMaker/version.pm'}; | |||||||||||||
| 32 | 0 | push @version::ISA, "ExtUtils::MakeMaker::version::vpp"; | |||||||||||||
| 33 | 0 | $version::VERSION = $VERSION; | |||||||||||||
| 34 | 0 | *version::qv = \&ExtUtils::MakeMaker::version::vpp::qv; | |||||||||||||
| 35 | 0 | *version::declare = \&ExtUtils::MakeMaker::version::vpp::declare; | |||||||||||||
| 36 | 0 | *version::_VERSION = \&ExtUtils::MakeMaker::version::vpp::_VERSION; | |||||||||||||
| 37 | 0 | *version::vcmp = \&ExtUtils::MakeMaker::version::vpp::vcmp; | |||||||||||||
| 38 | 0 | *version::new = \&ExtUtils::MakeMaker::version::vpp::new; | |||||||||||||
| 39 | 0 | ▶ | if ("$]" >= 5.009000) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 40 | 96 | ▶ | no strict 'refs'; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 41 | 0 | *version::stringify = \&ExtUtils::MakeMaker::version::vpp::stringify; | |||||||||||||
| 42 | 0 | *{'version::(""'} = \&ExtUtils::MakeMaker::version::vpp::stringify; | |||||||||||||
| 43 | 0 | *{'version::(<=>'} = \&ExtUtils::MakeMaker::version::vpp::vcmp; | |||||||||||||
| 44 | 0 | *version::parse = \&ExtUtils::MakeMaker::version::vpp::parse; | |||||||||||||
| 45 | } | ||||||||||||||
| 46 | 0 | require ExtUtils::MakeMaker::version::regex; | |||||||||||||
| 47 | 0 | *version::is_lax = \&ExtUtils::MakeMaker::version::regex::is_lax; | |||||||||||||
| 48 | 0 | *version::is_strict = \&ExtUtils::MakeMaker::version::regex::is_strict; | |||||||||||||
| 49 | 0 | *LAX = \$ExtUtils::MakeMaker::version::regex::LAX; | |||||||||||||
| 50 | 0 | *STRICT = \$ExtUtils::MakeMaker::version::regex::STRICT; | |||||||||||||
| 51 | } | ||||||||||||||
| 52 | elsif ( ! version->can('is_qv') ) { | ||||||||||||||
| 53 | 0 | ▶ | *version::is_qv = sub { exists $_[0]->{qv} }; | ||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||
| 54 | } | ||||||||||||||
| 55 | } | ||||||||||||||
| 56 | |||||||||||||||
| 57 | 96 | 1; | |||||||||||||