Skip to content

Commit

Permalink
Build.PL: moved the requirements inside the new() method, becase $bui…
Browse files Browse the repository at this point in the history
…ld->requires() does not work as expected.

Regenerated the distribution files: META.json, META.yml, Makefile.PL
  • Loading branch information
Daniel Șuteu committed Dec 29, 2013
1 parent 39fd960 commit ed9ab6b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 51 deletions.
52 changes: 25 additions & 27 deletions WWW-YoutubeViewer/Build.PL
Expand Up @@ -30,6 +30,25 @@ my $builder = Module::Build->new(
}, },
}, },


requires => {
'Data::Dump' => 0,
'File::Spec::Functions' => 0,
'File::Path' => 0,
'Getopt::Long' => 0,
'HTTP::Request' => 0,
'LWP::UserAgent' => 0,
'Term::ANSIColor' => 0,
'Term::UI' => 0,
'Text::ParseWords' => 0,
'Text::Wrap' => 0,
'URI::Escape' => 0,
},

recommends => {
'Term::ReadLine::Gnu::XS' => 0, # for a better user input support
'XML::Fast' => 0, # faster XML to HASH conversion.
},

auto_features => { auto_features => {


shuffle_playlists_support => { shuffle_playlists_support => {
Expand Down Expand Up @@ -82,39 +101,18 @@ my $builder = Module::Build->new(
) )
: () : ()
), ),

}, },


add_to_cleanup => ['WWW-YoutubeViewer-*'], add_to_cleanup => ['WWW-YoutubeViewer-*'],
create_makefile_pl => 'traditional', create_makefile_pl => 'traditional',
); );


$builder->recommends( if ($gtk_youtube_viewer) {
'Term::ReadLine::Gnu::XS' => 0, # for a better user input support if (ref($builder->{properties}) eq 'HASH' and ref($builder->{properties}{requires}) eq 'HASH') {
'XML::Fast' => 0, # faster XML to HASH conversion. $builder->{properties}{requires}{'Gtk2'} = 0;
); $builder->{properties}{requires}{'File::ShareDir'} = 0;

}
$builder->requires( }
'perl' => '5.016',
'Data::Dump' => 0,
'File::Spec::Functions' => 0,
'File::Path' => 0,
'Getopt::Long' => 0,
'HTTP::Request' => 0,
'LWP::UserAgent' => 0,
'Term::ANSIColor' => 0,
'Term::UI' => 0,
'Text::ParseWords' => 0,
'Text::Wrap' => 0,
'URI::Escape' => 0,

$gtk_youtube_viewer
? (
'Gtk2' => 0,
'File::ShareDir' => 0,
)
: (),
);


$builder->script_files(['bin/youtube-viewer', ($gtk_youtube_viewer ? 'bin/gtk-youtube-viewer' : ())]); $builder->script_files(['bin/youtube-viewer', ($gtk_youtube_viewer ? 'bin/gtk-youtube-viewer' : ())]);
$builder->share_dir('share') if $gtk_youtube_viewer; $builder->share_dir('share') if $gtk_youtube_viewer;
Expand Down
1 change: 0 additions & 1 deletion WWW-YoutubeViewer/MANIFEST
Expand Up @@ -2,7 +2,6 @@ bin/gtk-youtube-viewer
bin/youtube-viewer bin/youtube-viewer
Build.PL Build.PL
Changes Changes
ignore.txt
lib/WWW/YoutubeViewer.pm lib/WWW/YoutubeViewer.pm
lib/WWW/YoutubeViewer/GetCaption.pm lib/WWW/YoutubeViewer/GetCaption.pm
lib/WWW/YoutubeViewer/Itags.pm lib/WWW/YoutubeViewer/Itags.pm
Expand Down
13 changes: 6 additions & 7 deletions WWW-YoutubeViewer/META.json
Expand Up @@ -4,7 +4,7 @@
"Daniel \"Trizen\" Șuteu <trizenx@gmail.com>" "Daniel \"Trizen\" Șuteu <trizenx@gmail.com>"
], ],
"dynamic_config" : 1, "dynamic_config" : 1,
"generated_by" : "Module::Build version 0.42", "generated_by" : "Module::Build version 0.4203",
"license" : [ "license" : [
"perl_5" "perl_5"
], ],
Expand All @@ -15,10 +15,6 @@
"name" : "WWW-YoutubeViewer", "name" : "WWW-YoutubeViewer",
"prereqs" : { "prereqs" : {
"build" : { "build" : {
"recommends" : {
"Term::ReadLine::Gnu::XS" : "0",
"XML::Fast" : "0"
},
"requires" : { "requires" : {
"Test::More" : "0" "Test::More" : "0"
} }
Expand All @@ -29,6 +25,10 @@
} }
}, },
"runtime" : { "runtime" : {
"recommends" : {
"Term::ReadLine::Gnu::XS" : "0",
"XML::Fast" : "0"
},
"requires" : { "requires" : {
"Data::Dump" : "0", "Data::Dump" : "0",
"File::Path" : "0", "File::Path" : "0",
Expand All @@ -40,8 +40,7 @@
"Term::UI" : "0", "Term::UI" : "0",
"Text::ParseWords" : "0", "Text::ParseWords" : "0",
"Text::Wrap" : "0", "Text::Wrap" : "0",
"URI::Escape" : "0", "URI::Escape" : "0"
"perl" : "5.016"
} }
} }
}, },
Expand Down
6 changes: 4 additions & 2 deletions WWW-YoutubeViewer/META.yml
Expand Up @@ -7,7 +7,7 @@ build_requires:
configure_requires: configure_requires:
Module::Build: 0 Module::Build: 0
dynamic_config: 1 dynamic_config: 1
generated_by: 'Module::Build version 0.42, CPAN::Meta::Converter version 2.132830' generated_by: 'Module::Build version 0.4203, CPAN::Meta::Converter version 2.133380'
license: perl license: perl
meta-spec: meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html url: http://module-build.sourceforge.net/META-spec-v1.4.html
Expand All @@ -32,6 +32,9 @@ provides:
WWW::YoutubeViewer::Utils: WWW::YoutubeViewer::Utils:
file: lib/WWW/YoutubeViewer/Utils.pm file: lib/WWW/YoutubeViewer/Utils.pm
version: 0.02 version: 0.02
recommends:
Term::ReadLine::Gnu::XS: 0
XML::Fast: 0
requires: requires:
Data::Dump: 0 Data::Dump: 0
File::Path: 0 File::Path: 0
Expand All @@ -44,7 +47,6 @@ requires:
Text::ParseWords: 0 Text::ParseWords: 0
Text::Wrap: 0 Text::Wrap: 0
URI::Escape: 0 URI::Escape: 0
perl: 5.016
resources: resources:
license: http://dev.perl.org/licenses/ license: http://dev.perl.org/licenses/
version: 0.05 version: 0.05
3 changes: 1 addition & 2 deletions WWW-YoutubeViewer/Makefile.PL
@@ -1,5 +1,4 @@
# Note: this file was auto-generated by Module::Build::Compat version 0.4200 # Note: this file was auto-generated by Module::Build::Compat version 0.4203
require 5.016;
use ExtUtils::MakeMaker; use ExtUtils::MakeMaker;
WriteMakefile WriteMakefile
( (
Expand Down
12 changes: 0 additions & 12 deletions WWW-YoutubeViewer/ignore.txt

This file was deleted.

0 comments on commit ed9ab6b

Please sign in to comment.