# Makefile.PL for podlators. # $Id: Makefile.PL,v 1.5 2006-01-20 21:20:06 eagle Exp $ BEGIN { require 5.004; eval { require File::Spec }; if ($@) { die "You need to install the File::Spec module first!\n" } } # Use File::Spec to handle paths, for portability. sub script { my @scripts = map { File::Spec->catfile ('scripts', $_) } @_; wantarray ? @scripts : join (' ', @scripts); } # Install the modules into the Perl core directory for versions of Perl at # 5.6.0 or higher, since these modules now come with Perl. use ExtUtils::MakeMaker; WriteMakefile ( NAME => 'Pod', DISTNAME => 'podlators', ($] >= 5.006 ? (INSTALLDIRS => 'perl') : ()), PREREQ_PM => { 'File::Spec' => 0.8, 'Pod::Simple' => 3.04 }, ($] >= 5.005 ? (ABSTRACT => 'Convert POD data to various other formats', AUTHOR => 'Russ Allbery (rra@stanford.edu)') : ()), VERSION_FROM => 'VERSION', );