File: Makefile.PL

package info (click to toggle)
libterm-size-any-perl 0.001-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 112 kB
  • ctags: 3
  • sloc: perl: 24; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,095 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

use 5.006;
use strict;
use warnings;

use ExtUtils::MakeMaker 6.31; # XXX yes, that's not a nice thing to do

# one of Term::Size, Term::Size::Perl, Term::Size::ReadKey, 
# or Term::Size::Win32 should be available

my %prereqs;
if ( $^O eq 'MSWin32' ) {
    %prereqs = ( 'Term::Size::Win32' => 0 );

} else {
    #my @modules = qw( Term::Size::Perl Term::Size Term::Size::ReadKey );
    my @modules = qw( Term::Size::Perl );
    %prereqs = map { $_ => 0 } @modules;
    ## FIXME yep, I know - we don't need all these three

}

WriteMakefile(
    NAME => 'Term::Size::Any',
    VERSION_FROM => 'lib/Term/Size/Any.pm',
    PREREQ_PM => {
        #Best                        => 0,
        %prereqs,

        # build_requires
        'Test::More'                => 0,
        'Module::Load::Conditional' => 0,
        'Devel::Hide'               => 0,
    },
    #recommends => {
    #    'Test::Pod::Coverage' => 1.04,
    #    'Test::Pod'           => 1.18,
    #}
    ABSTRACT_FROM => 'lib/Term/Size/Any.pod',
    AUTHOR => 'Adriano R. Ferreira <ferreira@cpan.org>',
    LICENSE => 'perl',

);