|
| 1 | +use 5.008; |
1 | 2 | use strict;
|
2 | 3 | use warnings;
|
3 |
| -use Module::Build; |
4 |
| -use 5.008; |
5 |
| - |
6 |
| -my $class = Module::Build->subclass( |
7 |
| - class => 'My::Builder', |
8 |
| - code => q{ |
9 |
| - sub ACTION_authortest { |
10 |
| - my ($self) = @_; |
11 |
| - $self->depends_on('build'); |
12 |
| - $self->depends_on('manifest'); |
13 |
| - $self->depends_on('distmeta'); |
14 |
| - $self->test_files( qw< t xt/author > ); |
15 |
| - $self->recursive_test_files(1); |
16 |
| - $self->depends_on('test'); |
17 |
| - return; |
18 |
| - } |
19 |
| - sub ACTION_distdir { |
20 |
| - my ($self) = @_; |
21 |
| - $self->depends_on('authortest'); |
22 |
| - return $self->SUPER::ACTION_distdir(); |
23 |
| - } |
24 |
| - } |
25 |
| -); |
| 4 | +use inc::My_Build; |
26 | 5 |
|
27 |
| -my $builder = $class->new( |
| 6 | +my $builder = inc::My_Build->new( |
28 | 7 | module_name => 'HTML::Tree',
|
29 | 8 | license => 'perl',
|
30 |
| - dist_author => 'Jeff Fearn <[email protected]>', |
| 9 | + dist_author => 'Christopher J. Madsen <[email protected]>', |
31 | 10 | dist_version_from => 'lib/HTML/Element.pm',
|
32 |
| - create_makefile_pl => 'traditional', |
33 |
| - configure_requires => { |
34 |
| - 'Module::Build' => 0, |
35 |
| - }, |
36 |
| - build_requires => { |
37 |
| - 'Module::Build' => 0, |
38 |
| - 'Test::Exception' => 0, |
39 |
| - 'Test::Fatal' => 0, |
40 |
| - 'Test::More' => 0, |
41 |
| - 'HTML::Parser' => 3.46, |
42 |
| - 'HTML::Tagset' => 3.02, |
43 |
| - 'LWP::UserAgent' => 0, |
44 |
| - 'URI::file' => 0, |
45 |
| - 'Pod::Usage' => 0, |
46 |
| - 'Scalar::Util' => 0, |
47 |
| - }, |
48 |
| - requires => { |
49 |
| - 'HTML::Parser' => 3.46, |
50 |
| - 'HTML::Tagset' => 3.02, |
51 |
| - 'perl' => '5.8.0', |
52 |
| - 'LWP::UserAgent' => 5.802, # HTTP::Message decoded_content method |
53 |
| - 'Scalar::Util' => 0, |
54 |
| - 'Pod::Usage' => 0, |
55 |
| - }, |
| 11 | +##{ $plugin->get_prereqs ##} |
56 | 12 | add_to_cleanup =>
|
57 | 13 | [ 'HTML-Tree-*', 'tmp', 'blib', 'lwp-test-*', 'MANIFEST.bak' ],
|
58 |
| - script_files => ['bin/htmltree'], |
| 14 | + script_files => 'bin', |
59 | 15 | );
|
60 | 16 |
|
61 | 17 | $builder->create_build_script();
|
0 commit comments