Skip to content

Commit

Permalink
Simplify Makefile.PL
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Aug 23, 2023
1 parent 9545cff commit 416d0e5
Showing 1 changed file with 38 additions and 34 deletions.
72 changes: 38 additions & 34 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -13,65 +13,69 @@ if (!eval { pack "Q", 1 }) {
exit(1);
}

WriteMakefile(
my %WriteMakefileArgs = (


NAME => 'App::zipdetails',
VERSION_FROM => 'lib/App/zipdetails.pm',

PREREQ_PM => { 'Getopt::Long' => 0,
'IO::File' => 0,
'Encode' => 0,
'Fcntl' => 0,
'Time::Local' => 0,
},

( eval { ExtUtils::MakeMaker->VERSION(6.55_03) }
? ( BUILD_REQUIRES => { 'Cwd' => 0,
'Test::More' => 0,
'File::Temp' => 0,
'File::Basename' => 0,
'Data::Dumper' => 0,
}
)
: ()
),
BUILD_REQUIRES => { 'Cwd' => 0,
'Test::More' => 0,
'File::Temp' => 0,
'File::Basename' => 0,
'Data::Dumper' => 0,
},

ABSTRACT => 'Display details about the internal structure of Zip files',
AUTHOR => 'Paul Marquess <pmqs@cpan.org>',
LICENSE => 'perl',
EXE_FILES => ['bin/zipdetails'],

clean => {FILES => "t/files/*.got t/files/*/*.got t/files/*/*/*.got" },
META_MERGE => {

((ExtUtils::MakeMaker->VERSION() gt '6.30') ?
('LICENSE' => 'perl') : ()),
"meta-spec" => { version => 2 },

( eval { ExtUtils::MakeMaker->VERSION(6.46) }
? ( META_MERGE => {
no_index => {
directory => [ 't' ],
},

"meta-spec" => { version => 2 },
resources => {

no_index => {
directory => [ 't' ],
},
bugtracker => {
web => 'https://github.com/pmqs/zipdetails/issues'
},

resources => {
homepage => 'https://github.com/pmqs/zipdetails',

bugtracker => {
web => 'https://github.com/pmqs/zipdetails/issues'
repository => {
type => 'git',
url => 'git://github.com/pmqs/zipdetails.git',
web => 'https://github.com/pmqs/zipdetails',
},
},
},

homepage => 'https://github.com/pmqs/zipdetails',

repository => {
type => 'git',
url => 'git://github.com/pmqs/zipdetails.git',
web => 'https://github.com/pmqs/zipdetails',
},
},
}
)
: ()
),
clean => { FILES => "t/files/*.got t/files/*/*.got t/files/*/*/*.got" },

) ;

delete $WriteMakefileArgs{LICENSE}
unless eval { ExtUtils::MakeMaker->VERSION(6.30) } ;

delete $WriteMakefileArgs{META_MERGE}
unless eval { ExtUtils::MakeMaker->VERSION(6.46) } ;

delete $WriteMakefileArgs{BUILD_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.55_03) } ;

WriteMakefile(%WriteMakefileArgs);

# end of file Makefile.PL

0 comments on commit 416d0e5

Please sign in to comment.