- minor updates, will now add ABSTRACT_FROM if using Perl >= 5.005
authorplobbes <plobbes>
Mon, 22 Jan 2007 06:54:53 +0000 (06:54 +0000)
committerplobbes <plobbes>
Mon, 22 Jan 2007 06:54:53 +0000 (06:54 +0000)
Makefile.PL

index c624b4b..cbb225f 100644 (file)
@@ -1,12 +1,21 @@
 use ExtUtils::MakeMaker;
+
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
 WriteMakefile(
-    'NAME'         => 'Business::OnlinePayment::PayflowPro',
-    'VERSION_FROM' => 'PayflowPro.pm', # finds $VERSION
-    'AUTHOR'       => 'Ivan Kohler <ivan-payflowpro@420.am>',
-    'PREREQ_PM'    => { 'Business::OnlinePayment' => 0,
-                        'PFProAPI' => 0,
-                      },
-    #'NORECURS'     => 1, # dont descend into subdirectories
+    NAME         => 'Business::OnlinePayment::PayflowPro',
+    VERSION_FROM => 'PayflowPro.pm',
+    PREREQ_PM    => {
+        Business::OnlinePayment => 0,
+        PFProAPI                => 0,
+    },
+    (
+        $] >= 5.005
+        ?    ## Add these new keywords supported since 5.005
+          (
+            ABSTRACT_FROM => 'PayflowPro.pm',
+            AUTHOR        => 'Ivan Kohler <ivan-payflowpro@420.am>'
+          )
+        : ()
+    ),
 );