12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- use utf8;
- use 5.010;
- use strict;
- use warnings;
- use Module::Build;
- my $gtk = grep { /^--?gtk3?\z/ } @ARGV;
- my $builder = Module::Build->new(
- module_name => 'WWW::LbryViewer',
- license => 'perl',
- dist_author => q{Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>},
- dist_version_from => 'lib/WWW/LbryViewer.pm',
- release_status => 'stable',
- build_requires => {
- 'Test::More' => 0,
- },
- extra_manify_args => {utf8 => 1},
- configure_requires => {
- 'Module::Build' => 0,
- },
- get_options => {
- 'gtk3' => {
- type => '!',
- store => \$gtk,
- },
- },
- requires => {
- 'perl' => 5.016,
- 'Data::Dump' => 0,
- 'File::Spec' => 0,
- 'File::Spec::Functions' => 0,
- 'File::Path' => 0,
- 'Getopt::Long' => 0,
- 'HTTP::Request' => 0,
- 'JSON' => 0,
- 'Encode' => 0,
- 'Memoize' => 0,
- 'MIME::Base64' => 0,
- 'List::Util' => 0,
- 'LWP::UserAgent' => 0,
- 'LWP::Protocol::https' => 0,
- 'Term::ANSIColor' => 0,
- 'Term::ReadLine' => 0,
- 'Text::ParseWords' => 0,
- 'Text::Wrap' => 0,
- 'URI::Escape' => 0,
- 'HTML::Tree' => 0,
- 'HTML::Entities' => 0,
- $gtk
- ? (
- 'Gtk3' => 0,
- 'File::ShareDir' => 0,
- 'Storable' => 0,
- 'Digest::MD5' => 0,
- )
- : (),
- },
- recommends => {
- 'LWP::UserAgent::Cached' => 0, # local cache support
- 'Term::ReadLine::Gnu' => 0, # for better STDIN support (+history)
- 'JSON::XS' => 0, # faster JSON to HASH conversion
- 'Unicode::GCString' => 0, # fixed-width formatting
- 'Parallel::ForkManager' => '2.02', # for the `*_parallel` options
- 'Text::Unidecode' => 0, # for the `fat32safe` option
- },
- add_to_cleanup => ['WWW-LbryViewer-*'],
- create_makefile_pl => 'traditional',
- );
- $builder->script_files(['bin/lbry-viewer', ($gtk ? ('bin/gtk-lbry-viewer') : ()),]);
- $builder->share_dir('share') if $gtk;
- $builder->create_build_script();
|