Build.PL 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. use utf8;
  2. use 5.006;
  3. use strict;
  4. use warnings FATAL => 'all';
  5. use Module::Build;
  6. my $builder = Module::Build->new(
  7. module_name => 'Sidef',
  8. license => 'artistic_2',
  9. dist_author => [
  10. q{Daniel Șuteu (<trizen@cpan.org>)},
  11. q{Ioana Fălcușan (<ioanaflavia@gmail.com>)},
  12. ],
  13. dist_version_from => 'lib/Sidef.pm',
  14. dist_abstract => 'The Sidef Programming Language',
  15. release_status => 'stable',
  16. configure_requires => {
  17. 'Module::Build' => 0,
  18. },
  19. build_requires => {
  20. 'Test::More' => 0,
  21. },
  22. sign => 1,
  23. dynamic_config => 0,
  24. extra_manify_args => {utf8 => 1},
  25. meta_merge => {
  26. resources => {
  27. bugtracker => "https://github.com/trizen/sidef/issues",
  28. homepage => "https://github.com/trizen/sidef",
  29. repository => "https://github.com/trizen/sidef",
  30. },
  31. },
  32. requires => {
  33. 'perl' => '5.18.0',
  34. 'utf8' => 0,
  35. 'parent' => 0,
  36. 'Memoize' => 0,
  37. 'Cwd' => 0,
  38. 'File::Spec' => 0,
  39. 'File::Path' => 0,
  40. 'File::Copy' => 0,
  41. 'File::Basename' => 0,
  42. 'List::Util' => 1.45,
  43. 'Math::MPFR' => 3.36,
  44. 'Math::MPC' => 0,
  45. 'Math::GMPq' => 0.45,
  46. 'Math::GMPz' => 0.48,
  47. 'Socket' => 0,
  48. 'Fcntl' => 0,
  49. 'Encode' => 0,
  50. 'Scalar::Util' => 0,
  51. 'Time::Piece' => 0,
  52. 'Time::HiRes' => 0,
  53. 'Getopt::Std' => 0,
  54. 'Term::ReadLine' => 0,
  55. 'Math::Prime::Util::GMP' => 0.52, # used in many Number methods
  56. 'Algorithm::Combinatorics' => 0, # used in some Array methods
  57. 'Algorithm::Loops' => 0, # used in Array#cartesian() and Number#sqrtmod_all()
  58. 'Data::Dump' => 0, # used for `sidef -D`
  59. 'Data::Dump::Filtered' => 0, # used in Block#ffork()
  60. },
  61. recommends => {
  62. 'forks' => 0, # better support for threads in Block.thread()
  63. 'File::Find' => 0, # `sidef -c`
  64. 'Digest::MD5' => 0, # File.md5(), Str.md5()
  65. 'Digest::SHA' => 0, # File.sha*(), Str.sha*()
  66. 'MIME::Base64' => 0, # Str.encode_base64(), Str.decode_base64()
  67. 'Math::Prime::Util' => 0.73, # used in some Number methods, if available
  68. 'Term::ReadLine::Gnu' => 0, # better STDIN support (+history)
  69. 'Text::Balanced' => 0, # Str.extract_bracketed(), Str.extract_delimited()
  70. 'Text::ParseWords' => 0, # Str.parse_quotewords()
  71. },
  72. add_to_cleanup => ['Sidef-*'],
  73. create_makefile_pl => 'traditional',
  74. );
  75. $builder->create_build_script();