forked from vikasnkumar/nlp-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
executable file
·61 lines (59 loc) · 1.91 KB
/
Build.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
use strict;
use warnings;
use Module::Build;
my $nlppath = defined $ENV{NLPSTANFORD} ? $ENV{NLPSTANFORD} : 'data/stanford-parser-2010-11-30';
print "Using datafiles and jar files from $nlppath\n";
my @nlpfiles = qw(
stanford-parser.jar
englishPCFG.ser.gz
englishFactored.ser.gz
wsjPCFG.ser.gz
wsjFactored.ser.gz
);
my %nlpjava = map { "$nlppath/" . $_ => "lib/NLP/StanfordParser/$_" } @nlpfiles;
my $build = Module::Build->new(
module_name => 'NLP::Service',
dist_name => 'NLP-Service',
dist_author => 'Vikas Naresh Kumar <[email protected]>',
dist_abstract => 'A RESTful NLP Service',
license => 'perl',
create_license => 1,
create_readme => 1,
requires => {
'perl' => '5.10.0',
'common::sense' => 0,
'Carp' => 0,
'Getopt::Long' => 0,
'namespace::autoclean' => 0,
'Moose' => 0,
'Pod::Usage' => 0,
'Module::Refresh' => 0,
'Inline::Java' => '0.53',
'Dancer' => '1.3051',
'Dancer::Plugin::REST' => '0.06',
},
build_requires => {
'Test::More' => 0,
'Test::Moose' => 0,
'Dancer::Test' => 0,
'LWP::UserAgent' => 0,
'URI::Escape' => 0,
'YAML' => 0,
},
script_files => qw( script/nlpservice ),
install_path => { java => 'lib/NLP/StanfordParser/', },
java_files => \%nlpjava,
);
$build->add_build_element('java');
$build->add_to_cleanup(qw/_Inline *.bak/);
$build->create_build_script;
$build->dispatch('clean');
$build->dispatch('distmeta');
$build->dispatch('manifest');
$build->dispatch('build');
__END__
COPYRIGHT: 2011. Vikas Naresh Kumar.
AUTHOR: Vikas Naresh Kumar
DATE: 24th May 2011
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.