quell warnings
[sepia.git] / Makefile.PL
blobce5e70fb610f0b0794ef5023b3da8a16f3bbb7d9
1 use ExtUtils::MakeMaker qw(WriteMakefile prompt);
2 use 5.006;                      # for "no warnings" -- sorry!
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written.
6 print <<EOS;
7 NOTE:
8     To actually use this package in a useful way, you probably need to
9     move the Emacs Lisp files somewhere.  Where will depend on your
10     installation.
12     You will also need to install the HTML or Texinfo documentation
13     somewhere appropriate to your system.
14 EOS
16 my %prereq = (
17     'Data::Dumper'    => 0,
18     'Scalar::Util'    => 0,
21 ## Poor man's optional deps.
22 sub test_for
24     my $mod = shift;
25     eval "require $mod";
26     if ($@) {
27         my $resp = prompt("@_.  Install $mod [yN]? ", 'n');
28         $prereq{$mod} = 0 if $resp =~ /^y/i;
29     }
32 test_for 'Devel::Peek', 'Printing internals requires Devel::Peek';
33 test_for 'Devel::Size', 'Printing variable sizes requires Devel::Size';
34 test_for 'IO::Scalar', 'Printing internals requires IO::Scalar because Devel::Peek sucks.';
35 test_for 'Lexical::Persistence', 'Strict mode requires Lexical::Persistence';
36 test_for 'LWP::Simple', 'CPAN documentation browsing requires LWP::Simple';
37 test_for 'Module::CoreList', 'sepia-core-version requires Module::CoreList';
38 test_for 'Module::Info', 'Required for some Emacs functions';
39 test_for 'PadWalker', 'Stack/lexical inspection requires PadWalker >= 1.0';
40 test_for 'BSD::Resource', 'Detailed command timing.';
41 test_for 'Time::HiRes', 'Basic command timing.';
42 # test_for 'Pod::Webserver', 'Pod::Webserver creates nice documentation.';
43 # test_for 'Scope::Upper', 'Required for return-from-context';
45 WriteMakefile(
46     'NAME'              => 'Sepia',
47     'VERSION_FROM'      => 'lib/Sepia.pm', # finds $VERSION
48     'PREREQ_PM'         => \%prereq,
49     AUTHOR     => "Sean O'Rourke <seano\@cpan.org>",
50     ABSTRACT => 'Simple Emacs-Perl InterAction',