Makefile.PL 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. use strict;
  2. use warnings;
  3. use ExtUtils::MakeMaker;
  4. my $dist = 'Regexp-Wildcards';
  5. (my $name = $dist) =~ s{-}{::}g;
  6. (my $file = $dist) =~ s{-}{/}g;
  7. $file = "lib/$file.pm";
  8. my %PREREQ_PM = (
  9. 'Carp' => 0,
  10. 'Scalar::Util' => 0,
  11. 'Text::Balanced' => 0,
  12. );
  13. my %META = (
  14. configure_requires => {
  15. 'ExtUtils::MakeMaker' => 0,
  16. },
  17. build_requires => {
  18. 'ExtUtils::MakeMaker' => 0,
  19. 'Test::More' => 0,
  20. %PREREQ_PM,
  21. },
  22. dynamic_config => 0,
  23. resources => {
  24. bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist",
  25. homepage => "http://search.cpan.org/dist/$dist/",
  26. license => 'http://dev.perl.org/licenses/',
  27. repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
  28. },
  29. );
  30. WriteMakefile(
  31. NAME => $name,
  32. AUTHOR => 'Vincent Pit <perl@profvince.com>',
  33. LICENSE => 'perl',
  34. VERSION_FROM => $file,
  35. ABSTRACT_FROM => $file,
  36. PL_FILES => {},
  37. PREREQ_PM => \%PREREQ_PM,
  38. MIN_PERL_VERSION => '5.006',
  39. META_MERGE => \%META,
  40. dist => {
  41. PREOP => "pod2text -u $file > \$(DISTVNAME)/README",
  42. COMPRESS => 'gzip -9f', SUFFIX => 'gz'
  43. },
  44. clean => {
  45. FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
  46. },
  47. );