~ubuntu-branches/ubuntu/maverick/libmodule-starter-plugin-cgiapp-perl/maverick

« back to all changes in this revision

Viewing changes to lib/Module/Starter/Plugin/CGIApp/templates/titanium/Build.PL

  • Committer: Bazaar Package Importer
  • Author(s): Jaldhar H. Vyas
  • Date: 2008-09-18 22:36:44 UTC
  • Revision ID: james.westby@ubuntu.com-20080918223644-ali0eh6eno0tw5ta
Tags: upstream-0.05
ImportĀ upstreamĀ versionĀ 0.05

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# $Id$
 
3
#
 
4
use strict;
 
5
use warnings;
 
6
use Module::Build;
 
7
 
 
8
my $builder = Module::Build->new(
 
9
    module_name         => '<tmpl_var main_module>',
 
10
    license             => '<tmpl_var license>',
 
11
    dist_author         => '<tmpl_var author> <<tmpl_var email>>',
 
12
    dist_version_from   => '<tmpl_var main_pm_file>',
 
13
    tmpl_files          => eval {
 
14
        my %tmpls; File::Find::find(
 
15
            {
 
16
                wanted => sub {
 
17
                    if ( -f $_ ) {
 
18
                        $tmpls{$File::Find::name} = $File::Find::name;
 
19
                    }
 
20
                },
 
21
            },
 
22
            '<tmpl_var templatedir>',
 
23
        );
 
24
        return \%tmpls;
 
25
    },
 
26
    build_requires => {
 
27
        'Titanium'                      => 0,
 
28
        'File::Find'                    => 0,      
 
29
        'HTML::Template'                => 0,
 
30
        'Pod::Coverage'                 => 0.18,
 
31
        'Pod::Usage'                    => 0,
 
32
        'Test::More'                    => 0,
 
33
        'Test::Pod'                     => 1.22,
 
34
        'Test::Pod::Coverage'           => 1.08,
 
35
        'Test::WWW::Mechanize::CGIApp'  => 0,
 
36
    },
 
37
    requires => {
 
38
        'Titanium'                      => 0,
 
39
        'File::Find'                    => 0,      
 
40
        'HTML::Template'                => 0,
 
41
    },
 
42
    add_to_cleanup      => [ '<tmpl_var distro>-*' ],
 
43
    create_makefile_pl  => 'traditional',
 
44
    sign                => 1,
 
45
);
 
46
 
 
47
$builder->add_build_element('tmpl');
 
48
$builder->create_build_script();
 
49