File: Makefile.PL

package info (click to toggle)
libfilehandle-fmode-perl 0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 112 kB
  • sloc: perl: 99; makefile: 3
file content (29 lines) | stat: -rwxr-xr-x 753 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use strict;
use warnings;
use ExtUtils::MakeMaker;

my $defines = $] < 5.008 ? $] < 5.006001 ? '-DOLDPERL' : '-DPERL561_OR_LATER' : '-DPERL580_OR_LATER -DPERL561_OR_LATER';
$defines .= ' -DLIBC_IS_UCRT' if $Config::Config{libc} =~ /\-lucrt$|ucrt\.lib$/i;

my %options =
(
  NAME     => 'FileHandle::Fmode',
  VERSION_FROM => 'Fmode.pm',
  LICENSE  => 'perl',
  clean    => { FILES => 'temp.txt temp2.txt' },
  LICENSE  => 'perl',
  DEFINE   => $defines,
  META_MERGE => {
   'meta-spec' => { version => 2 },
    resources => {
      repository => {
        type => 'git',
        url => 'https://github.com/sisyphus/filehandle-fmode.git',
        web => 'https://github.com/sisyphus/filehandle-fmode',
      },
    },
  },
);

WriteMakefile(%options);