File: Build.PL

package info (click to toggle)
libppix-utilities-perl 1.000001-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 208 kB
  • ctags: 11
  • sloc: perl: 1,281; makefile: 2
file content (124 lines) | stat: -rw-r--r-- 3,274 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#!perl

#      $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/distributions/PPIx-Utilities/Build.PL $
#     $Date: 2009-06-26 10:48:29 -0400 (Fri, 26 Jun 2009) $
#   $Author: clonezone $
# $Revision: 3365 $

use 5.006001;

use strict;
use warnings;

use Module::Build;


my $class = Module::Build->subclass( code => <<'END_SUBCLASS' );

    sub ACTION_authortest {
        my ($self) = @_;

        $self->depends_on('build');
        $self->depends_on('manifest');
        $self->depends_on('distmeta');

        $self->test_files( qw< t xt/author > );
        $self->recursive_test_files(1);

        $self->depends_on('test');

        return;
    } # end ACTION_authortest()

    sub ACTION_distdir {
        my ($self) = @_;

        $self->depends_on('authortest');

        return $self->SUPER::ACTION_distdir();
    } # end ACTION_distdir

END_SUBCLASS

my $ppi_version = '1.208';

my $builder = $class->new(
    module_name         => 'PPIx::Utilities',
    dist_author         => 'Elliot Shank <perl@galumph.com>',
    license             => 'perl',
    dynamic_config      => 0,
    create_license      => 1,
    create_makefile_pl  => 'traditional',
    create_packlist     => 1,
    create_readme       => 1,
    sign                => 0,

    requires            => {
        'base'                      => 0,
        'Exception::Class'          => 0,
        'Exporter'                  => 0,
        'PPI'                       => $ppi_version,
        'PPI::Document::Fragment'   => $ppi_version,
        'Readonly'                  => 0,
        'Scalar::Util'              => 0,
        'strict'                    => 0,
        'Task::Weaken'              => 0, # Ensure a proper Scalar::Util.
        'warnings'                  => 0,
    },

    build_requires      => {
        'Data::Dumper'  => 0,
        'PPI::Document' => $ppi_version,
        'PPI::Dumper'   => $ppi_version,
        'Test::Deep'    => 0,
        'Test::More'    => 0,
    },

    recommends          => {
        'Readonly::XS'  => 0,
    },

    meta_merge          => {
        resources   => {
            license     => 'http://dev.perl.org/licenses/',
            Repository  => 'http://guest@perlcritic.tigris.org/svn/perlcritic/trunk/distributions/PPIx-Utilities/',
            MailingList => 'http://perlcritic.tigris.org/servlets/SummarizeList?listName=users',
        },
        no_index        => {
            file        => [ ],
            directory   => [ qw< t xt > ],
        },
    },

    add_to_cleanup      => [
        qw<
            LICENSE
            MANIFEST
            MANIFEST.bak
            META.yml
            Makefile
            Makefile.old
            Makefile.PL
            pod2htm?.tmp
            pm_to_blib
            README
            PPIx-Utilities-*
        >,
    ],
);


$builder->create_build_script();


##############################################################################
# Local Variables:
#   mode: cperl
#   cperl-indent-level: 4
#   fill-column: 78
#   indent-tabs-mode: nil
#   c-indentation-style: bsd
# End:
# setup vim: set filetype=perl tabstop=4 softtabstop=4 expandtab :
# setup vim: set shiftwidth=4 shiftround textwidth=78 nowrap autoindent :
# setup vim: set foldmethod=indent foldlevel=0 :