changing Makefile.PL to M::I from EU:MM
authorsboyette <sboyette@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 8 Aug 2008 20:12:49 +0000 (20:12 +0000)
committersboyette <sboyette@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 8 Aug 2008 20:12:49 +0000 (20:12 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/sboyette@1396 9efc2488-bf62-4759-914b-345cdb29e865

src/perl/Makefile.PL

index 9f20cc2..1f2c321 100644 (file)
@@ -1,16 +1,15 @@
-use strict;
-use warnings;
-use ExtUtils::MakeMaker;
+use inc::Module::Install;
 
-WriteMakefile(
-    NAME                => 'OpenSRF',
-    AUTHOR              => 'Equinox <foo@esilibrary.com>',
-    VERSION_FROM        => 'lib/OpenSRF.pm',
-    ABSTRACT_FROM       => 'lib/OpenSRF.pm',
-    PL_FILES            => {},
-    PREREQ_PM => {
-        'Test::More' => 0,
-    },
-    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
-    clean               => { FILES => 'OpenSRF-*' },
-);
+# Define metadata
+name           'OpenSRF';
+all_from       'lib/OpenSRF.pm';
+abstract       '';
+
+# Specific dependencies
+requires       'File::Spec'  => '0.80';
+test_requires  'Test::More'  => '0.42';
+recommends     'Text::CSV_XS'=> '0.50';
+no_index       'directory'   => 'demos';
+install_script 'myscript';
+
+WriteAll;