]> git.donarmstrong.com Git - perltidy.git/blobdiff - Makefile.PL
Set upstream metadata fields: Bug-Database, Bug-Submit, Name, Repository-Browse.
[perltidy.git] / Makefile.PL
old mode 100755 (executable)
new mode 100644 (file)
index 968a70a..09b23be
@@ -1,24 +1,50 @@
-# 
-# The indentation of this file is poor because this file may be used to
-# test perltidy after installation. For example, try
-#
-#    perltidy -lp Makefile.PL
-#
-# which will create a reformatted version as Makefile.PL.tdy.
-#
 use ExtUtils::MakeMaker;
+
+my $mm_ver = $ExtUtils::MakeMaker::VERSION;
+if ( $mm_ver =~ /_/ ) {    # developer release/version
+    $mm_ver = eval $mm_ver;
+    die $@ if $@;
+}
+
+#   Minimum version found by perlver:
+#
+#     ------------------------------------------
+#   | file        | explicit | syntax | external |
+#   | ------------------------------------------ |
+#   | perltidy.pl | v5.8.0   | v5.8.0 | n/a      |
+#   | ------------------------------------------ |
+#   | Minimum explicit version : v5.8.0          |
+#   | Minimum syntax version   : v5.8.0          |
+#   | Minimum version of perl  : v5.8.0          |
+#     ------------------------------------------
+
 WriteMakefile(
-NAME  => "Perl::Tidy",
-VERSION_FROM => "lib/Perl/Tidy.pm",
-(
-  $] >= 5.005
-? (
-  ABSTRACT => 'indent and reformat perl scripts',
-  LICENSE => 'GPL-2.0+',
-AUTHOR => 'Steve Hancock <perltidy@perltidy.sourceforge.net>'
-  )
-: ()
-),
-EXE_FILES => ['bin/perltidy'],
-dist  => { COMPRESS => 'gzip', SUFFIX => 'gz' },
+    NAME         => "Perl::Tidy",
+    VERSION_FROM => "lib/Perl/Tidy.pm",
+    (
+        $] >= 5.005
+        ? (
+            ABSTRACT => 'indent and reformat perl scripts',
+            LICENSE  => 'gpl_2',
+            AUTHOR   => 'Steve Hancock <perltidy@perltidy.sourceforge.net>'
+          )
+        : ()
+    ),
+    (
+        $mm_ver >= 6.48 ? ( MIN_PERL_VERSION => 5.008 )
+        : ()
+    ),
+
+    EXE_FILES  => ['bin/perltidy'],
+    dist       => { COMPRESS => 'gzip', SUFFIX => 'gz' },
+    META_MERGE => {
+        'meta-spec' => { version => 2 },
+        resources   => {
+            repository => {
+                type => 'git',
+                url  => 'https://github.com/perltidy/perltidy.git',
+                web  => 'https://github.com/perltidy/perltidy',
+            },
+        },
+    },
 );