-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.PL
65 lines (60 loc) · 1.47 KB
/
Makefile.PL
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
use 5.008004;
use ExtUtils::MakeMaker;
use File::ShareDir::Install;
install_share 'share';
# os_unsupported if $^O eq 'MSWin32';
WriteMakefile(
NAME => 'App::sitelenmute',
VERSION_FROM => 'lib/App/sitelenmute.pm',
ABSTRACT_FROM => 'lib/App/sitelenmute.pm',
AUTHOR => 'Alex Schroeder',
LICENSE => 'gpl_3',
MIN_PERL_VERSION => '5.26.0', # Modern::Perl '2018'
EXE_FILES => [
'script/sitelen-mute',
'script/fcaption',
],
PREREQ_PM => {
'Modern::Perl' => 1.20180701, # for '2018'
'Encode::Locale' => 0,
'File::Copy::Recursive' => 0,
'File::Slurper' => 0,
'File::ShareDir' => 0,
'File::Symlink::Relative' => 0,
'Image::ExifTool' => 0,
'JSON::Tiny' => 0,
'Time::Progress' => 0,
},
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => '6.52',
'File::ShareDir::Install' => 0,
},
TEST_REQUIRES => {
'File::SearchPath' => 0,
'Mojo::DOM58' => 0,
},
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'https://alexschroeder.ch/cgit/',
web => 'https://alexschroeder.ch/cgit/sitelen-mute/about/',
},
},
},
clean => {
FILES => "t/gallery t/album2",
},
);
package MY;
use File::ShareDir::Install;
sub postamble {
my $self = shift;
my @ret = File::ShareDir::Install::postamble($self);
push @ret, <<'EOT';
README.md: script/sitelen-mute
pod2markdown $< $@
EOT
return join "\n", @ret;
}