atoomic / perl-TimeDate

time & date parsing and formatting perl library
http://search.cpan.org/dist/TimeDate/
1 stars 3 forks source link

[rt.cpan.org #85097] #13

Open atoomic opened 4 years ago

atoomic commented 4 years ago

Migrated from rt.cpan.org#85097 (status was 'new')

Requestors:

From mjp@cpan.org on 2013-05-06 18:27:22 :

TimeDate does not make use of PREREQ_PM nor BUILD_REQUIRES in Makefile.PL, making it more difficult to automatically package for distribution (as, e.g., an RPM).

IIUC, the following addresses:

diff -up TimeDate-2.30/Makefile.PL.orig TimeDate-2.30/Makefile.PL
--- TimeDate-2.30/Makefile.PL.orig  2013-02-18 13:29:49.000000000 -0600
+++ TimeDate-2.30/Makefile.PL   2013-05-03 14:50:15.295050548 -0500
@@ -11,6 +11,7 @@ WriteMakefile(
   DISTNAME => 'TimeDate',
   AUTHOR   => 'Graham Barr <gbarr@pobox.com>',
   VERSION_FROM => 'lib/Date/Parse.pm',
+  PREREQ_PM => { 'Carp' => 0 },
   (eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()),
   ( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (
       META_MERGE => {
@@ -21,4 +22,10 @@ WriteMakefile(
       )
     : ()
   ),
+  ( eval { ExtUtils::MakeMaker->VERSION(6.5501) } ? (
+      BUILD_REQUIRES => { 'ExtUtils::MakeMaker' => 0,
+                          'Test::More'          => 0 },
+      )
+    : ()
+  ),
 );