]> Sergey Matveev's repositories - public-inbox.git/blob - Makefile.PL
Makefile.PL: update dependencies
[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.org infrastructure',
11         EXE_FILES => [qw/public-inbox-mda public-inbox-cgi/],
12         PREREQ_PM => {
13                 # note: we use ssoma(1) and spamc(1),
14                 # NOT the Perl modules
15                 # We also depend on git through ssoma.
16                 'Email::MIME' => 0,
17                 'Email::MIME::ContentType' => 0,
18                 'Email::Filter' => 0,
19                 'Email::Address' => 0,
20                 'Date::Parse' => 0,
21                 'Encode::MIME::Header' => 0,
22                 'XML::Atom::SimpleFeed' => 0,
23                 'IPC::Open2' => 0,
24                 'File::Path::Expand' => 0,
25                 'CGI' => 0,
26                 'URI::Escape' => 0,
27                 # We have more test dependencies, but do not force
28                 # users to install them
29         },
30 );
31
32 sub MY::postamble {
33   <<'EOF';
34 RSYNC_DEST = public-inbox.org:/srv/public-inbox/
35 docs = README COPYING INSTALL $(shell git ls-files Documentation/ '*.txt')
36 gz_docs = $(addsuffix .gz, $(docs))
37 %.gz: %
38         gzip -9 --rsyncable < $< > $@+
39         touch -r $< $@+
40         mv $@+ $@
41
42 gz-docs: $(gz_docs)
43 rsync-docs:
44         git set-file-times $(docs)
45         $(MAKE) gz-docs
46         rsync --chmod=Fugo=r -av $(gz_docs) $(docs) $(RSYNC_DEST)
47
48 EOF
49 }