File: Makefile.PL

package info (click to toggle)
i3-wm 4.25-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 7,712 kB
  • sloc: ansic: 30,153; perl: 19,229; sh: 70; makefile: 9
file content (37 lines) | stat: -rwxr-xr-x 924 bytes parent folder | download | duplicates (6)
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
#!/usr/bin/env perl
# vim:ts=4:sw=4:expandtab
use strict; use warnings;
use ExtUtils::MakeMaker;

WriteMakefile(
    NAME => 'i3-testsuite',
    MIN_PERL_VERSION => '5.010000', # 5.10.0
    PREREQ_PM => {
        'AnyEvent'     => 0,
        'X11::XCB'     => '0.12',
        'Inline'       => 0,
        'Inline::C'    => 0,
        'ExtUtils::PkgConfig' => 0,
        'Test::More'   => '0.94',
        'IPC::Run' => 0,
    },
    PM => {}, # do not install any files from this directory
    clean => {
        FILES => 'testsuite-* latest i3-cfg-for-*',
    },
    # This is a pure-Perl distribution:
    linkext => {
        LINKTYPE => '',
    },
);

package MY;
sub test { } # do not run the tests while installing

# do not rename the Makefile
sub clean {
    my $section = shift->SUPER::clean(@_);
    $section =~ s/^\t\Q$_\E\n$//m for
        '- $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL)';
    $section;
}