# This -*- perl -*- script writes the Makefile for News-Scan require 5.004; $| = 1; ################################################################ # check for non-standard required libraries ################################################################ sub require_version { my $pkg = shift; my $want = shift; my $vers = ${"${pkg}::VERSION"} || "(undef)"; if ($vers < $want) { die "$pkg v$want required -- you have v$vers\n"; } } my $missing = 0; print "Checking for Date::Parse........"; eval { require Date::Parse; require_version('Date::Parse', 2.06); }; if ($@) { print " failed\n"; $missing++; print < to find a CPAN site near you. EOF exit; } ################################################################ # begin Makefile generation stuff ################################################################ use ExtUtils::MakeMaker; $VERSION = '0.53'; sub MY::libscan { my($self, $path) = @_; return '' if $path =~ m!/RCS/!; $path; } WriteMakefile( VERSION => $VERSION, DISTNAME => 'News-Scan', NAME => 'News-Scan', PMLIBDIRS => [ qw( News ) ], 'dist' => { COMPRESS => 'gzip -9', SUFFIX => 'gz', DIST_DEFAULT => 'all tardist', }, );