Commits

Anonymous committed e3634d0

Added SAX2 Parser tests and installer and prereq.

  • Participants
  • Parent commits e79b9e6

Comments (0)

Files changed (2)

 lib/XML/LibXML/Number.pm
 lib/XML/LibXML/SAX/Generator.pm
 lib/XML/LibXML/SAX/Builder.pm
+lib/XML/LibXML/SAX/Parser.pm
     'VERSION_FROM' => 'LibXML.pm', # finds $VERSION
     'AUTHOR'    => 'Matt Sergeant',
     'ABSTRACT'  => 'Interface to Gnome libxml2 xml parsing and DOM library',
+    'PREREQ_PM' => { 'XML::SAX' => 0 },
     'OBJECT'    => '$(O_FILES)', # add the DOM extensions to libxml2
     'dist'      => { PREOP => "$^X -Iblib/arch -Iblib/lib example/xml2pod.pl" },
     %config,
     return $str;
 }
 
+sub MY::install {
+    package MY;
+    my $script = shift->SUPER::install(@_);
+    $script =~ s/install :: (.*)$/install :: $1 install_sax_driver/m;
+    $script .= <<"INSTALL";
+
+install_sax_driver :
+\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
+ 
+INSTALL
+ 
+    return $script;
+}
+
+
 ###################################################################
 # Functions
 #  - these should really be in MakeMaker... But &shrug;