-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
47 lines (43 loc) · 1.42 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
# Generated by git-ship. See 'git-ship --man' for help or https://github.com/jhthorsen/app-git-ship
use strict;
use warnings;
use ExtUtils::MakeMaker;
# perl Makefile.PL (from git repo) copies 'perlbrewise-spec' -> 'bin/perlbrewise-spec'
if (-e 'perlbrewise-spec') {
for my $file ("bin/perlbrewise-spec") {
print STDERR "Generating $file from perlbrewise-spec\n";
open my $in, "<perlbrewise-spec" or die $!;
open my $out, ">$file" or die $!;
while (<$in>) {
s|^#!/usr/bin/env perl|#!perl|; # so MakeMaker can fix it
print $out $_;
}
}
}
WriteMakefile(
NAME => 'Devel::IPerl::Plugin::Perlbrew',
AUTHOR => 'Roy Storey <[email protected]>',
LICENSE => 'artistic_2',
ABSTRACT_FROM => 'lib/Devel/IPerl/Plugin/Perlbrew.pm',
VERSION_FROM => 'lib/Devel/IPerl/Plugin/Perlbrew.pm',
EXE_FILES => [qw(bin/perlbrewise-spec)],
META_MERGE => {
resources => {
bugtracker => 'https://github.com/kiwiroy/Devel-IPerl-Plugin-Perlbrew/issues',
homepage => 'https://github.com/kiwiroy/Devel-IPerl-Plugin-Perlbrew',
repository => 'https://github.com/kiwiroy/Devel-IPerl-Plugin-Perlbrew.git',
},
},
BUILD_REQUIRES => {
'Test::More' => '0.88'
}
,
PREREQ_PM => {
'App::cpanminus' => '0',
'App::perlbrew' => '0',
'Devel::IPerl' => '0.009',
'perl' => 'v5.10.0'
}
,
test => {TESTS => (-e 'META.yml' ? 't/*.t' : 't/*.t xt/*.t')},
);