#!/usr/bin/perl -w use ExtUtils::MakeMaker; $PACKAGE = 'Tie::Cache::LRU'; ($PACKAGE_FILE = $PACKAGE) =~ s|::|/|g; $LAST_API_CHANGE = '0.05'; $LAST_MAJOR_BUG = '0.20'; eval "require $PACKAGE"; unless ($@) { # Make sure we did find the module. print <<"CHANGE_WARN" if ${$PACKAGE.'::VERSION'} < $LAST_API_CHANGE; NOTE: There have been API changes between this version and any older than version $LAST_API_CHANGE! Please read the Changes file if you are upgrading from a version older than $LAST_API_CHANGE. CHANGE_WARN print <<"BUG_WARN" if ${$PACKAGE.'::VERSION'} < $LAST_MAJOR_BUG; Version $LAST_MAJOR_BUG contained a MAJOR BUG which has now been fixed. See the Changes file for details. BUG_WARN } WriteMakefile( NAME => $PACKAGE, VERSION_FROM => "lib/$PACKAGE_FILE.pm", # finds $VERSION PREREQ_PM => { Carp::Assert => 0, enum => 0, Class::Virtual => 0, Class::Data::Inheritable => 0, Test::More => 0.82, }, );