File: Makefile.PL

package info (click to toggle)
libzmq-ffi-perl 1.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 552 kB
  • sloc: perl: 4,708; sh: 92; ansic: 30; makefile: 27
file content (168 lines) | stat: -rw-r--r-- 4,383 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# This Makefile.PL for ZMQ-FFI was generated by
# Dist::Zilla::Plugin::MakeMaker::Awesome 0.49.
# Don't edit it but the dist.ini and plugins used to construct it.

use strict;
use warnings;

# inserted by Dist::Zilla::Plugin::FFI::CheckLib 1.07
use FFI::CheckLib;
check_lib_or_exit(
  alien => 'Alien::ZMQ::latest',
  lib => 'zmq',
);

use ExtUtils::MakeMaker;

use FFI::Platypus;
# Can't currently support unthreaded BSD perls
# See GH #13
my $badbsd;
if ($^O eq 'freebsd') {
   (!grep /libthr/, `procstat -v $$`) && ($badbsd = 1);
} elsif ($^O =~ m/bsd/i) {
   !FFI::Platypus->new(lib => [undef])
                 ->find_symbol('pthread_self')
                 && ($badbsd = 1);
}
if ($badbsd) {
  print "On BSD ZMQ::FFI requires a perl built to support threads.";
  print " Can't continue\n";
  exit;
}

my %WriteMakefileArgs = (
  "ABSTRACT" => "version agnostic Perl bindings for zeromq using ffi",
  "AUTHOR" => "Dylan Cali <calid1984\@gmail.com>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0,
    "FFI::CheckLib" => "0.28",
    "FFI::Platypus" => "0.86"
  },
  "DISTNAME" => "ZMQ-FFI",
  "LICENSE" => "perl",
  "NAME" => "ZMQ::FFI",
  "PREREQ_PM" => {
    "Carp" => 0,
    "Class::XSAccessor" => "1.18",
    "Exporter" => 0,
    "FFI::CheckLib" => 0,
    "FFI::Platypus" => "0.86",
    "FFI::Platypus::Buffer" => 0,
    "FFI::Platypus::Memory" => 0,
    "Import::Into" => "1.002005",
    "Math::BigInt" => "1.997",
    "Moo" => "1.004005",
    "Moo::Role" => 0,
    "Scalar::Util" => 0,
    "Sub::Exporter" => 0,
    "Try::Tiny" => 0,
    "bytes" => 0,
    "feature" => 0,
    "if" => 0,
    "namespace::clean" => 0,
    "strict" => 0,
    "threads" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "AnyEvent" => 0,
    "List::Util" => 0,
    "Math::BigInt" => "1.997",
    "POSIX" => 0,
    "Sub::Override" => 0,
    "Test::Deep" => 0,
    "Test::Exception" => 0,
    "Test::More" => 0,
    "Test::NoWarnings" => 0,
    "Test::Warnings" => 0,
    "Time::HiRes" => 0,
    "lib" => 0,
    "locale" => 0,
    "utf8" => 0
  },
  "VERSION" => "1.19",
  "test" => {
    "TESTS" => "t/*.t"
  }
);

my %FallbackPrereqs = (
  "AnyEvent" => 0,
  "Carp" => 0,
  "Class::XSAccessor" => "1.18",
  "Exporter" => 0,
  "FFI::CheckLib" => 0,
  "FFI::Platypus" => "0.86",
  "FFI::Platypus::Buffer" => 0,
  "FFI::Platypus::Memory" => 0,
  "Import::Into" => "1.002005",
  "List::Util" => 0,
  "Math::BigInt" => "1.997",
  "Moo" => "1.004005",
  "Moo::Role" => 0,
  "POSIX" => 0,
  "Scalar::Util" => 0,
  "Sub::Exporter" => 0,
  "Sub::Override" => 0,
  "Test::Deep" => 0,
  "Test::Exception" => 0,
  "Test::More" => 0,
  "Test::NoWarnings" => 0,
  "Test::Warnings" => 0,
  "Time::HiRes" => 0,
  "Try::Tiny" => 0,
  "bytes" => 0,
  "feature" => 0,
  "if" => 0,
  "lib" => 0,
  "locale" => 0,
  "namespace::clean" => 0,
  "strict" => 0,
  "threads" => 0,
  "utf8" => 0,
  "warnings" => 0
);

# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
if (isnt_os('MSWin32')) {
test_requires('Sys::SigAction', '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);

# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
sub _add_prereq {
  my ($mm_key, $module, $version_or_range) = @_;
  $version_or_range ||= 0;
  warn "$module already exists in $mm_key (at version $WriteMakefileArgs{$mm_key}{$module}) -- need to do a sane metamerge!"
    if exists $WriteMakefileArgs{$mm_key}{$module}
      and $WriteMakefileArgs{$mm_key}{$module} ne '0'
      and $WriteMakefileArgs{$mm_key}{$module} ne $version_or_range;
  warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$module}) -- need to do a sane metamerge!"
    if exists $FallbackPrereqs{$module} and $FallbackPrereqs{$module} ne '0'
        and $FallbackPrereqs{$module} ne $version_or_range;
  $WriteMakefileArgs{$mm_key}{$module} = $FallbackPrereqs{$module} = $version_or_range;
  return;
}

sub isnt_os {
  foreach my $os (@_) {
    return 0 if $os eq $^O;
  }
  return 1;
}

sub test_requires {
  my ($module, $version_or_range) = @_;
  _add_prereq(TEST_REQUIRES => $module, $version_or_range);
}