use
version 0.77;
our
$VERSION
= version->declare( v0.1.5 );
Hide Show 72 lines of Pod
my
$builder
= Module::Build->new(
module_name
=>
q|File::AptFetch|
,
dynmic_config
=> 1,
dist_author
=>
q|Eric Pozharski <whynot@cpan.org>|
,
dist_version_from
=>
q|lib/AptFetch.pm|
,
sign
=> 1,
requires
=>
{
perl
=> qv v5.8.0,
version
=> qv v0.77,
Carp
=>
''
,
Cwd
=>
''
,
q|IO::Pipe|
=>
''
},
build_requires
=>
{
q|Test::More|
=>
''
,
q|File::Temp|
=>
''
,
POSIX
=>
''
},
pm_files
=>
{
q|lib/AptFetch.pm|
=>
q|lib/File/AptFetch.pm|
,
q|lib/Simple.pm|
=>
q|lib/File/AptFetch/Simple.pm|
},
pod_files
=>
{
q|lib/Cookbook.pod|
=>
q|lib/File/AptFetch/Cookbook.pod|
},
add_to_cleanup
=> [
qw| *.tmp *.bak skip_* |
] );
if
( version->parse(
$Module::Build::VERSION
) > qv v0.36 ) {
$builder
->license(
q|LGPL_3_0|
);
$builder
->configure_requires(
q|Module::Build|
=> qv v0.36 ) }
else
{
$builder
->license(
q|open_source|
);
$builder
->configure_requires(
q|Module::Build|
=> qv v0.28 );
$builder
->meta_add({
resources
=>
Hide Show 16 lines of Pod
Hide Show 8 lines of Pod
$builder
->config_data(
config_source
=> [
qw| /usr/bin/apt-config dump |
]);
Hide Show 8 lines of Pod
$builder
->config_data(
signal
=>
q|TERM|
);
Hide Show 12 lines of Pod
$builder
->config_data(
timeout
=> 120 );
$builder
->recursive_test_files( 1 );
$builder
->create_build_script( );
Hide Show 85 lines of Pod
=head1 TEST-SUITE
Two things should be tested in regard
with
B<F::AF>:
=over
=item methods and structures
I wouldn
't say I'
m happy
with
this part (F<t/void/*.t>).
It's mostly a crash-type testing.
And a problem here is that I'm not completely sure what an input (from methods
side) here could be.
=item APT methods itself
Only
local
methods are tested.
And I<cdrom> method, among them, is
no
way touched.
Remote methods are missing from the test-suite.
This problem is easily fixable -- some kind Perlist could upload on CPAN some
modules, in B<Test> namespace, what would provide fake servers of
Anyone?
=back
And one note.
B<F::AF> is absolutely useles outside APT based world
(I
'm not about F<*.deb>, I'
m about APT).
Then F<t/file/*.t> and F<t/copy/*.t> skip completely.
Meanwhile F<t/void/*.t> enables some cute workaround, that would provide
all needed C<apt-config(1)> functionality without that executable itself.
(Just in case on that platform there will be Debian some day.)
But we still stay within POSIX world --
no
future outside.
=head1 AVAILABILITY
=over
=item pure distribution
=item and debianization stuff too
=item subversion (root)
=back
=head1 BUGS
=over
=item please report here
=item please don't report there
=back
=head1 COPYRIGHT AND LICENSING
=over
=item *
Copyright 2009, 2010, 2014 by Eric Pozharski <whynot
@cpan
.org>
=item *
AS-IS, NO-WARRANTY, HOPE-TO-BE-USEFUL
=item *
GNU Lesser General Public License v3
=back