App-p5stack
view release on metacpan or search on metacpan
lib/App/p5stack.pm view on Meta::CPAN
434445464748495051525354555657585960616263my
(
$self
) =
@_
;
# set some defaults
$self
->{perl} =
'system'
;
$self
->{deps} =
'dzil'
;
$self
->{skip_install} = 1;
$self
->{p5stack_root} = catfile(
$ENV
{HOME},
'.p5stack'
);
$self
->{perls_root} = catfile(
$ENV
{HOME},
'.p5stack'
,
'perls'
);
$self
->{perl_version} =
'5.20.3'
;
# guess stuff from context
$self
->{deps} =
'cpanfile'
if
-e
'cpanfile'
;
# read config from file if available
my
$file
;
-e
'p5stack.yml'
and
$file
=
'p5stack.yml'
;
-e
"$ENV{HOME}.p5stack/p5stack.yml"
and
$file
=
"$ENV{HOME}.p5stack/p5stack.yml"
;
# FIXME
$ENV
{P5STACKCFG} and
$file
=
$ENV
{P5STACKCFG};
my
$config
;
if
(
$file
) {
( run in 0.307 second using v1.01-cache-2.11-cpan-95122f20152 )