ssoma-mda: Use the email subject as the commit message
[ssoma-mda.git] / Makefile.PL
1 #!/usr/bin/perl
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 #
5 # Note: this may be rewritten in another language in the future,
6 # so don't depend on any public Perl API
7 use strict;
8 use ExtUtils::MakeMaker;
9 WriteMakefile(
10         NAME => 'ssoma',
11         VERSION => '0.1.0',
12         AUTHOR => 'Eric Wong <normalperson@yhbt.net>',
13         ABSTRACT => 'some sort of mail archiver',
14         EXE_FILES => [qw/ssoma-mda ssoma ssoma-rm/],
15         PREREQ_PM => {
16                 # Keep this sorted and synced to the INSTALL document
17                 'Digest::SHA' => 0,
18                 'Email::LocalDelivery' => 0,
19                 'Email::Simple' => 0,
20                 'File::Path::Expand' => 0,
21                 'Net::IMAP::Simple' => 0,
22         },
23 );
24
25 sub MY::postamble {
26   <<'EOF';
27 -include Documentation/include.mk
28 N = $(shell echo $$(( $$(nproc 2>/dev/null || echo 2) + 1)))
29 check:: pure_all
30         prove -lv -j$(N)
31
32 EOF
33 }