Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build.PL: moved the requirements inside the new() method, becase $bui…

…ld->requires() does not work as expected.

Regenerated the distribution files: META.json, META.yml, Makefile.PL
  • Loading branch information...
commit ed9ab6b96149b8389510b2a0a286a33c9a156ad0 1 parent 39fd960
@trizen authored
View
52 WWW-YoutubeViewer/Build.PL
@@ -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 => {
shuffle_playlists_support => {
@@ -82,39 +101,18 @@ my $builder = Module::Build->new(
)
: ()
),
-
},
add_to_cleanup => ['WWW-YoutubeViewer-*'],
create_makefile_pl => 'traditional',
);
-$builder->recommends(
- 'Term::ReadLine::Gnu::XS' => 0, # for a better user input support
- 'XML::Fast' => 0, # faster XML to HASH conversion.
- );
-
-$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,
- )
- : (),
-);
+if ($gtk_youtube_viewer) {
+ if (ref($builder->{properties}) eq 'HASH' and ref($builder->{properties}{requires}) eq 'HASH') {
+ $builder->{properties}{requires}{'Gtk2'} = 0;
+ $builder->{properties}{requires}{'File::ShareDir'} = 0;
+ }
+}
$builder->script_files(['bin/youtube-viewer', ($gtk_youtube_viewer ? 'bin/gtk-youtube-viewer' : ())]);
$builder->share_dir('share') if $gtk_youtube_viewer;
View
1  WWW-YoutubeViewer/MANIFEST
@@ -2,7 +2,6 @@ bin/gtk-youtube-viewer
bin/youtube-viewer
Build.PL
Changes
-ignore.txt
lib/WWW/YoutubeViewer.pm
lib/WWW/YoutubeViewer/GetCaption.pm
lib/WWW/YoutubeViewer/Itags.pm
View
13 WWW-YoutubeViewer/META.json
@@ -4,7 +4,7 @@
"Daniel \"Trizen\" Șuteu <trizenx@gmail.com>"
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.42",
+ "generated_by" : "Module::Build version 0.4203",
"license" : [
"perl_5"
],
@@ -15,10 +15,6 @@
"name" : "WWW-YoutubeViewer",
"prereqs" : {
"build" : {
- "recommends" : {
- "Term::ReadLine::Gnu::XS" : "0",
- "XML::Fast" : "0"
- },
"requires" : {
"Test::More" : "0"
}
@@ -29,6 +25,10 @@
}
},
"runtime" : {
+ "recommends" : {
+ "Term::ReadLine::Gnu::XS" : "0",
+ "XML::Fast" : "0"
+ },
"requires" : {
"Data::Dump" : "0",
"File::Path" : "0",
@@ -40,8 +40,7 @@
"Term::UI" : "0",
"Text::ParseWords" : "0",
"Text::Wrap" : "0",
- "URI::Escape" : "0",
- "perl" : "5.016"
+ "URI::Escape" : "0"
}
}
},
View
6 WWW-YoutubeViewer/META.yml
@@ -7,7 +7,7 @@ build_requires:
configure_requires:
Module::Build: 0
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
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -32,6 +32,9 @@ provides:
WWW::YoutubeViewer::Utils:
file: lib/WWW/YoutubeViewer/Utils.pm
version: 0.02
+recommends:
+ Term::ReadLine::Gnu::XS: 0
+ XML::Fast: 0
requires:
Data::Dump: 0
File::Path: 0
@@ -44,7 +47,6 @@ requires:
Text::ParseWords: 0
Text::Wrap: 0
URI::Escape: 0
- perl: 5.016
resources:
license: http://dev.perl.org/licenses/
version: 0.05
View
3  WWW-YoutubeViewer/Makefile.PL
@@ -1,5 +1,4 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.4200
-require 5.016;
+# Note: this file was auto-generated by Module::Build::Compat version 0.4203
use ExtUtils::MakeMaker;
WriteMakefile
(
View
12 WWW-YoutubeViewer/ignore.txt
@@ -1,12 +0,0 @@
-blib*
-Makefile
-Makefile.old
-Build
-Build.bat
-_build*
-pm_to_blib*
-*.tar.gz
-.lwpcookies
-cover_db
-pod2htm*.tmp
-WWW-YoutubeViewer-*
Please sign in to comment.
Something went wrong with that request. Please try again.