App-depak
view release on metacpan or search on metacpan
0.55 2017-07-10 Released-By: PERLANCAR
- No functional changes.
- Replace Log::Any with Log::ger.
0.53 2016-08-02 Released-By: PERLANCAR
- [ux] skip_not_found now defaults to off unless when include_prereq is
specified then it defaults to on.
0.52 2016-02-29 Released-By: PERLANCAR
- Adjust to App::lcpan 0.66 (core modules now listed in 'deps'
output so we need to exclude it explicitly using
--no-include-core).
will be put at the end. This means Perl will search modules from the
regular sources (filesystem) first. This is useful for example if
you want your application to use the possibly newer version of
modules on the filesystem before using the packed version as the
fallback when some modules are not installed.
* shebang => *str* (default: "/usr/bin/perl")
Set shebang line/path.
* skip_not_found => *bool*
Instead of dying, skip when module to add is not found.
This option is useful when you use "include_prereq", because modules
without its own .pm files will also be included (CPAN indexes
packages, including those that do not have their own .pm files).
By default, this option is turned off unless when you use
"include_prereq" where this option is by default turned on. You can
of course override the default by explicitly specify this option.
lib/App/depak.pm view on Meta::CPAN
if (Module::XSOrPP::is_xs($mod)) {
unless (!$self->{allow_xs} || grep { $_ eq $mod } @{ $self->{allow_xs} } ||
grep { $_ eq $mod } @ALLOW_XS) {
die "Can't add XS module: $mod\n";
}
}
}
$mpath //= Module::Path::More::module_path(module=>$mod);
unless (defined $mpath) {
if ($self->{skip_not_found}) {
log_info("Path for module '%s' not found, skipped", $mod);
next MOD_TO_ADD;
} else {
die "Can't find path for $mod\n";
}
}
my $modp = $mod; $modp =~ s!::!/!g; $modp .= ".pm";
my ($dir) = $modp =~ m!(.+)/(.+)!;
if ($dir) {
lib/App/depak.pm view on Meta::CPAN
This option can be used to express dependency to an XS module, since XS modules
cannot be packed.
To query dependencies, a local CPAN index is used for querying speed. Thus, this
option requires that `lcpan` is installed and a fairly recent lcpan index is
available.
_
tags => ['category:module-selection'],
},
skip_not_found => {
summary => 'Instead of dying, skip when module to add is not found',
'summary.alt.bool.not' => 'Instead of skipping, die when module to add is not found',
schema => ['bool'],
description => <<'_',
This option is useful when you use `include_prereq`, because modules without its
own .pm files will also be included (CPAN indexes packages, including those that
do not have their own .pm files).
By default, this option is turned off unless when you use `include_prereq` where
lib/App/depak.pm view on Meta::CPAN
require Cwd;
require File::Util::Test;
require File::Spec;
require File::Temp;
my %args = @_;
my $self = __PACKAGE__->new(%args);
$self->{debug_keep_tempdir} //= $ENV{DEBUG_KEEP_TEMPDIR} // 0;
$self->{skip_not_found} //= $self->{include_prereq} ? 1:0;
my $tempdir = File::Temp::tempdir(CLEANUP => 0);
log_debug("Created tempdir %s", $tempdir);
$self->{tempdir} = $tempdir;
# for convenience of completion in bash, we allow / to separate namespace.
# we convert it back to :: here.
for (@{ $self->{exclude_module} // [] },
@{ $self->{exclude_dist} // [] },
@{ $self->{include_module} // [] },
lib/App/depak.pm view on Meta::CPAN
C<@INC>. If this option is set to true, the require hook will be put at the end.
This means Perl will search modules from the regular sources (filesystem) first.
This is useful for example if you want your application to use the possibly
newer version of modules on the filesystem before using the packed version as
the fallback when some modules are not installed.
=item * B<shebang> => I<str> (default: "/usr/bin/perl")
Set shebang lineE<sol>path.
=item * B<skip_not_found> => I<bool>
Instead of dying, skip when module to add is not found.
This option is useful when you use C<include_prereq>, because modules without its
own .pm files will also be included (CPAN indexes packages, including those that
do not have their own .pm files).
By default, this option is turned off unless when you use C<include_prereq> where
this option is by default turned on. You can of course override the default by
explicitly specify this option.
script/depak view on Meta::CPAN
input_file (see --input-file)
log_level (see --log-level)
multiple_runs (see --multiple-runs)
naked_res (see --naked-res)
output_file (see --output-file)
overwrite (see --overwrite)
pack_method (see --pack-method)
perl_version (see --perl-version)
put_hook_at_the_end (see --put-hook-at-the-end)
shebang (see --shebang)
skip_not_found (see --skip-not-found)
squish (see --squish)
strip (see --strip)
stripper (see --stripper)
stripper_comment (see --no-stripper-comment)
stripper_log (see --stripper-log)
stripper_maintain_linum (see --stripper-maintain-linum)
stripper_pod (see --no-stripper-pod)
stripper_ws (see --no-stripper-ws)
test (see --test)
test_cases (see --test-cases)
( run in 1.358 second using v1.01-cache-2.11-cpan-cc502c75498 )