File: Makefile.PL

package info (click to toggle)
libnet-radius-perl 2.103%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,276 kB
  • ctags: 139
  • sloc: perl: 4,561; tcl: 33; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 697 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
use ExtUtils::MakeMaker;

my $version = (split(m/:/, qx{svnversion 2>/dev/null}, 2))[0];
$version = sprintf("%d", (q$Revision: 102 $ =~ /\d+/g)[0])
    unless $version;
$version /= 1000;
$version += 2;
$version = sprintf("%0.3f", $version);

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME'	   => 'Net::Radius',
    VERSION        => $version,
    'PM' => {
	     map { ("$_.pm" => "\$(INST_LIBDIR)/$_.pm") }
	         qw(Radius/Packet Radius/Dictionary)
	    },
    PREREQ_PM    => {
	'Digest::MD5' => 0,
	'Test::More' => 0,
	'Test::Warn' => 0,
	},
    'dist' => {COMPRESS => 'gzip -9f', SUFFIX => 'gz'}
);