File: Makefile.PL

package info (click to toggle)
libv-perl 0.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 192 kB
  • sloc: perl: 556; makefile: 2
file content (88 lines) | stat: -rw-r--r-- 1,861 bytes parent folder | download | duplicates (2)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/perl

use 5.014000;
use strict;
use warnings;

use ExtUtils::MakeMaker;

WriteMakefile (
    NAME           => "V",
    VERSION_FROM   => "lib/V.pm",
    ABSTRACT_FROM  => "lib/V.pm",
    AUTHOR         => 'H.Merijn Brand <hmbrand@cpan.org>',

    TEST_REQUIRES => {
	"Test::Simple"   => 0.88,
	"Test::Fatal"    => 0,
	"Test::Warnings" => 0,
	},
    PREREQ_PM => {
	version          => 0.77,
	},
    macro => {
	TARFLAGS => "--format=ustar -c -v -f",
	},

    MIN_PERL_VERSION     => "5.010001",
    LICENSE              => "perl_5",
    META_ADD             => {
	"meta-spec"      => {
	    version      => 2,
	    },
	"resources"      => {
	    homepage     => "https://github.com/Tux/V",
	    repository   => {
		type     => "git",
		url      => "https://github.com/Tux/V.git",
		},
	    bugtracker   => {
		web      => "https://github.com/Tux/V/issues",
		},
	    x_IRC        => 'irc://irc.perl.org/#csv',
	    },
	},
    );

1;

package MY;

sub postamble {
    my $do_xt = (-d "xt" && ($ENV{AUTOMATED_TESTING} || 0) != 1)
	? join "\n" =>
	    'test ::',
	    '	-@env TEST_FILES="xt/*.t" make -e test_dynamic',
	    '	-perl doc/make-doc.pl',
	    ''
	: "";
    join "\n" =>
	'cover $make_sep test_cover:',
	'	ccache -C',
	'	-@rm -f *.gc??',
	'	cover -test',
	'	cover -report html_basic',
	'',
	'spellcheck:',
	'	pod-spell-check --aspell --ispell',
	'',
	'checkmeta:	spellcheck',
	'	perl sandbox/genMETA.pl -c',
	'',
	'fixmeta:	distmeta',
	'	perl sandbox/genMETA.pl',
	'',
	'tgzdist:	checkmeta fixmeta $(DISTVNAME).tar.gz distcheck',
	'	-@mv -f $(DISTVNAME).tar.gz $(DISTVNAME).tgz',
	'	-@cpants_lint.pl $(DISTVNAME).tgz',
	'	-@rm -f Debian_CPANTS.txt',
	'	-@echo "Consider running sandbox/used-by.pl now"',
	'',
	'test_used:	test',
	'	prove -vwb sandbox/used-by.pl',
	'',
	'doc docs:',
	'	perl doc/make-doc.pl',
	'',
	$do_xt;
    } # postamble