Skip to content

Commit a676ff3

Browse files
authored
Merge pull request #1 from perl-net-saml2/distzilla
Move build to Dist::zilla
2 parents 1eb746e + d565282 commit a676ff3

File tree

7 files changed

+812
-54
lines changed

7 files changed

+812
-54
lines changed

META.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

Makefile.PL

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,48 @@
1+
use strict;
2+
use warnings;
3+
4+
use 5.008;
5+
16
use ExtUtils::MakeMaker;
2-
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
3-
# the contents of the Makefile that is written.
4-
WriteMakefile(
5-
'NAME' => 'XML::Generator',
6-
'PM' => { 'Generator.pm' => '$(INST_LIBDIR)/Generator.pm',
7-
'DOM.pm' => '$(INST_LIBDIR)/Generator/DOM.pm' },
8-
'MAN3PODS' => { 'Generator.pm' => '$(INST_MAN3DIR)/XML::Generator.3',
9-
'DOM.pm' => '$(INST_MAN3DIR)/XML::Generator::DOM.3' },
10-
'VERSION_FROM' => 'Generator.pm', # finds $VERSION
7+
8+
my %WriteMakefileArgs = (
9+
"ABSTRACT" => "Perl extension for generating XML",
10+
"AUTHOR" => "Benjamin Holzman <bholzman\@gmail.com>",
11+
"CONFIGURE_REQUIRES" => {
12+
"ExtUtils::MakeMaker" => 0
13+
},
14+
"DISTNAME" => "XML-Generator",
15+
"LICENSE" => "perl",
16+
"MIN_PERL_VERSION" => "5.008",
17+
"NAME" => "XML::Generator",
18+
"PREREQ_PM" => {
19+
"Tie::IxHash" => 0,
20+
"XML::DOM" => "1.46"
21+
},
22+
"TEST_REQUIRES" => {
23+
"Test" => 0
24+
},
25+
"VERSION" => "1.06",
26+
"test" => {
27+
"TESTS" => "t/*.t"
28+
}
1129
);
30+
31+
32+
my %FallbackPrereqs = (
33+
"Test" => 0,
34+
"Tie::IxHash" => 0,
35+
"XML::DOM" => "1.46"
36+
);
37+
38+
39+
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
40+
delete $WriteMakefileArgs{TEST_REQUIRES};
41+
delete $WriteMakefileArgs{BUILD_REQUIRES};
42+
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
43+
}
44+
45+
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
46+
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
47+
48+
WriteMakefile(%WriteMakefileArgs);

0 commit comments

Comments
 (0)