PageRenderTime 66ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/Build.PL

https://bitbucket.org/Mekk/perl-keyring-osxkeychain
Perl | 67 lines | 58 code | 6 blank | 3 comment | 0 complexity | 5b9c68db44cee15b63dc94cb8aead37f MD5 | raw file
  1. use 5.006;
  2. use strict;
  3. use warnings;
  4. use Module::Build;
  5. # Generate also README.md
  6. # Testing: ./Build.PL; ./Build distmeta
  7. # (alternatively we could override ACTION_distmeta, but this seems nicer)
  8. my $class = Module::Build->subclass(
  9. class => 'MEKK::Module::Build',
  10. code => q{
  11. sub do_create_readme {
  12. my $self = shift;
  13. $self->SUPER::do_create_readme; # Default
  14. my $docfile = $self->_main_docfile or return; # Warning already emitted
  15. require Pod::Readme; require Pod::Markdown;
  16. $self->log_info("Creating README.md\n");
  17. my $parser = Pod::Readme->new(
  18. input_file => $docfile,
  19. translate_to_file => 'README.md',
  20. translation_class => 'Pod::Markdown');
  21. $parser->run;
  22. $self->_add_to_manifest('MANIFEST', 'README.md');
  23. }
  24. }
  25. );
  26. my $builder = $class->new(
  27. module_name => 'Passwd::Keyring::OSXKeychain',
  28. license => 'perl',
  29. dynamic_config => 1,
  30. build_requires => {
  31. 'Module::Build' => '0.19', # xs
  32. 'Test::More' => 0,
  33. 'Test::Most' => 0,
  34. 'Test::Pod::Coverage' => '1.0',
  35. },
  36. configure_requires => {
  37. 'Module::Build' => '0.36',
  38. },
  39. requires => {
  40. 'perl' => 5.006,
  41. 'IPC::System::Simple' => '1.18',
  42. 'Capture::Tiny' => '0.20',
  43. 'Encode' => '0.00',
  44. 'List::Util' => '1.29',
  45. },
  46. create_makefile_pl => 'traditional',
  47. add_to_cleanup => [ 'Passwd-Keyring-OSXKeychain-*' ],
  48. create_readme => 1,
  49. dist_author => q{Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>},
  50. dist_version_from => 'lib/Passwd/Keyring/OSXKeychain.pm',
  51. meta_merge => {
  52. keywords => [ qw/ passwords security secure-storage keyring Mac OSX keychain keyring / ],
  53. resources => {
  54. license => 'http://dev.perl.org/licenses/',
  55. homepage => 'http://bitbucket.org/Mekk/perl-keyring-osxkeychain',
  56. repository => 'http://bitbucket.org/Mekk/perl-keyring-osxkeychain',
  57. bugtracker => 'https://bitbucket.org/Mekk/perl-keyring-osxkeychain/issues',
  58. },
  59. },
  60. );
  61. $builder->create_build_script();