-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile.PL
More file actions
40 lines (36 loc) · 1.07 KB
/
Makefile.PL
File metadata and controls
40 lines (36 loc) · 1.07 KB
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
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Time::Timecode',
AUTHOR => 'Skye Shaw <skye.shaw AT gmail.com>',
LICENSE => 'perl',
VERSION_FROM => 'lib/Time/Timecode.pm',
ABSTRACT_FROM => 'lib/Time/Timecode.pm',
EXE_FILES => ['bin/timecode'],
(eval { ExtUtils::MakeMaker->VERSION(6.46) } ?
(META_MERGE => {
resources => {
homepage => 'http://github.com/sshaw',
bugtracker => 'http://github.com/sshaw/Time-Timecode/issues',
repository => 'http://github.com/sshaw/Time-Timecode',
}
}) : ())
);
# Create README.pod for a repo's GitHub page. Unlike CPAN, GitHub won't
# display the module's POD, it looks for a README.*
sub MY::postamble
{
my $self = shift;
return if -r 'README' or ! -r $self->{VERSION_FROM};
return<<END_MAKE;
README.pod: $self->{VERSION_FROM}
\@perldoc -uT $self->{VERSION_FROM} > README.pod
END_MAKE
}
# Include test helpers and/or libs
sub MY::test
{
package MY;
my $make = shift->SUPER::test(@_);
$make .= 'FULLPERLRUN = $(FULLPERL) -I t -I t/lib';
return $make;
}