Permalink
Browse files

add meta_merge

update use of Module::Build features
  • Loading branch information...
1 parent b415962 commit b25d1b4a68802b2cad905ef5e1c9fc22ac8baf1b @jhoblitt committed Aug 2, 2011
Showing with 42 additions and 19 deletions.
  1. +40 −18 Build.PL
  2. +2 −1 MANIFEST
View
@@ -5,28 +5,50 @@ Module::Build->new(
module_name => 'Pod::Tidy',
dist_version_from => 'lib/Pod/Tidy.pm',
author => 'Joshua Hoblitt <jhoblitt@cpan.org>',
- license => 'perl',
+ license => [ 'perl_5' ],
+ create_license => 1,
create_makefile_pl => 'passthrough',
- requires => {
- 'File::Copy' => 0,
- 'IO::String' => 0,
- 'Pod::Find' => 0,
- 'Pod::Simple' => 0,
- 'Pod::Wrap' => 0,
- 'Text::Glob' => '0.06',
- 'Text::Wrap' => 0,
-# CPANPLUS, as of version 0.562, doesn't understand 'build_requires' and
-# ignores it.
-# },
-# build_requires => {
- 'Encode' => 0,
- 'Encode::Newlines' => '0.03',
- 'Test::Cmd' => '1.05',
+ runtime => {
+ requires => {
+ 'File::Copy' => 0,
+ 'IO::String' => 0,
+ 'Pod::Find' => 0,
+ 'Pod::Simple' => 0,
+ 'Pod::Wrap' => 0,
+ 'Text::Glob' => '0.06',
+ 'Text::Wrap' => 0,
+ },
},
- recommends => {
- 'Test::Distribution' => '1.22',
+ build => {
+ requires => {
+ 'Encode' => 0,
+ 'Encode::Newlines' => '0.03',
+ 'Test::Cmd' => '1.05',
+ },
+ recommends => {
+ 'Test::Distribution' => '1.22',
+ },
},
script_files => [qw(
scripts/podtidy
)],
+ meta_merge => {
+ 'meta-spec' => {
+ version => '2',
+ url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
+ },
+ release_status => 'stable',
+ resources => {
+ license => [ 'http://dev.perl.org/licenses/' ],
+ bugtracker => {
+ web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Pod-Tidy',
+ mailto => 'datetime@perl.org',
+ },
+ repository => {
+ url => 'git://github.com/jhoblitt/Pod-Tidy.git',
+ web => 'https://github.com/jhoblitt/Pod-Tidy/',
+ type => 'git',
+ },
+ },
+ },
)->create_build_script;
View
@@ -2,7 +2,8 @@ Build.PL
Changes
LICENSE
MANIFEST
-META.yml
+MYMETA.json
+MYMETA.yml
Makefile.PL
README
Todo

0 comments on commit b25d1b4

Please sign in to comment.