]> Sergey Matveev's repositories - public-inbox.git/blob - Makefile.PL
terminology: replies => followups
[public-inbox.git] / Makefile.PL
1 #!/usr/bin/perl -w
2 # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
3 # License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
4 use strict;
5 use ExtUtils::MakeMaker;
6 WriteMakefile(
7         NAME => 'public-inbox',
8         VERSION => '0.0.0',
9         AUTHOR => 'Eric Wong <normalperson@yhbt.net>',
10         ABSTRACT => 'public-inbox server infrastructure',
11         EXE_FILES => [qw/public-inbox-mda public-inbox.cgi
12                         public-inbox-learn public-inbox-init
13                         public-inbox-index/],
14         PREREQ_PM => {
15                 # note: we use ssoma(1) and spamc(1), NOT the Perl modules
16                 # We also depend on git through ssoma.
17                 # Keep this sorted and synced to the INSTALL document
18                 'CGI' => 0,
19                 'Date::Parse' => 0,
20                 'Email::Address' => 0,
21                 'Email::Filter' => 0,
22                 'Email::MIME' => 0,
23                 'Email::MIME::ContentType' => 0,
24                 'Encode::MIME::Header' => 0,
25                 'File::Path::Expand' => 0,
26                 'IPC::Run' => 0,
27                 'Mail::Thread' => '2.5', # 2.5+ needed for Email::Simple compat
28                 'URI::Escape' => 0,
29                 'XML::Atom::SimpleFeed' => 0,
30                 # We have more test dependencies, but do not force
31                 # users to install them
32         },
33 );
34
35 sub MY::postamble {
36   <<'EOF';
37 -include Documentation/include.mk
38 N = $(shell echo $$(( $$(nproc 2>/dev/null || echo 2) + 1)))
39 check:: pure_all
40         prove -lv -j$(N)
41
42 EOF
43 }