-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.PL
38 lines (35 loc) · 1.29 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
#!/usr/bin/env perl
use strict;
use warnings;
use ExtUtils::MakeMaker;
WriteMakefile (
AUTHOR => 'Roberto Frenna <[email protected]>',
NAME => 'WWW::Telegram::BotAPI',
VERSION_FROM => 'lib/WWW/Telegram/BotAPI.pm',
ABSTRACT => 'Perl implementation of the Telegram Bot API',
LICENSE => 'artistic_2',
PREREQ_PM => {
map { $_ => 0 } qw[Carp Encode LWP::UserAgent LWP::Protocol::https JSON::MaybeXS]
},
(eval { ExtUtils::MakeMaker->VERSION(6.46) } ?
(META_MERGE => {
resources => {
license => 'http://www.opensource.org/licenses/artistic-license-2.0',
bugtracker => 'https://github.com/Robertof/perl-www-telegram-botapi/issues',
repository => 'https://github.com/Robertof/perl-www-telegram-botapi'
}
}) : ()
)
);
# Create the target "README.md" used to generate the markdown version of the POD documentation.
# It uses the script gen_doc, which requires Pod::Markdown.
# Thanks to the author of Mojolicious::Plugin::DigestAuth, who used a similar section in its
# makefile to do the same thing.
sub MY::postamble
{
my $self = shift;
<<END_MAKE;
README.md: $self->{VERSION_FROM}
\t\$(PERLRUN) gen_doc $self->{VERSION_FROM}
END_MAKE
}