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
|
#! /usr/bin/perl
#---------------------------------------------------------------------
# $Id: Build.PL 2010 2008-05-10 18:36:53Z cjm $
# Copyright 2007 Christopher J. Madsen
#
# Build.PL for Text-Wrapper
#---------------------------------------------------------------------
use strict;
#use warnings; # Wasn't core until 5.6.0
use FindBin;
use lib $FindBin::Bin; # Make sure we're using My_Build from our distribution
use Module::Build;
eval 'use Module::Build::DistVersion;';
my $class = ($@ ? Module::Build->subclass(code => q{
sub ACTION_distdir {
print STDERR <<"END";
\a\a\a\n
This module uses Module::Build::DistVersion to automatically copy
version numbers to the appropriate places. You might want to install
that and re-run Build.PL if you intend to create a distribution.
\n
END
(shift @_)->SUPER::ACTION_distdir(@_);
} })
: 'Module::Build::DistVersion'); # if we found it
my $builder = $class->new(
module_name => 'Text::Wrapper',
license => 'perl',
dist_author => 'Christopher J. Madsen <perl@cjmweb.net>',
requires => { perl => 5.004 },
build_requires => {
'FindBin' => 0,
'File::Spec' => 0,
'Module::Build' => 0.21,
'Test::More' => 0,
},
create_makefile_pl => 'passthrough',
dynamic_config => 0,
meta_merge => { no_index => { directory => [ 'tools' ] }},
);
$builder->create_build_script();
|