/
Makefile.PL
59 lines (54 loc) · 1.35 KB
/
Makefile.PL
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
use strict;
use warnings;
use Alien::Build::MM;
use ExtUtils::MakeMaker 6.76;
my %WriteMakefileArgs = (
'ABSTRACT' => 'Find or download and install rpm library',
'AUTHOR' => "Michal Josef \x{160}pa\x{10d}ek <skim\@cpan.org>",
'BUILD_REQUIRES' => {
'Alien::Build::MM' => '0.32',
'ExtUtils::MakeMaker' => '6.76',
},
'CONFIGURE_REQUIRES' => {
'Alien::Build::MM' => '0.32',
'Alien::Build::Plugin::Build::Make' => 0,
'Alien::Build::Plugin::PkgConfig::Negotiate' => 0,
'ExtUtils::MakeMaker' => '6.76',
},
'DISTNAME' => 'Alien-librpm',
'LICENSE' => 'bsd',
'META_MERGE' => {
'resources' => {
'bugtracker' => 'https://github.com/michal-josef-spacek/Alien-librpm/issues',
'repository' => 'https://github.com/michal-josef-spacek/Alien-librpm',
},
},
'NAME' => 'Alien::librpm',
'PREREQ_PM' => {
'Alien::Base' => 0,
'parent' => 0,
'strict' => 0,
'warnings' => 0,
},
( ! exists $ENV{CI} ? ( 'SIGN' => 1 ) : () ),
'TEST_REQUIRES' => {
'Test::Alien' => 0,
'Test::Alien::Diag' => 0,
'Test::More' => 0,
'Test::NoWarnings' => 0,
},
'VERSION' => '0.02',
'test' => {
'RECURSIVE_TEST_FILES' => 1,
}
);
my $abmm = Alien::Build::MM->new;
WriteMakefile($abmm->mm_args(%WriteMakefileArgs));
sub MY::postamble {
$abmm->mm_postamble(@_);
}
sub MY::install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}