File: ChClDistMakeMaker.pm

package info (click to toggle)
libchart-clicker-perl 2.90-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 696 kB
  • sloc: perl: 4,379; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package inc::ChClDistMakeMaker;
use Moose;

extends 'Dist::Zilla::Plugin::MakeMaker::Awesome';

around '_build_WriteMakefile_dump' => sub {
      my $orig = shift;
      my $self = shift;
      my $str =$self->$orig();
      die "Graphics::Primitive::Driver::Cairo not found in Makefile.PL" unless $str =~ s/"Graphics::Primitive::Driver::Cairo"/(\$^O eq 'MSWin32'?"Graphics::Primitive::Driver::GD":"Graphics::Primitive::Driver::Cairo")/g;
      return $str;
};



1;