AnyEvent-Plurk
view release on metacpan or search on metacpan
inc/Module/AutoInstall.pm view on Meta::CPAN
173174175176177178179180181182183184185186187188189190191192193
unshift
@$modules
,
$arg
;
$arg
= 0;
}
# XXX: check for conflicts and uninstalls(!) them.
my
$cur
= _load(
$mod
);
if
(_version_cmp (
$cur
,
$arg
) >= 0)
{
"loaded. ($cur"
. (
$arg
?
" >= $arg"
:
''
) .
")\n"
;
push
@Existing
,
$mod
=>
$arg
;
$DisabledTests
{
$_
} = 1
for
map
{
glob
(
$_
) }
@skiptests
;
}
else
{
if
(not
defined
$cur
)
# indeed missing
{
"missing."
. (
$arg
?
" (would need $arg)"
:
''
) .
"\n"
;
}
else
{
# no need to check $arg as _version_cmp ($cur, undef) would satisfy >= above
"too old. ($cur < $arg)\n"
;
inc/Module/AutoInstall.pm view on Meta::CPAN
211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
qq{==> Auto-install the }
. (
@required
/ 2 )
. (
$mandatory
?
' mandatory'
:
' optional'
)
.
qq{ module(s) from CPAN?}
,
$default
?
'y'
:
'n'
,
) =~ /^[Yy]/
)
)
{
push
(
@Missing
,
@required
);
$DisabledTests
{
$_
} = 1
for
map
{
glob
(
$_
) }
@skiptests
;
}
elsif
( !
$SkipInstall
and
$default
and
$mandatory
and
_prompt(
qq{==> The module(s) are mandatory! Really skip?}
,
'n'
, )
=~ /^[Nn]/ )
{
push
(
@Missing
,
@required
);
$DisabledTests
{
$_
} = 1
for
map
{
glob
(
$_
) }
@skiptests
;
}
else
{
$DisabledTests
{
$_
} = 1
for
map
{
glob
(
$_
) }
@tests
;
}
}
if
(
@Missing
and not(
$CheckOnly
or
$UnderCPAN
) ) {
"*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n"
;
# make an educated guess of whether we'll need root permission.
" (You may need to do that as the 'root' user.)\n"
inc/Module/AutoInstall.pm view on Meta::CPAN
728729730731732733734735736737738739740741742743744745746747748
my
$manifest
= ExtUtils::Manifest::maniread(
'MANIFEST'
);
$args
{EXE_FILES} =
[
grep
{
exists
$manifest
->{
$_
} } @{
$args
{EXE_FILES} } ];
}
$args
{test}{TESTS} ||=
't/*.t'
;
$args
{test}{TESTS} =
join
(
' '
,
grep
{ !
exists
(
$DisabledTests
{
$_
} ) }
map
{
glob
(
$_
) }
split
( /\s+/,
$args
{test}{TESTS} ) );
my
$missing
=
join
(
','
,
@Missing
);
my
$config
=
join
(
','
, UNIVERSAL::isa(
$Config
,
'HASH'
) ? %{
$Config
} : @{
$Config
} )
if
$Config
;
$PostambleActions
= (
(
$missing
and not
$UnderCPAN
)
?
"\$(PERL) $0 --config=$config --installdeps=$missing"
:
"\$(NOECHO) \$(NOOP)"
inc/Module/Install.pm view on Meta::CPAN
187188189190191192193194195196197198199200201202203204205206207
);
}
my
@exts
= @{
$self
->{extensions}};
unless
(
@exts
) {
@exts
=
$self
->{admin}->load_all_extensions;
}
my
%seen
;
foreach
my
$obj
(
@exts
) {
while
(
my
(
$method
,
$glob
) =
each
%{
ref
(
$obj
) .
'::'
}) {
next
unless
$obj
->can(
$method
);
next
if
$method
=~ /^_/;
next
if
$method
eq
uc
(
$method
);
$seen
{
$method
}++;
}
}
my
$who
=
$self
->_caller;
foreach
my
$name
(
sort
keys
%seen
) {
*{
"${who}::$name"
} =
sub
{
( run in 0.383 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )