~ubuntu-branches/ubuntu/quantal/libtext-wikiformat-perl/quantal

« back to all changes in this revision

Viewing changes to .pc/0002-suppress-packlist.patch/Build.PL

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Mako Hill
  • Date: 2011-02-12 14:44:49 UTC
  • mfrom: (1.1.3 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212144449-6lcsb4ihr1ayymis
Tags: 0.79-1
* New upstream release. (Closes: #583317)
* Fixed broken watch file. (Closes: #449734)
* Move to new source format and update package in a various ways.
* Suppress packlist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! perl
 
2
 
 
3
use Module::Build;
 
4
 
 
5
my $class = Module::Build->subclass(
 
6
        class => 'Module::Build::FilterTests',
 
7
        code  => <<'END_HERE',
 
8
        
 
9
        use File::Glob;
 
10
        use File::Spec::Functions;
 
11
        
 
12
        sub ACTION_disttest
 
13
        {
 
14
                my $self = shift;
 
15
                local $ENV{PERL_RUN_ALL_TESTS} = 1;
 
16
                $self->SUPER::ACTION_disttest( @_ );
 
17
        }
 
18
        
 
19
        sub find_test_files
 
20
        {
 
21
                my $self  = shift;
 
22
                my $tests = $self->SUPER::find_test_files( @_ );
 
23
            
 
24
                return $tests unless $ENV{PERL_RUN_ALL_TESTS};
 
25
        
 
26
                my $test_pattern = catfile(qw( t developer *.t ) );
 
27
                push @$tests, File::Glob::bsd_glob( $test_pattern );
 
28
                return $tests;
 
29
        }
 
30
END_HERE
 
31
);
 
32
 
 
33
my $build = $class->new(
 
34
        license     => 'perl',
 
35
        module_name => 'Text::WikiFormat',
 
36
        requires    =>
 
37
        {
 
38
                'URI::Escape'  => '',
 
39
                'Scalar::Util' => '1.14',
 
40
        },
 
41
        build_requires =>
 
42
        {
 
43
                'Test::More'   => '0.30',
 
44
        },
 
45
        create_makefile_pl => 'traditional',
 
46
        sign               => '1',
 
47
);
 
48
 
 
49
$build->create_build_script();