File: Makefile.PL

package info (click to toggle)
libapache-admin-config-perl 0.95-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 256 kB
  • ctags: 136
  • sloc: perl: 858; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download | duplicates (3)
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

use strict;
use ExtUtils::MakeMaker;
my $min_perl_version = 5.005;

if($] < $min_perl_version) 
{
    print STDERR "This module will not work with perl version $]. It requires perl version $min_perl_version or higher\n";
    exit 1;
}

eval('use Apache::Admin::Config');
if(!$@ && $Apache::Admin::Config::VERSION < 0.10)
{
    $|++;
    print
    (   STDERR
        qq(Your actual version of Apache::Admin::Config ($Apache::Admin::Config::VERSION) use the old API.\n),
        qq(Changes in new API may dont work correctly with your programs, so you _have_ to read\n),
        qq(the documentation and the "UPDATE-0.10" file before installing this version.\n\n),
        qq(Would you like to install it anyway ? (Y/n):)
    );

    my $answer = <STDIN>;
    if($answer =~ /n/i)
    {
        print STDERR "Installation aborted.\n";
        exit 1;
    }
}

WriteMakefile
(
    NAME            => 'Apache::Admin::Config',
    DISTNAME        => 'Apache-Admin-Config',
    VERSION_FROM    => 'lib/Apache/Admin/Config.pm', # finds $VERSION
    PREREQ_PM       => {FileHandle => 2.00},
    PMLIBDIRS       => ['lib'],
    ABSTRACT_FROM   => 'lib/Apache/Admin/Config.pm', # retrieve abstract from module
    AUTHOR          => 'Olivier Poitrey <rs@rhapsodyk.net>',
);