convert to Distar
Graham Knop [Sat, 1 Mar 2014 10:40:01 +0000 (05:40 -0500)]
Build.PL [deleted file]
MANIFEST.SKIP [deleted file]
Makefile.PL [new file with mode: 0644]
README [deleted file]
maint/Makefile.PL.include [new file with mode: 0644]

diff --git a/Build.PL b/Build.PL
deleted file mode 100644 (file)
index ea2d9ff..0000000
--- a/Build.PL
+++ /dev/null
@@ -1,22 +0,0 @@
-use Module::Build;
-
-use strict;
-
-my $build = Module::Build->new(
-    module_name => 'Algorithm::C3',
-    license => 'perl',
-    requires => {
-        'Carp' => '0.01',
-    },
-    optional => {},
-    build_requires => {
-        'Test::More' => '0.47',
-    },
-    recursive_test_files => 1,
-    add_to_cleanup => [
-        'META.yml', '*.bak', '*.gz', 'Makefile.PL',
-    ],
-);
-
-$build->create_build_script;
-
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
deleted file mode 100644 (file)
index 06615a0..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-^_build
-^Build$
-^blib
-~$
-\.bak$
-^MANIFEST\.SKIP$
-CVS
-\.svn
-\.git
-\.DS_Store
-cover_db
-\..*\.sw.?$
-^Makefile$
-^pm_to_blib$
-^MakeMaker-\d
-^blibdirs$
-\.old$
-^#.*#$
-^\.#
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644 (file)
index 0000000..6db0d23
--- /dev/null
@@ -0,0 +1,40 @@
+use strict;
+use warnings FATAL => 'all';
+use 5.006;
+use ExtUtils::MakeMaker;
+(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
+
+my %BUILD_DEPS = (
+  'Test::More' => 0.47,
+);
+
+# have to do this since old EUMM dev releases miss the eval $VERSION line
+my $mymeta = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_02;
+my $mymeta_works = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_07;
+
+WriteMakefile(
+  NAME => 'Algorithm::C3',
+  VERSION_FROM => 'lib/Algorithm/C3.pm',
+  PREREQ_PM => {
+    'Carp' => 0.01,
+    ($mymeta_works ? () : (%BUILD_DEPS)),
+  },
+  $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (),
+  ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),
+
+  -f 'META.yml' ? () : (META_MERGE => {
+    'meta-spec' => { version => 2 },
+    resources => {
+      # r/w: gitmo@git.shadowcat.co.uk:Algorithm-C3.git
+      repository => {
+        url => 'git://git.shadowcat.co.uk/gitmo/Algorithm-C3.git',
+        web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/Algorithm-C3.git',
+        type => 'git',
+      },
+      bugtracker => {
+          mailto => 'bug-Algorithm-C3@rt.cpan.org',
+          web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Algorithm-C3',
+      },
+    },
+  }),
+);
diff --git a/README b/README
deleted file mode 100644 (file)
index 9d9ad35..0000000
--- a/README
+++ /dev/null
@@ -1,29 +0,0 @@
-Algorithm::C3 version 0.08
-===========================
-
-See the individual module documentation for more information
-
-INSTALLATION
-
-To install this module type the following:
-
-   perl Makefile.PL
-   make
-   make test
-   make install
-
-DEPENDENCIES
-
-This module requires these other modules and libraries:
-
-   Carp
-
-COPYRIGHT AND LICENCE
-
-Copyright (C) 2006 Infinity Interactive, Inc.
-
-http://www.iinteractive.com
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include
new file mode 100644 (file)
index 0000000..fc3edbe
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") }
+use lib 'Distar/lib';
+use Distar;
+use ExtUtils::MakeMaker 6.68 ();
+
+author [
+  'Stevan Little <stevan@iinteractive.com>',
+  'Brandon L. Black <blblack@gmail.com>',
+];
+
+1;