moved stock.pl code to the stock controller
[sgn.git] / Build.PL
blob67ae25e54d3f24c9aad405c7da7a84e42874a828
1 use Module::Build;
2 my $class = Module::Build->subclass(
3     class => 'Module::Build::SGNSite',
4     code  => <<'SUBCLASS',
6 # build action just runs make on programs
7 sub ACTION_build {
8    my $self = shift;
9    $self->SUPER::ACTION_build(@_);
10    system "make -C programs";
11    $? and die "make failed\n";
14 # override install to just copy the whole dir into the install_base
15 sub ACTION_install {
16    my $self = shift;
18    # installation is just copying the entire dist into
19    # install_base/sgn
20    require File::Spec;
21    my $tgt_dir = File::Spec->catdir($self->install_base,'sgn');
22    system 'cp', '-rl', '.', $tgt_dir;
23    $? and die "SGN site copy failed\n";
26 sub ACTION_clean {
27    shift->SUPER::ACTION_clean(@_);
28    system "make -C programs clean";
29    $? and die "SGN site copy failed\n";
31 SUBCLASS
34 #my $class = 'Module::Build';
35 my $build = $class->new(
37     dist_name          => 'SGN',
38     license            => 'perl',
39     create_makefile_pl => 'passthrough',
41     module_name        => 'SGN::Context',
43     # current version of our core libraries distribution
44     dist_version => '0.1',
45     dist_author  => 'Lukas Mueller',
46     dist_abstract =>
47 'The code and content behind the Sol Genomics Network main website, http://solgenomics.net',
49     recursive_test_files => 1,
51     build_requires => {
52         'Class::MethodMaker'             => 0,
53         'File::Temp'                     => 0,
54         'HTML::Lint'                     => 0,
55         'Test::JSON'                     => 0,
56         'List::Util'                     => 0,
57         'Test::More'                     => 0,
58         'Test::Most'                     => 0,
59         'Test::WWW::Mechanize'           => 0,
60         'Test::WWW::Mechanize::Catalyst' => '0.50',
61         'Test::WWW::Selenium'            => 0,
62         'Test::MockObject'               => 0,
63     },
64     requires => {
65 <<<<<<< HEAD
66         'perl'                => '5.10.0',
67         'autodie'             => 0,
68         'IPC::System::Simple' => 0,         #< required for autodie :all
69         'Apache::DBI'         => 0,
71         'Bio::Chado::Schema' => '0.05900',
73         'Bio::Root::Version'     => '1.006001',
74         'Bio::Graphics::FeatureFile' => 0,
76         'Cache::File' => 0,
79         'Catalyst::Runtime'                => '5.80024',
80         'Catalyst::Controller::CGIBin'     => '0.029',
81         'Catalyst::Action::RenderView'     => 0,
82         'Catalyst::Plugin::ConfigLoader'   => 0,
83         'Catalyst::Plugin::Static::Simple' => 0,
84         'Catalyst::View::Email'            => 0,
85         'Catalyst::View::HTML::Mason'      => 0,
86         'Catalyst::View::JavaScript::Minifier::XS'
87                                            => '2.100000',
88         'CatalystX::GlobalContext'         => 0,
90         'Config::JFDI'                     => 0,
91         'CGI'                              => 0,
93         'Data::Page' => 0,
94         'Data::Visitor::Callback' => 0,
96         'DBIx::Class'             => 0,
97         'DBIx::Connector'         => 0,
98         'File::Flock'             => 0,
99         'File::NFSLock'           => 0,
100         'File::Slurp'             => 0,
101         'File::Temp'              => 0,
102         'Number::Bytes::Human'    => '0.07',
103         'GD'                      => 0,
104         'GD::Graph::Map'          => 0,
105         'GD::Graph::points'       => 0,
106         'GD::Text'                => 0,
107         'Hash::Merge'             => 0,
108         'HTML::Entities'          => 0,
109         'HTML::FormFu'            => 0,
110         'HTML::Mason'             => 0,
111         'HTML::TreeBuilder::XPath' => 0,
112         'IO::String'              => 0,
113         'Image::Size'             => 0,
114         'JSAN::ServerSide'        => '==0.06',
115         'JSON'                    => 0,
116         'JSON::XS'                => '2.24',
117         'JSON::Any'               => 0,
118         'List::Util'              => 0,
119         'LWP::UserAgent'          => 0,
120         'Mail::Sendmail'          => 0,
121         'Math::Round::Var'        => 0,
122         'Memoize'                 => 0,
123         'Module::Build'           => '0.36',
124         'Module::Find'            => 0,
125         'Module::Pluggable::Object' => 0,
126         'Moose'                   => 0,
127         'MooseX::Declare'         => 0,
128         'MooseX::Method::Signatures' => '0.30',
129         'MooseX::Types::Path::Class' => 0,
130         'MooseX::Types::URI'      => 0,
131         'MooseX::Singleton'       => 0,
132         'Number::Format'          => 0,
133         'namespace::autoclean'    => 0,
134         'SOAP::Transport::HTTP'   => 0,
135         'Statistics::Descriptive' => 0,
136         'Storable'                => 0,
137         'Test::More'              => 0,
138         'Test::Class'             => 0,
139         'Test::WWW::Mechanize'    => 0,
140         'Test::WWW::Mechanize::Catalyst'
141                                   => 0,
142         'Text::ParseWords'        => 0,
143         'Tie::Function'           => 0,
144         'Tie::UrlEncoder'         => 0,
145         'Time::HiRes'             => 0,
146         'Try::Tiny'               => 0,
147         'URI'                     => 0,
148         'URI::Escape'             => 0,
149         'URI::FromHash'           => 0,
150         'XML::Generator'          => 0,
151         'XML::Twig'               => 0,
152         'YAML::Any'               => 0,
153         'WWW::Mechanize::TreeBuilder' => 0,
154 =======
155         'perl'                                     => '5.10.0',
156         'autodie'                                  => 0,
157         'IPC::System::Simple'                      => 0,         #< required for autodie :all
158         'Apache::DBI'                              => 0,
159         'Bio::Chado::Schema'                       => '0.05900',
160         'Bio::Root::Version'                       => '1.006001',
161         'Bio::Graphics::FeatureFile'               => 0,
162         'Cache::File'                              => 0,
163         'Catalyst::Runtime'                        => '5.80024',
164         'Catalyst::Controller::CGIBin'             => '0.029',
165         'Catalyst::Action::RenderView'             => 0,
166         'Catalyst::Plugin::ConfigLoader'           => 0,
167         'Catalyst::Plugin::Static::Simple'         => 0,
168         'Catalyst::View::Email'                    => 0,
169         'Catalyst::View::HTML::Mason'              => 0,
170         'Catalyst::View::JavaScript::Minifier::XS' => '2.100000',
171         'CatalystX::GlobalContext'                 => 0,
172         'Config::JFDI'                             => 0,
173         'CGI'                                      => 0,
174         'Data::Page'                               => 0,
175         'Data::Visitor::Callback'                  => 0,
176         'DBIx::Class'                              => 0,
177         'DBIx::Connector'                          => 0,
178         'File::Flock'                              => 0,
179         'File::NFSLock'                            => 0,
180         'File::Slurp'                              => 0,
181         'File::Temp'                               => 0,
182         'Number::Bytes::Human'                     => '0.07',
183         'GD'                                       => 0,
184         'GD::Graph::Map'                           => 0,
185         'GD::Graph::points'                        => 0,
186         'GD::Text'                                 => 0,
187         'Hash::Merge'                              => 0,
188         'HTML::Entities'                           => 0,
189         'HTML::FormFu'                             => 0,
190         'HTML::Mason'                              => 0,
191         'HTML::TreeBuilder::XPath'                 => 0,
192         'IO::String'                               => 0,
193         'Image::Size'                              => 0,
194         'JSAN::ServerSide'                         => '==0.06',
195         'JSON'                                     => 0,
196         'JSON::XS'                                 => '2.24',
197         'JSON::Any'                                => 0,
198         'List::Util'                               => 0,
199         'LWP::UserAgent'                           => 0,
200         'Mail::Sendmail'                           => 0,
201         'Math::Round::Var'                         => 0,
202         'Memoize'                                  => 0,
203         'Module::Build'                            => '0.36',
204         'Module::Find'                             => 0,
205         'Module::Pluggable::Object'                => 0,
206         'Moose'                                    => 0,
207         'Modern::Perl'                             => 0,
208         'MooseX::Declare'                          => 0,
209         'MooseX::Method::Signatures'               => '0.30',
210         'MooseX::Types::Path::Class'               => 0,
211         'MooseX::Types::URI'                       => 0,
212         'MooseX::Singleton'                        => 0,
213         'Number::Format'                           => 0,
214         'namespace::autoclean'                     => 0,
215         'SOAP::Transport::HTTP'                    => 0,
216         'Statistics::Descriptive'                  => 0,
217         'Storable'                                 => 0,
218         'Test::More'                               => 0,
219         'Test::Class'                              => 0,
220         'Test::WWW::Mechanize'                     => 0,
221         'Test::WWW::Mechanize::Catalyst'           => 0,
222         'Text::ParseWords'                         => 0,
223         'Tie::Function'                            => 0,
224         'Tie::UrlEncoder'                          => 0,
225         'Time::HiRes'                              => 0,
226         'Try::Tiny'                                => 0,
227         'URI'                                      => 0,
228         'URI::Escape'                              => 0,
229         'URI::FromHash'                            => 0,
230         'XML::Generator'                           => 0,
231         'XML::Twig'                                => 0,
232         'YAML::Any'                                => 0,
233         'WWW::Mechanize::TreeBuilder'              => 0,
234     },
236 $build->create_build_script;