/
Makefile.PL
45 lines (38 loc) · 1.09 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
use warnings;
use strict;
use ExtUtils::MakeMaker;
### Touch files that will be generated at "make dist" time.
### ExtUtils::MakeMaker and Module::Build will complain about them if
### they aren't present now.
foreach my $touched (qw(CHANGES META.yml README)) {
open TOUCH, ">>", $touched and close TOUCH;
}
### Generate Makefile.PL.
WriteMakefile(
NAME => 'Lexical::Persistence',
AUTHOR => 'Rocco Caputo <rcaputo@cpan.org>',
ABSTRACT => 'Persistent, continuation-like contexts for lexical variables.',
VERSION_FROM => 'lib/Lexical/Persistence.pm',
LICENSE => 'perl',
META_ADD => {
resources => {
license => 'http://dev.perl.org/licenses/',
repository => 'http://github.com/rcaputo/lexical-persistence'
},
},
dist => {
COMPRESS => 'gzip -9f',
SUFFIX => 'gz',
PREOP => (
'git-log.pl | ' .
'/usr/bin/tee ./$(DISTNAME)-$(VERSION)/CHANGES > ./CHANGES; ' .
'LANG=C perldoc lib/Lexical/Persistence.pm | ' .
'/usr/bin/tee ./$(DISTNAME)-$(VERSION)/README > ./README'
),
},
PREREQ_PM => {
'Devel::LexAlias' => 0.04,
'PadWalker' => 1.1,
},
);
1;