Build.PL 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. use utf8;
  2. use 5.006;
  3. use strict;
  4. use warnings;
  5. use Module::Build;
  6. my $builder = Module::Build->new(
  7. module_name => 'Perl::Tokenizer',
  8. license => 'artistic_2',
  9. dist_author => q<Daniel Șuteu <trizen@cpan.org>>,
  10. dist_version_from => 'lib/Perl/Tokenizer.pm',
  11. release_status => 'stable',
  12. sign => 1,
  13. dynamic_config => 0,
  14. extra_manify_args => { utf8 => 1 },
  15. configure_requires => {
  16. 'Module::Build' => 0,
  17. },
  18. build_requires => {
  19. 'Test::More' => 0,
  20. },
  21. meta_merge => {
  22. resources => {
  23. bugtracker => "https://github.com/trizen/Perl-Tokenizer/issues",
  24. homepage => "https://github.com/trizen/Perl-Tokenizer",
  25. repository => "https://github.com/trizen/Perl-Tokenizer",
  26. }
  27. },
  28. requires => {
  29. 'perl' => '5.18.0',
  30. 'utf8' => 0,
  31. 'strict' => 0,
  32. 'warnings' => 0,
  33. 'Exporter' => 0,
  34. },
  35. # This modules are required only by the bin/* scripts
  36. recommends => {
  37. 'open' => 0,
  38. 'Term::ANSIColor' => 0,
  39. 'HTML::Entities' => 0,
  40. 'Getopt::Std' => 0,
  41. },
  42. add_to_cleanup => ['Perl-Tokenizer-*'],
  43. create_makefile_pl => 'traditional',
  44. );
  45. $builder->script_files([glob('bin/*')]);
  46. $builder->create_build_script();