ported to test::output
[language-befunge.git] / Build.PL
blobae9d6dc26b0225fea1c7360379dab07a62dac661
1 #!perl
3 # This file is part of Language::Befunge.
4 # Copyright (c) 2001-2008 Jerome Quelin, all rights reserved.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the same terms as Perl itself.
11 use strict;
12 use warnings;
14 use Module::Build;
16 my %requires = (
17     'perl'                  => '5.010',
18     'aliased'               => '0.22',
19     'Carp'                  => 0,
20     'Class::XSAccessor'     => 0,
21     'Config'                => 0,
22     'FindBin'               => 0,
23     'Math::BaseCalc'        => 0,
24     'Readonly'              => 0,
25     'Storable'              => 0,
26     'UNIVERSAL::require'    => 0,
28 my %build_requires = (
29     %requires,
30     'List::Util'            => 0,
31     'POSIX'                 => 0,
32     'Test::Exception'       => 0,
33     'Test::More'            => 0,
34     'Test::Output'          => 0,
36 my %recommends = (
37     'Language::Befunge::Storage::Generic::Vec::XS' => 0,
38     'Language::Befunge::Vector::XS'                => '0.2.2',
39     'Test::Builder'                                => 0, # TEST lib
40     'Test::Pod'                                    => 0,
41     'Test::Pod::Coverage'                          => 0,
42     'Time::HiRes'                                  => 0, # HRTI lib
46 my $builder = Module::Build->new
47   ( module_name          => 'Language::Befunge',
48     license              => 'perl',
49     dist_author          => 'Jerome Quelin <jquelin@cpan.org>',
50     dist_version_from    => 'lib/Language/Befunge.pm',
51     build_requires       => \%build_requires,
52     requires             => \%requires,
53     recommends           => \%recommends,
54     script_files         => [ 'bin/jqbef98' ],
55     add_to_cleanup       =>
56       [ 'Language-Befunge-*', '*.tmp', '*.bak', map { ( '*/' x $_ ) . '*~' } 0..5 ],
57     recursive_test_files => 1,
58     meta_merge           => {
59         resources => {
60             repository => 'http://repo.or.cz/w/language-befunge.git',
61         },
62     },
63   );
64 $builder->create_build_script;