File: Build.PL

package info (click to toggle)
libio-interface-perl 1.09-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 140 kB
  • ctags: 31
  • sloc: perl: 190; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/perl

use strict;
use Module::Build;

my $build = Module::Build->new(
    module_name        => 'IO::Interface',
    dist_version_from  => 'lib/IO/Interface.pm',
    dist_author        => 'Lincoln Stein <lincoln.stein@gmail.com>',
    dist_abstract      => 'Access and modify network interface card configuration',
    license            => 'perl',
    build_requires => {
	'ExtUtils::CBuilder' => 0,
    },
    requires     => {
	'perl'                => '5.005',
    },
    );

$build->create_build_script();

# get rid of annoying warning from ExtUtils::ParseXS
my $sub = 's/\$\^W\s*=\s*1/\$^W = 0/';
system "perl -pi -e '$sub' Build";

exit 0;