-
Notifications
You must be signed in to change notification settings - Fork 52
/
Makefile.PL
78 lines (75 loc) · 2.34 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
use v5.16;
use strict;
use warnings;
use ExtUtils::MakeMaker;
use FindBin ;
use File::Basename ;
use Cwd;
=pod
my $mydir = getcwd;
my $lexer_make = $FindBin::Bin . '/p5-Compiler-Lexer/Build.PL' ;
my $lexer_inst = $FindBin::Bin . '/p5-Compiler-Lexer/Build' ;
if (-e $lexer_make)
{
print "Running $lexer_make to build included Compiler::Lexer\n\n" ;
my $dir = dirname ($lexer_make) ;
chdir $dir ;
#system ("cd '$dir' && perl '$lexer_make'") and
my $rc ;
if (!($rc = system ('perl', $lexer_make)))
{
print "Install Compiler::Lexer\n\n" ;
$rc = system ($lexer_inst, 'install') ;
}
if ($rc)
{
warn "Cannot run perl Build.PL for Compiler::Lexer. You need to install Compiler::Lexer from Github (do not use version 0.22)" ;
}
chdir $mydir ;
}
=cut
WriteMakefile(
NAME => 'Perl::LanguageServer',
AUTHOR => q{grichter <[email protected]>},
VERSION_FROM => 'lib/Perl/LanguageServer.pm',
ABSTRACT_FROM => 'lib/Perl/LanguageServer.pm',
LICENSE => 'artistic_2',
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'https://github.com/richterger/Perl-LanguageServer.git',
web => 'https://github.com/richterger/Perl-LanguageServer',
},
bugtracker => {
web => 'https://github.com/richterger/Perl-LanguageServer/issues'
},
},
},
PL_FILES => {},
MIN_PERL_VERSION => '5.016',
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => '0',
},
BUILD_REQUIRES => {
'Test::More' => '0',
},
PREREQ_PM => {
'Moose' => '0',
'AnyEvent' => '0',
'IO::AIO' => '0',
'AnyEvent::AIO' => '0',
'Coro' => '0',
'JSON' => '0',
'Data::Dump' => '0',
'PadWalker' => '0',
'Scalar::Util' => '0',
'Class::Refresh' => '0',
'Compiler::Lexer' => '0.23',
'Hash::SafeKeys' => '0',
'Encode::Locale' => '0',
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Perl-LanguageServer-*' },
);