-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.PL
29 lines (28 loc) · 1.01 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use strict;
use warnings;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'XML::XPathEngine',
AUTHOR => 'Michel Rodriguez <[email protected]>',
VERSION_FROM => 'lib/XML/XPathEngine.pm',
ABSTRACT_FROM => 'lib/XML/XPathEngine.pm',
PL_FILES => {},
PREREQ_PM => {
'Test::More' => 0,
},
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'https://github.com/mirod/XML--XPathEngine.git',
web => 'https://github.com/mirod/XML--XPathEngine',
},
},
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'XML-XPathEngine-*' },
);
# add the license bit in META.yaml
unless( `$^X -n -e'print if( m{license\\s*:\\s*perl})' Makefile`)
{ system $^X . q{ -p -i -e's{^((.*)distribution_type: module(.*))}{$1\n$2license: perl$3}m' Makefile}; }