1name             = ZMQ-FFI
2author           = Dylan Cali <calid1984@gmail.com>
3license          = Perl_5
4copyright_holder = Dylan Cali
5
6[@Filter]
7-bundle = @Basic
8-remove = MakeMaker
9
10[FFI::CheckLib]
11lib = zmq
12
13[MakeMaker::Awesome]
14delimiter = |
15header = |use FFI::Platypus;
16header = |# Can't currently support unthreaded BSD perls
17header = |# See GH #13
18header = |my $badbsd;
19header = |if ($^O eq 'freebsd') {
20header = |   (!grep /libthr/, `procstat -v $$`) && ($badbsd = 1);
21header = |} elsif ($^O =~ m/bsd/i) {
22header = |   !FFI::Platypus->new(lib => [undef])
23header = |                 ->find_symbol('pthread_self')
24header = |                 && ($badbsd = 1);
25header = |}
26header = |if ($badbsd) {
27header = |  print "On BSD ZMQ::FFI requires a perl built to support threads.";
28header = |  print " Can't continue\n";
29header = |  exit;
30header = |}
31
32[Git::NextVersion]
33version_regexp = ^(.+)$
34
35[PkgVersion]
36
37[PodWeaver]
38
39[AutoPrereqs]
40[Prereqs / ConfigureRequires]
41FFI::Platypus = 0.86
42
43[Prereqs / RuntimeRequires]
44perl              = 5.010
45Moo               = 1.004005
46Class::XSAccessor = 1.18
47Math::BigInt      = 1.997
48FFI::Platypus     = 0.86
49Import::Into      = 1.002005
50
51[Run::BeforeBuild]
52run = perl scripts/gen_zmq_constants.pl
53run = perl -Ilib -I. scripts/gen_modules.pl
54
55[Run::Test]
56run = xt/test_versions.sh
57
58[Run::Clean]
59run = rm -f lib/ZMQ/FFI/Constants.pm
60run = rm -f lib/ZMQ/FFI/*/Context.pm
61run = rm -f lib/ZMQ/FFI/*/Socket.pm
62
63[NextRelease]
64
65[GitHub::Meta]
66repo = zmq-ffi
67
68[MetaJSON]
69
70[Git::Commit]
71allow_dirty = Changes
72commit_msg  = version => %v
73
74[Git::Tag]
75tag_format  = %v
76tag_message = %v
77
78[Git::Check]
79allow_dirty =
80
81[Git::Push]
82
83[Clean]
84
85; authordep Pod::Elemental::Transformer::List
86; authordep Template::Tiny
87; authordep Path::Class
88; authordep FFI::Platypus
89