File: Makefile.PL

package info (click to toggle)
libsys-info-driver-linux-perl 0.7911-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 252 kB
  • sloc: perl: 1,161; makefile: 2
file content (86 lines) | stat: -rw-r--r-- 1,915 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.033.
use strict;
use warnings;

use 5.010;

use ExtUtils::MakeMaker;

my %WriteMakefileArgs = (
  "ABSTRACT" => "Linux driver for Sys::Info",
  "AUTHOR" => "Burak Gursoy",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0
  },
  "DISTNAME" => "Sys-Info-Driver-Linux",
  "LICENSE" => "perl",
  "MIN_PERL_VERSION" => "5.010",
  "NAME" => "Sys::Info::Driver::Linux",
  "PREREQ_PM" => {
    "Config::General" => 0,
    "Sys::Info::Base" => "0.7801",
    "Unix::Processors" => 0,
    "parent" => 0
  },
  "TEST_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0,
    "File::Spec" => 0,
    "IO::Handle" => 0,
    "IPC::Open3" => 0,
    "Test::More" => 0,
    "Test::Sys::Info" => "0.20"
  },
  "VERSION" => "0.7911",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "Config::General" => 0,
  "ExtUtils::MakeMaker" => 0,
  "File::Spec" => 0,
  "IO::Handle" => 0,
  "IPC::Open3" => 0,
  "Sys::Info::Base" => "0.7801",
  "Test::More" => 0,
  "Test::Sys::Info" => "0.20",
  "Unix::Processors" => 0,
  "parent" => 0
);

# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040

# BEGIN dynamic

# This section is used/injected by dzil and not to be executed as a
# standalone program

# copy-paste from Sys::Info::Constants

die "OS unsupported\n" if $^O !~ m{linux}xmsi;

my @crucial = qw(
    /proc/cpuinfo
);

foreach my $file ( @crucial ) {
    next if -e $file;
    warn "You have a bogus Linux system which is missing $file\n";
    die "OS unsupported\n";
}

# END dynamic


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

WriteMakefile(%WriteMakefileArgs);