Revised Makefile.PL and Build.PL.

This commit is contained in:
依瑪貓 2021-02-07 23:38:16 +08:00
parent d25b673fd5
commit a852d4969f
2 changed files with 6 additions and 12 deletions

View File

@ -1,5 +1,7 @@
#! /usr/bin/perl -w #! /usr/bin/perl -w
require 5.008;
use strict; use strict;
use warnings FATAL => 'all';
use Module::Build; use Module::Build;
my $build = Module::Build->new( my $build = Module::Build->new(

View File

@ -1,17 +1,9 @@
#! /usr/bin/perl -w #! /usr/bin/perl -w
require 5.008;
use strict; use strict;
use warnings FATAL => 'all';
use ExtUtils::MakeMaker; use ExtUtils::MakeMaker;
use vars qw($eummver %sign %license);
$eummver = $ExtUtils::MakeMaker::VERSION;
$eummver =~ s/_//;
# SIGN is only availabe since ExtUtils::MakeMaker 6.18
%sign = qw();
%sign = (SIGN => 1) if $eummver > 6.17;
# LICENSE is only availabe since ExtUtils::MakeMaker 6.30_01
%license = qw();
%license = (LICENSE => "perl") if $eummver > 6.30;
WriteMakefile( WriteMakefile(
NAME => "Acme::GuessNumber", NAME => "Acme::GuessNumber",
VERSION => "0.04", VERSION => "0.04",
@ -19,8 +11,8 @@ WriteMakefile(
AUTHOR => "imacat <imacat\@mail.imacat.idv.tw>", AUTHOR => "imacat <imacat\@mail.imacat.idv.tw>",
PREREQ_PM => { }, PREREQ_PM => { },
PL_FILES => { }, PL_FILES => { },
%sign, LICENSE => "perl",
%license, SIGN => 1,
dist => { dist => {
COMPRESS => "gzip -9", COMPRESS => "gzip -9",