]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - Makefile.PL
This module doesn't care bout MULTIPLICITY, so remove the relevant cruft from Makefile.PL
[perl/modules/autovivification.git] / Makefile.PL
index 5fbbfc212ed0c87d7cda43ba36e0dca9d30b4036..01f62934a7f22953ed2a952f86565c557a742711 100644 (file)
@@ -4,16 +4,16 @@ use strict;
 use warnings;
 use ExtUtils::MakeMaker;
 
-my @DEFINES;
+my $dist = 'autovivification';
 
-# Threads, Windows and 5.8.x don't seem to be best friends
-if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
- push @DEFINES, '-DI_MULTIPLICITY=0';
-}
+(my $name = $dist) =~ s{-}{::}g;
 
-@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
+(my $file = $dist) =~ s{-}{/}g;
+$file = "lib/$file.pm";
 
-my $dist = 'autovivification';
+my %PREREQ_PM = (
+ 'XSLoader' => 0,
+);
 
 my %META = (
  configure_requires => {
@@ -22,8 +22,9 @@ my %META = (
  build_requires => {
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
+  %PREREQ_PM,
  },
- dynamic_config => 1,
+ dynamic_config => 0,
  resources => {
   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
   homepage   => "http://search.cpan.org/dist/$dist/",
@@ -33,23 +34,20 @@ my %META = (
 );
 
 WriteMakefile(
-    NAME             => 'autovivification',
-    AUTHOR           => 'Vincent Pit <perl@profvince.com>',
-    LICENSE          => 'perl',
-    VERSION_FROM     => 'lib/autovivification.pm',
-    ABSTRACT_FROM    => 'lib/autovivification.pm',
-    PL_FILES         => {},
-    @DEFINES,
-    PREREQ_PM        => {
-        'XSLoader' => 0,
-    },
-    MIN_PERL_VERSION => 5.008,
-    META_MERGE       => \%META,
-    dist             => {
-        PREOP    => 'pod2text lib/autovivification.pm > $(DISTVNAME)/README',
-        COMPRESS => 'gzip -9f', SUFFIX => 'gz'
-    },
-    clean            => {
-        FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
-    },
+ NAME             => $name,
+ AUTHOR           => 'Vincent Pit <perl@profvince.com>',
+ LICENSE          => 'perl',
+ VERSION_FROM     => $file,
+ ABSTRACT_FROM    => $file,
+ PL_FILES         => {},
+ PREREQ_PM        => \%PREREQ_PM,
+ MIN_PERL_VERSION => 5.008,
+ META_MERGE       => \%META,
+ dist             => {
+  PREOP    => "pod2text $file > \$(DISTVNAME)/README",
+  COMPRESS => 'gzip -9f', SUFFIX => 'gz'
+ },
+ clean            => {
+  FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
+ },
 );