From: Rafael Garcia-Suarez Date: Sat, 5 Apr 2003 11:45:36 +0000 (+0000) Subject: The manpages don't have to be built by MakeMaker for the X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9fdbfc113dab517e9adaec9b2bdb304801f9ed20;p=p5sagit%2Fp5-mst-13.2.git The manpages don't have to be built by MakeMaker for the core modules in ext/. Disable this in Devel::PPPort (not up-to-date on CPAN), Unicode::Normalize (the CPAN version uses a different Makefile.PL anyway) and XS::APItest (not CPANized.) p4raw-id: //depot/perl@19145 --- diff --git a/ext/Devel/PPPort/Makefile.PL b/ext/Devel/PPPort/Makefile.PL index f4cf6f5..e86ed3b 100644 --- a/ext/Devel/PPPort/Makefile.PL +++ b/ext/Devel/PPPort/Makefile.PL @@ -1,5 +1,16 @@ use ExtUtils::MakeMaker; +unless($ENV{PERL_CORE}) { + $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV; +} +if ($ENV{PERL_CORE}) { + # Pods will be built by installman. + @coreopts = ( MAN3PODS => {} ); +} +else { + @coreopts = (); +} + WriteMakefile( NAME => "Devel::PPPort", DISTNAME => "Devel-PPPort", @@ -12,5 +23,6 @@ WriteMakefile( OBJECT => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)', XSPROTOARG => '-noprototypes', 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" }, - 'clean' => { FILES => qw($(H_FILES))} + 'clean' => { FILES => qw($(H_FILES))}, + @coreopts, ); diff --git a/ext/Unicode/Normalize/Makefile.PL b/ext/Unicode/Normalize/Makefile.PL index 2b834d7..d37906a 100644 --- a/ext/Unicode/Normalize/Makefile.PL +++ b/ext/Unicode/Normalize/Makefile.PL @@ -5,6 +5,17 @@ use ExtUtils::MakeMaker; do "mkheader"; +unless($ENV{PERL_CORE}) { + $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV; +} +if ($ENV{PERL_CORE}) { + # Pods will be built by installman. + @coreopts = ( MAN3PODS => {} ); +} +else { + @coreopts = (); +} + WriteMakefile( 'NAME' => 'Unicode::Normalize', 'VERSION_FROM' => 'Normalize.pm', # finds $VERSION @@ -12,4 +23,5 @@ WriteMakefile( (ABSTRACT_FROM => 'Normalize.pm', # retrieve abstract from module AUTHOR => 'SADAHIRO Tomoyuki ') : ()), clean => {FILES=> 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h'}, + @coreopts, ); diff --git a/ext/XS/APItest/Makefile.PL b/ext/XS/APItest/Makefile.PL index 6e6cb49..4ff9403 100644 --- a/ext/XS/APItest/Makefile.PL +++ b/ext/XS/APItest/Makefile.PL @@ -14,6 +14,7 @@ WriteMakefile( 'INC' => '-I.', # e.g., '-I. -I/usr/include/other' # Un-comment this if you add C files to link with later: # 'OBJECT' => '$(O_FILES)', # link all the C files too + MAN3PODS => {}, # Pods will be built by installman. ); sub MY::install { "install ::\n" };