File: Makefile.PL

package info (click to toggle)
libset-intervaltree-perl 0.12-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 364 kB
  • sloc: cpp: 686; perl: 60; makefile: 3
file content (72 lines) | stat: -rw-r--r-- 1,767 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This Makefile.PL for Set-IntervalTree was generated by
# Dist::Zilla::Plugin::MakeMaker::Awesome 0.42.
# Don't edit it but the dist.ini and plugins used to construct it.

use strict;
use warnings;

use 5.006001;
use ExtUtils::MakeMaker;

use ExtUtils::CppGuess;
my $guess = ExtUtils::CppGuess->new;

my %WriteMakefileArgs = (
  "ABSTRACT" => "Perform range-based lookups on sets of ranges",
  "AUTHOR" => "Benjamin Booth <benbooth\@cpan.org>, Stephan Loyd <sloyd\@cpan.org>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::CppGuess" => 0,
    "ExtUtils::MakeMaker" => 0
  },
  "DISTNAME" => "Set-IntervalTree",
  "LICENSE" => "perl",
  "MIN_PERL_VERSION" => "5.006001",
  "NAME" => "Set::IntervalTree",
  "PREREQ_PM" => {
    "AutoLoader" => 0,
    "Carp" => 0,
    "Exporter" => 0,
    "XSLoader" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "Test::More" => 0
  },
  "VERSION" => "0.12",
  "test" => {
    "TESTS" => "t/*.t"
  }
);

%WriteMakefileArgs = (
    %WriteMakefileArgs,
    $guess->makemaker_options,
    XSOPT => '-C++',
    TYPEMAPS => ['perlobject.map'],
    # to prevent min/max macro issue with MSVC,
    DEFINE => '-DNOMINMAX',
    # may be needed on older versions of gcc,
    ($guess->is_gcc? ( CC => 'c++') : ()),
);

my %FallbackPrereqs = (
  "AutoLoader" => 0,
  "Carp" => 0,
  "Exporter" => 0,
  "Test::More" => 0,
  "XSLoader" => 0,
  "strict" => 0,
  "warnings" => 0
);

unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

WriteMakefile(%WriteMakefileArgs);