85cc462e1d
* Moved helpers, common and triggers dirs into xbps-src, where they belong. * Renamed the templates dir to srcpkgs, it was so redundant before. * Make it possible to add subpkgs with no restriction in names, for example udev now has a subpkgs called "libgudev". Previously subpkgs were named "${sourcepkg}-${pkgname}". * xbps-src: changed to look for template files in current directory. That means that most arguments from the targets have been removed. * xbps-src: added a reinstall target, to remove + install. * xbps-src: do not overwrite binpkgs by default, skip them. And more that I forgot because it's a mega-commit that I've been working for some days already... --HG-- extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
49 lines
1.2 KiB
Diff
49 lines
1.2 KiB
Diff
Disable asking/registering the parser at install time, we do this
|
|
in the INSTALL/REMOVE scripts.
|
|
|
|
--- Makefile.PL.orig 2009-04-21 19:00:26.282249017 +0200
|
|
+++ Makefile.PL 2009-04-21 19:00:33.901197702 +0200
|
|
@@ -11,43 +11,3 @@ WriteMakefile(
|
|
'XML::NamespaceSupport' => 0.03,
|
|
},
|
|
);
|
|
-
|
|
-sub MY::install {
|
|
- package MY;
|
|
- my $script = shift->SUPER::install(@_);
|
|
-
|
|
- # Only modify existing ParserDetails.ini if user agrees
|
|
-
|
|
- my $write_ini_ok = 0;
|
|
-
|
|
- eval { require XML::SAX };
|
|
- if ($@) {
|
|
- $write_ini_ok = 1;
|
|
- }
|
|
- else {
|
|
- my $dir = File::Basename::dirname($INC{'XML/SAX.pm'});
|
|
- if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) {
|
|
- $write_ini_ok =
|
|
- ExtUtils::MakeMaker::prompt(
|
|
- "Do you want XML::SAX to alter ParserDetails.ini?", "Y"
|
|
- ) =~ /^y/i;
|
|
- }
|
|
- else {
|
|
- $write_ini_ok = 1;
|
|
- }
|
|
- }
|
|
-
|
|
- if ($write_ini_ok) {
|
|
- $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;
|
|
-}
|
|
-
|