Bigtop
view release on metacpan or search on metacpan
lib/Bigtop/Backend/Init/Std.pm view on Meta::CPAN
[% flags %]
[% END %]
[% END %]
[% BLOCK README %]
[% app_name %] version 0.01
===========================
Place description here.
INSTALLATION
To install this module type:
perl Build.PL
./Build
./Build test
./Build install
DEPENDENCIES
This module requires these other modules and libraries:
[% control_backend %]
COPYRIGHT AND LICENCE
Put the correct copyright and license info here.
Copyright (c) [% year %] by [% copyright_holder %]
[% IF license_text %]
[% license_text %]
[% ELSE %]
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.6 or,
at your option, any later version of Perl 5 you may have available.
[% END %]
[% END %]
[% BLOCK MANIFEST_SKIP %]
# Avoid version control files.
\bRCS\b
\bCVS\b
,v$
\B\.svn\b
# Avoid Makemaker generated and utility files.
\bMakefile$
\bblib
\bMakeMaker-\d
\bpm_to_blib$
\bblibdirs$
# ^MANIFEST\.SKIP$
# Avoid Module::Build generated and utility files.
\bBuild$
\b_build
# Avoid temp and backup files.
~$
\.tmp$
\.old$
\.bak$
\#$
\b\.#
\.swp$
# Avoid inline's dropings
_Inline
[% END %]
[% BLOCK Build_PL %]
[%# app_name %]
use strict;
use Gantry::Build;
my $build = Gantry::Build->new(
build_web_directory => 'html',
install_web_directories => {
# XXX unix specific paths
'dev' => '/home/httpd/html/[% app_dash_name %]',
'qual' => '/home/httpd/html/[% app_dash_name %]',
'prod' => '/home/httpd/html/[% app_dash_name %]',
},
create_makefile_pl => 'passthrough',
license => 'perl',
module_name => '[% app_name %]',
requires => {
'perl' => '5',
'Gantry' => '3.0',
'HTML::Prototype' => '0',
},
create_makefile_pl => 'passthrough',
# XXX unix specific paths
script_files => [ glob('bin/*') ],
'recursive_test_files' => 1,
# XXX unix specific paths
install_path => { script => '/usr/local/bin' },
);
$build->create_build_script;
[% END %]
EO_Template
sub setup_template {
my $class = shift;
my $template_text = shift || $default_template_text;
return if ( $template_is_setup );
Inline->bind(
TT => $template_text,
PRE_CHOMP => 0,
POST_CHOMP => 0,
TRIM_LEADING_SPACE => 1,
TRIM_TRAILING_SPACE => 0,
( run in 2.000 seconds using v1.01-cache-2.11-cpan-c966e8aa7e8 )