File: Makefile.PL

package info (click to toggle)
libxml-sax-perl 0.10-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 576 kB
  • ctags: 191
  • sloc: perl: 2,611; xml: 1,533; makefile: 35; sh: 28
file content (28 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (2)
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
use ExtUtils::MakeMaker;

WriteMakefile(
    'NAME'	=> 'XML::SAX',
    'VERSION_FROM' => 'SAX.pm', # finds $VERSION
    'PREREQ_PM' => { 
        'File::Temp' => 0,
        'XML::NamespaceSupport' => 0.03,
    },    
    'EXE_FILES' => [ 'update-perl-sax-parsers' ],
);

#sub MY::install {
#    package MY;
#    my $script = shift->SUPER::install(@_);
#    if (ExtUtils::MakeMaker::prompt("Do you want XML::SAX to alter ParserDetails.ini?", "Y") =~ /^y/i) {
#        $script =~ s/install :: (.*)$/install :: $1 install_sax_pureperl/m;
#        $script .= <<"INSTALL";
#
#install_sax_pureperl :
#\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
#
#INSTALL
#
#    }
#
#    return $script;
#}