v4.02
[language-befunge.git] / Build.PL
blob5b8cc8c3fd0e2b2ca7100cb6f7fc887095daf4f4
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::Accessor::Fast' => 0,
21     'Config'                => 0,
22     'Readonly'              => 0,
23     'Storable'              => 0,
24     'UNIVERSAL::require'    => 0,
26 my %build_requires = (
27     %requires,
28     'List::Util'            => 0,
29     'POSIX'                 => 0,
30     'Test::Exception'       => 0,
31     'Test::More'            => 0,
33 my %recommends = (
34     'Language::Befunge::Storage::Generic::Vec::XS' => 0,
35     'Language::Befunge::Vector::XS'                => '0.2.2',
36     'Test::Pod'                                    => 0,
37     'Test::Pod::Coverage'                          => 0,
41 my $builder = Module::Build->new
42   ( module_name          => 'Language::Befunge',
43     license              => 'perl',
44     dist_author          => 'Jerome Quelin <jquelin@cpan.org>',
45     dist_version_from    => 'lib/Language/Befunge.pm',
46     build_requires       => \%build_requires,
47     requires             => \%requires,
48     recommends           => \%recommends,
49     script_files         => [ 'bin/jqbf98' ],
50     add_to_cleanup       =>
51       [ 'Language-Befunge-*', map { ( '*/' x $_ ) . '*~' } 0..5 ],
52     recursive_test_files => 1,
53   );
54 $builder->create_build_script;