ported to test::output
[language-befunge.git] / Build.PL
blob8850632d2486b7492ba4666a68a7264718a233a1
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     'IO::Handle'            => 0,
31     'List::Util'            => 0,
32     'POSIX'                 => 0,
33     'Test::Exception'       => 0,
34     'Test::More'            => 0,
35     'Test::Output'          => 0,
37 my %recommends = (
38     'Language::Befunge::Storage::Generic::Vec::XS' => 0,
39     'Language::Befunge::Vector::XS'                => '0.2.2',
40     'Test::Builder'                                => 0, # TEST lib
41     'Test::Pod'                                    => 0,
42     'Test::Pod::Coverage'                          => 0,
43     'Time::HiRes'                                  => 0, # HRTI lib
47 my $builder = Module::Build->new
48   ( module_name          => 'Language::Befunge',
49     license              => 'perl',
50     dist_author          => 'Jerome Quelin <jquelin@cpan.org>',
51     dist_version_from    => 'lib/Language/Befunge.pm',
52     build_requires       => \%build_requires,
53     requires             => \%requires,
54     recommends           => \%recommends,
55     script_files         => [ 'bin/jqbef98' ],
56     add_to_cleanup       =>
57       [ 'Language-Befunge-*', '*.tmp', '*.bak', map { ( '*/' x $_ ) . '*~' } 0..5 ],
58     recursive_test_files => 1,
59     meta_merge           => {
60         resources => {
61             repository => 'http://repo.or.cz/w/language-befunge.git',
62         },
63     },
64   );
65 $builder->create_build_script;