aboutsummaryrefslogtreecommitdiff
path: root/template/perl/base-make.pl
blob: e696b6eeb5eabc9b687064da94be6d6cdff471a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use ExtUtils::MakeMaker;

my %clean = (
    'FILES' => '$(DISTVNAME).tar$(SUFFIX) *.ppd'
);

my %dist = (
    PREOP => 'perldoc -t {{_define_:modulepm:(split(substitute(glob("lib/*.pm"),"\\","/","g"),"\n")+[''])[0]}} > README',
);

WriteMakefile(
    'NAME'          => '{{_expr_:fnamemodify(sonictemplate#getvar("modulepm"),":t:r")}}',
    'AUTHOR'        => 'Your Name <you@cpan.org>',
    'ABSTRACT_FROM' => '{{_var_:modulepm}}',
    'VERSION_FROM'  => '{{_var_:modulepm}}',
    'clean'         => \%clean,
    'dist'          => \%dist,
);