The manpages don't have to be built by MakeMaker for the
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sat, 5 Apr 2003 11:45:36 +0000 (11:45 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sat, 5 Apr 2003 11:45:36 +0000 (11:45 +0000)
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

ext/Devel/PPPort/Makefile.PL
ext/Unicode/Normalize/Makefile.PL
ext/XS/APItest/Makefile.PL

index f4cf6f5..e86ed3b 100644 (file)
@@ -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,
 );
index 2b834d7..d37906a 100644 (file)
@@ -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 <SADAHIRO@cpan.org>') : ()),
     clean => {FILES=> 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h'},
+    @coreopts,
 );
index 6e6cb49..4ff9403 100644 (file)
@@ -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"  };