File: Makefile.PL

package info (click to toggle)
libdatetime-format-strptime-perl 1.0700-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 164 kB
  • ctags: 19
  • sloc: perl: 891; makefile: 45
file content (41 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download
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
use ExtUtils::MakeMaker;

print <<'EOF';
-----------------------------------------
  __                ___                
 (_   _|_  ._  ._    |   o  ._ _    _  
 __)   |_  |   |_)   |   |  | | |  (/_ 
               |                       
-----------------------------------------

To run thousands of other tests (mainly
for developers) then after running 'make'
and 'make test' run 'make test_more':

perl MakeFile.PL
make
make test
make test_more

EOF

WriteMakefile(
    NAME         => 'DateTime::Format::Strptime',
    VERSION_FROM => 'lib/DateTime/Format/Strptime.pm', # finds $VERSION
    AUTHOR       => 'Rick Measham (rickm@cpan.org)',
    ABSTRACT     => 'Parse and format strp and strf time patterns',
    PREREQ_PM    => {
       'DateTime'           => '0.1402',
       'DateTime::Locale'   => '0.02',
       'DateTime::TimeZone' => '0.25',
       'Params::Validate'   => '0.64',
    },
);

sub MY::postamble {
	return <<'MAKE_FRAG';
test_more :: pure_all
	PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" t/more/*.t
MAKE_FRAG

}