Add the following packages libalgorithm-diff-perl libspiffy-perl libtext-diff-perl...
[pkg-perl] / deb-src / libtest-base-perl / libtest-base-perl-0.54 / lib / Module / Install / TestBase.pm
1 package Module::Install::TestBase;
2 use strict;
3 use warnings;
4
5 use Module::Install::Base;
6
7 use vars qw($VERSION @ISA);
8 BEGIN {
9     $VERSION = '0.11';
10     @ISA     = 'Module::Install::Base';
11 }
12
13 sub use_test_base {
14     my $self = shift; 
15     $self->include('Test::Base');
16     $self->include('Test::Base::Filter');
17     $self->include('Spiffy');
18     $self->include('Test::More');
19     $self->include('Test::Builder');
20     $self->include('Test::Builder::Module');
21 }
22
23 1;
24
25 =head1 NAME
26
27 Module::Install::TestBase - Module::Install Support for Test::Base
28
29 =head1 SYNOPSIS
30
31     use inc::Module::Install;
32
33     name            'Foo';
34     all_from        'lib/Foo.pm';
35
36     use_test_base;
37
38     WriteAll;
39
40 =head1 DESCRIPTION
41
42 This module adds the C<use_test_base> directive to Module::Install.
43
44 Now you can get full Test-Base support for you module with no external
45 dependency on Test::Base.
46
47 Just add this line to your Makefile.PL:
48
49     use_test_base;
50
51 That's it. Really. Now Test::Base is bundled into your module, so that
52 it is no longer any burden on the person installing your module.
53
54 =head1 AUTHOR
55
56 Ingy döt Net <ingy@cpan.org>
57
58 =head1 COPYRIGHT
59
60 Copyright (c) 2006. Ingy döt Net. All rights reserved.
61
62 This program is free software; you can redistribute it and/or modify it
63 under the same terms as Perl itself.
64
65 See L<http://www.perl.com/perl/misc/Artistic.html>
66
67 =cut