-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.PL
51 lines (46 loc) · 1.59 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'XML::SAX::Expat',
VERSION_FROM => 'Expat.pm',
AUTHOR => 'Robin Berjon',
ABSTRACT => 'SAX Driver for Expat',
PREREQ_PM => {
XML::SAX::Base => '1.00',
XML::Parser => '2.27',
XML::NamespaceSupport => '0.03',
XML::SAX => '0.03',
},
LICENSE => 'perl',
'dist' => {
PREOP => 'chmod 600 Makefile.PL',
TARFLAGS => '--group=none --owner=bjoern --mode=a+rw -cvf',
COMPRESS => 'gzip -9',
},
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'https://github.com/hoehrmann/XML-SAX-Expat.git',
web => 'https://github.com/hoehrmann/XML-SAX-Expat',
},
},
},
);
## add ourselves to the list of installed parsers
sub MY::install {
package MY;
my $script = shift->SUPER::install(@_);
unless ($ENV{'SKIP_SAX_INSTALL'}) {
$script =~ s/install :: (.*)$/install :: $1 install_sax_expat/m;
$script .= <<"INSTALL";
install_sax_expat :
\t\@\$(PERL) -I\$(INSTALLSITELIB) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()"
INSTALL
} else {
warn "Note: 'make install' will skip XML::SAX::Expat registration with XML::SAX!\n";
}
return $script;
}