[perl-ExtUtils-Depends] Generate a better META.yml
- From: Torsten Schönfeld <tsch src gnome org>
- To: svn-commits-list gnome org
- Subject: [perl-ExtUtils-Depends] Generate a better META.yml
- Date: Mon, 18 May 2009 15:53:07 -0400 (EDT)
commit de1e586549e5203e85835b14f31d638f59c36c08
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Mon May 18 21:52:29 2009 +0200
Generate a better META.yml
Provide more information to WriteMakefile() so that EU::MM can generate a
better META.yml. Original patch by Alexandr Ciornii.
---
Makefile.PL | 32 +++++++++++++++++++++++++-------
1 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index ce5d4f5..35a5db2 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -6,13 +6,31 @@ use 5.006;
use ExtUtils::MakeMaker;
WriteMakefile(
- 'dist' => {
- PREOP => 'pod2text lib/ExtUtils/Depends.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
- COMPRESS => 'gzip -9v',
- SUFFIX => '.gz',
- },
- 'NAME' => 'ExtUtils::Depends',
- 'VERSION_FROM' => 'lib/ExtUtils/Depends.pm',
+ dist => {
+ $^O eq 'MSWin32'
+ ? ()
+ : (PREOP => 'pod2text lib/ExtUtils/Depends.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;'),
+ COMPRESS => 'gzip -9v',
+ SUFFIX => '.gz',
+ },
+ NAME => 'ExtUtils::Depends',
+ VERSION_FROM => 'lib/ExtUtils/Depends.pm',
+ PREREQ_PM => {
+ 'File::Spec' => 0,
+ 'Data::Dumper' => 0,
+ 'IO::File' => 0,
+ },
+ MIN_PERL_VERSION => 5.006, #for META.yml
+ META_MERGE => {
+ build_requires => {
+ 'Test::More' => 0,
+ },
+ resources => {
+ repository => 'http://git.gnome.org/cgit/perl-ExtUtils-Depends',
+ },
+ keywords => ['XS', 'XS extensions', 'dependency'],
+ },
+ LICENSE => 'perl',
);
use Cwd;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]