File: Makefile.PL

package info (click to toggle)
libtie-cache-lru-perl 20150301-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 528 kB
  • sloc: perl: 563; makefile: 2
file content (51 lines) | stat: -rw-r--r-- 1,448 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/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
}


my $mm_ver = $ExtUtils::MakeMaker::VERSION;
WriteMakefile(
    NAME                => $PACKAGE,

    VERSION_FROM        => "lib/$PACKAGE_FILE.pm",
    ABSTRACT_FROM       => "lib/$PACKAGE_FILE.pm",
    AUTHOR              => 'Michael G Schwern <schwern@pobox.com>',
    LICENSE             => 'perl_5',
    
    PREREQ_PM           => { 
        Carp::Assert    => 0,
        enum            => 0,
        Class::Virtual  => 0,
        Class::Data::Inheritable => 0,
        Test::More      => 0.82,
    },

    META_MERGE          => {
        resources => {
            bugtracker => 'https://github.com/schwern/Tie-Cache-LRU/issues',
            repository => 'https://github.com/schwern/Tie-Cache-LRU',
        }
    },
);