File: Makefile.PL

package info (click to toggle)
libnet-irc-perl 0.54-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 192 kB
  • ctags: 124
  • sloc: perl: 1,773; makefile: 36
file content (43 lines) | stat: -rw-r--r-- 1,166 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

use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

if ($] < 5) {
    my $years = (localtime)[5] - 91;
    print <<"ARGH";
               *** REALLY BIG FAT FATAL ERROR ***

    Hate to bring this up, but you're trying to run Net::IRC
    on a version of Perl that's over $years years old. Are you
    kidding? Come on, upgrade already... Net::IRC won't even
    consider running on this hoary old version.

ARGH

    exit 1;
}

unless ($] >= 5.004) {
    print <<"ZOT";
               *** REALLY BIG FAT FATAL ERROR ***

    Net::IRC requires Perl version 5.004 or higher. Please complain
    to your system administrator until sie installs it. Sorry...
  
ZOT

    exit 1;
}

WriteMakefile(
	      'NAME'  => 'Net::IRC',
	      'PM'    =>  {
		  'IRC.pm'        => '${INST_LIBDIR}/IRC.pm',
		  'Connection.pm' => '${INST_LIBDIR}/IRC/Connection.pm',
		  'Event.pm'      => '${INST_LIBDIR}/IRC/Event.pm',
		  'DCC.pm'        => '${INST_LIBDIR}/IRC/DCC.pm',
	      },
	      'VERSION_FROM' => 'IRC.pm', # finds $VERSION
              'dist' => { 'COMPRESS' => 'gzip --best' },
);