File: Makefile.PL

package info (click to toggle)
libclass-virtual-perl 0.08-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 100 kB
  • ctags: 9
  • sloc: perl: 317; makefile: 2
file content (49 lines) | stat: -rw-r--r-- 1,446 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
#!/usr/bin/perl -w

use ExtUtils::MakeMaker;

$PACKAGE = 'Class::Virtual';
($PACKAGE_FILE = $PACKAGE) =~ s|::|/|g;
$LAST_API_CHANGE = 0;
$LAST_MAJOR_BUG  = 0;

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",
    ABSTRACT_FROM   => "lib/$PACKAGE_FILE.pm",
    AUTHOR          => 'Michael G Schwern <schwern@pobox.com>',
    LICENSE         => 'perl_5',
    
    PREREQ_PM       => { 
        Class::Data::Inheritable => 0.02,
        Class::ISA               => 0.31,
        Carp::Assert             => 0.10,
        Test::More               => 0.50,
    },

    META_MERGE          => {
        resources => {
            homepage   => 'https://metacpan.org/release/Class-Virtual',
            bugtracker => 'https://github.com/schwern/Class-Virtual/issues',
            repository => 'https://github.com/schwern/Class-Virtual',
        }
    },
);