summaryrefslogtreecommitdiff
path: root/utils/h2xs.PL
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-23 09:24:40 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-23 09:24:40 +0000
commit8bc03d0d6d6040fd681d4592ecfb6fe75ed53524 (patch)
tree3d1138eb772ee7941b04fde48e2f9ef2b50c3d26 /utils/h2xs.PL
parentb82baff62ab7f5eb277b53f2a625c8a41392dbdf (diff)
downloadperl-8bc03d0d6d6040fd681d4592ecfb6fe75ed53524.tar.gz
add PREREQ_PM to default template (suggested by Michael G Schwern
<schwern@pobox.com>) p4raw-id: //depot/perl@4854
Diffstat (limited to 'utils/h2xs.PL')
-rw-r--r--utils/h2xs.PL19
1 files changed, 11 insertions, 8 deletions
diff --git a/utils/h2xs.PL b/utils/h2xs.PL
index cbeffb4c5c..76e2d65e8b 100644
--- a/utils/h2xs.PL
+++ b/utils/h2xs.PL
@@ -1290,19 +1290,22 @@ EOP
warn "Writing $ext$modpname/Makefile.PL\n";
open(PL, ">Makefile.PL") || die "Can't create $ext$modpname/Makefile.PL: $!\n";
-print PL <<'END';
+print PL <<END;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
+WriteMakefile(
+ 'NAME' => '$module',
+ 'VERSION_FROM' => '$modfname.pm', # finds \$VERSION
+ 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
END
-print PL "WriteMakefile(\n";
-print PL " 'NAME' => '$module',\n";
-print PL " 'VERSION_FROM' => '$modfname.pm', # finds \$VERSION\n";
-if( ! $opt_X ){ # print C stuff, unless XS is disabled
+if (!$opt_X) { # print C stuff, unless XS is disabled
$opt_F = '' unless defined $opt_F;
- print PL " 'LIBS' => ['$extralibs'], # e.g., '-lm' \n";
- print PL " 'DEFINE' => '$opt_F', # e.g., '-DHAVE_SOMETHING' \n";
- print PL " 'INC' => '', # e.g., '-I/usr/include/other' \n";
+ print PL <<END;
+ 'LIBS' => ['$extralibs'], # e.g., '-lm'
+ 'DEFINE' => '$opt_F', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => '', # e.g., '-I/usr/include/other'
+END
}
print PL ");\n";
close(PL) || die "Can't close $ext$modpname/Makefile.PL: $!\n";