edited typos in POD..
[sgn.git] / Build.PL
blobec912e42f2d6d8c8ad2c7449409cf39d3fd89043
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;
17    $self->SUPER::ACTION_install(@_);
19    my @install_dirs = qw|cgi-bin conf documents mason programs support_data t features js |;
21    require File::Spec;
22    my $tgt_dir = File::Spec->catdir($self->install_base,'sgn');
23    mkdir $tgt_dir;
24    system 'cp', '-rl', @install_dirs => $tgt_dir;
25    $? and die "SGN site copy failed\n";
28 sub ACTION_clean {
29    shift->SUPER::ACTION_clean(@_);
30    system "make -C programs clean";
31    $? and die "SGN site copy failed\n";
33 SUBCLASS
36 #my $class = 'Module::Build';
37 my $build = $class->new(
39     dist_name          => 'SGN',
40     license            => 'perl',
41     create_makefile_pl => 'passthrough',
43     module_name        => 'SGN::Context',
45     # current version of our core libraries distribution
46     dist_version => '0.1',
47     dist_author  => 'Lukas Mueller',
48     dist_abstract =>
49 'The code and content behind the Sol Genomics Network main website, http://solgenomics.net',
51     recursive_test_files => 1,
53     build_requires => {
54         'Class::MethodMaker' => 0,
56         #         'CXGN::DB::Connection' => 0,
57         #         'CXGN::Genomic::Clone' => 0,
58         #         'CXGN::Page' => 0,
59         #         'CXGN::People::Person' => 0,
60         #         'CXGN::VHost' => 0,
61         #         'CXGN::VHost::Test' => 0,
62         'File::Temp'           => 0,
63         'HTML::Lint'           => 0,
64         'JSON'                 => 0,
65         'List::Util'           => 0,
66         'Test::More'           => 0,
67         'Test::Most'           => 0,
68         'Test::WWW::Mechanize' => 0,
69         'Test::WWW::Selenium'  => 0,
70     },
71     requires => {
72         'perl'                => '5.6.1',
73         'autodie'             => 0,
74         'IPC::System::Simple' => 0,         #< required for autodie :all
75         'Apache::DBI'         => 0,
77         #        'Apache2::Request' => 0,
78         'Bio::Chado::Schema' => '0.05800',
80         'Bio::Root::Version'     => '1.006001',
81         #         'Bio::AlignIO' => 0,
82         #         'Bio::DB::GenBank' => 0,
83         #         'Bio::GMOD::Blast::Graph' => 0,
84         #         'Bio::Range' => 0,
85         #         'Bio::Restriction::Analysis' => 0,
86         #         'Bio::SearchIO' => 0,
87         #         'Bio::Seq' => 0,
88         #         'Bio::SeqIO' => 0,
89         #         'Bio::Tools::Primer3' => 0,
90         #         'Bio::Tools::Run::Primer3' => 0,
91         #         'Bio::Graphics::Gel' => 0,
93         'Bio::Graphics::FeatureFile' => 0,
95         'Cache::File' => 0,
97         'CGI'                 => 0,
98         'CGI::Carp::DebugScreen' => '0.16',
100         #         'CXGN::Accession' => 0,
101         #         'CXGN::Accession::Tools' => 0,
102         #         'CXGN::Alignment' => 0,
103         #         'CXGN::Apache::Error' => 0,
104         #         'CXGN::Apache::Request' => 0,
105         #         'CXGN::BioTools::AGP' => 0,
106         #         'CXGN::BioTools::CapsDesigner2' => 0,
107         #         'CXGN::BioTools::SearchIOHTMLWriter' => 0,
108         #         'CXGN::BlastDB' => 0,
109         #         'CXGN::BlastWatch' => 0,
110         #         'CXGN::Bulk' => 0,
111         #         'CXGN::CDBI::Auto::SGN::Organism' => 0,
112         #         'CXGN::CDBI::Auto::SGNSubmit::Facility' => 0,
113         #         'CXGN::CDBI::Auto::SGNSubmit::Library' => 0,
114         #         'CXGN::Chado::CV' => 0,
115         #         'CXGN::Chado::Cvterm' => 0,
116         #         'CXGN::Chado::Dbxref' => 0,
117         #         'CXGN::Chado::Feature' => 0,
118         #         'CXGN::Chado::Ontology' => 0,
119         #         'CXGN::Chado::Organism' => 0,
120         #         'CXGN::Chado::Phenotype' => 0,
121         #         'CXGN::Chado::Pubauthor' => 0,
122         #         'CXGN::Chado::Publication' => 0,
123         #         'CXGN::Chromatogram' => 0,
124         #         'CXGN::Contact' => 0,
125         #         'CXGN::Cookie' => 0,
126         #         'CXGN::Cview' => 0,
127         #         'CXGN::Cview::ChrLink' => 0,
128         #         'CXGN::Cview::ChrMarkerImage' => 0,
129         #         'CXGN::Cview::Chromosome::Vector' => 0,
130         #         'CXGN::Cview::Chromosome_viewer' => 0,
131         #         'CXGN::Cview::Map::SGN::User' => 0,
132         #         'CXGN::Cview::Map::Tools' => 0,
133         #         'CXGN::Cview::Map_overviews' => 0,
134         #         'CXGN::Cview::Map_overviews::Generic' => 0,
135         #         'CXGN::Cview::Map_overviews::ProjectStats' => 0,
136         #         'CXGN::Cview::MapFactory' => 0,
137         #         'CXGN::Cview::MapImage' => 0,
138         #         'CXGN::Cview::Marker::RangeMarker' => 0,
139         #         'CXGN::Cview::Marker::VectorFeature' => 0,
140         #         'CXGN::Cview::Utils' => 0,
141         #         'CXGN::Cview::VectorViewer' => 0,
142         #         'CXGN::Cvterms' => 0,
143         #         'CXGN::DB::Connection' => 0,
144         #         'CXGN::DB::ModifiableI' => 0,
145         #         'CXGN::DB::Object' => 0,
146         #         'CXGN::DB::PhenoPopulation' => 0,
147         #         'CXGN::DB::Physical' => 0,
148         #         'CXGN::Debug' => 0,
149         #         'CXGN::Feed' => 0,
150         #         'CXGN::Fish' => 0,
151         #         'CXGN::Garbage::Sequence' => 0,
152         #         'CXGN::Genomic' => 0,
153         #         'CXGN::Genomic::Chromat' => 0,
154         #         'CXGN::Genomic::Clone' => 0,
155         #         'CXGN::Genomic::CloneIdentifiers' => 0,
156         #         'CXGN::Genomic::CloneNameParser' => 0,
157         #         'CXGN::Genomic::GSS' => 0,
158         #         'CXGN::Genomic::Library' => 0,
159         #         'CXGN::Genomic::Search::Clone' => 0,
160         #         'CXGN::Genomic::Tools' => 0,
161         #         'CXGN::Glossary' => 0,
162         #         'CXGN::Graphics::BlastGraph' => 0,
163         #         'CXGN::Image' => 0,
164         #         'CXGN::Image::GDImage' => 0,
165         #         'CXGN::Insitu' => 0,
166         #         'CXGN::Insitu::DB' => 0,
167         #         'CXGN::Insitu::Experiment' => 0,
168         #         'CXGN::Insitu::ExperimentSearch' => 0,
169         #         'CXGN::Insitu::Image' => 0,
170         #         'CXGN::Insitu::Organism' => 0,
171         #         'CXGN::Insitu::Primer' => 0,
172         #         'CXGN::Insitu::Probe' => 0,
173         #         'CXGN::Insitu::Tag' => 0,
174         #         'CXGN::Insitu::Toolbar' => 0,
175         #         'CXGN::ITAG::Pipeline' => 0,
176         #         'CXGN::ITAG::Release' => 0,
177         #         'CXGN::Login' => 0,
178         #         'CXGN::Map' => 0,
179         #         'CXGN::Map::Tools' => 0,
180         #         'CXGN::Marker' => 0,
181         #         'CXGN::Marker::Search' => 0,
182         #         'CXGN::Marker::SNP::Schema' => 0,
183         #         'CXGN::Marker::SNP::Snp' => 0,
184         #         'CXGN::Marker::Tools' => 0,
185         #         'CXGN::Metadata' => 0,
186         #         'CXGN::MOBY::LocalServices' => 0,
187         #         'CXGN::Page' => 0,
188         #         'CXGN::Page::Form::EditableCheckbox' => 0,
189         #         'CXGN::Page::Form::SimpleFormPage' => 0,
190         #         'CXGN::Page::FormattingHelpers' => 0,
191         #         'CXGN::Page::Secretary' => 0,
192         #         'CXGN::Page::Toolbar::SGN' => 0,
193         #         'CXGN::Page::UserPrefs' => 0,
194         #         'CXGN::Page::Widgets' => 0,
195         #         'CXGN::People' => 0,
196         #         'CXGN::People::BACStatusLog' => 0,
197         #         'CXGN::People::Forum' => 0,
198         #         'CXGN::People::Login' => 0,
199         #         'CXGN::People::PageComment' => 0,
200         #         'CXGN::People::Person' => 0,
201         #         'CXGN::People::UserMap' => 0,
202         #         'CXGN::People::UserMapData' => 0,
203         #         'CXGN::Phenome' => 0,
204         #         'CXGN::Phenome::Allele' => 0,
205         #         'CXGN::Phenome::AlleleSynonym' => 0,
206         #         'CXGN::Phenome::DbxrefType' => 0,
207         #         'CXGN::Phenome::GenericGenePage' => 0,
208         #         'CXGN::Phenome::Individual' => 0,
209         #         'CXGN::Phenome::Individual::IndividualDbxref' => 0,
210         #         'CXGN::Phenome::Individual::IndividualDbxrefEvidence' => 0,
211         #         'CXGN::Phenome::Locus' => 0,
212         #         'CXGN::Phenome::Locus::LinkageGroup' => 0,
213         #         'CXGN::Phenome::Locus::LocusDbxrefEvidence' => 0,
214         #         'CXGN::Phenome::Locus::LocusPage' => 0,
215         #         'CXGN::Phenome::Locus::LocusRanking' => 0,
216         #         'CXGN::Phenome::LocusDbxref' => 0,
217         #         'CXGN::Phenome::LocusGroup' => 0,
218         #         'CXGN::Phenome::LocusgroupMember' => 0,
219         #         'CXGN::Phenome::LocusSynonym' => 0,
220         #         'CXGN::Phenome::Main' => 0,
221         #         'CXGN::Phenome::Population' => 0,
222         #         'CXGN::Phenome::PopulationDbxref' => 0,
223         #         'CXGN::Phenotypes' => 0,
224         #         'CXGN::Phylo::Alignment' => 0,
225         #         'CXGN::Phylo::Alignment::Member' => 0,
226         #         'CXGN::Phylo::File' => 0,
227         #         'CXGN::Phylo::Parser' => 0,
228         #         'CXGN::Phylo::Tree' => 0,
229         #         'CXGN::Phylo::Tree_browser' => 0,
230         #         'CXGN::Publication' => 0,
231         #         'CXGN::Publish' => 0,
232         #         'CXGN::Scrap' => 0,
233         #         'CXGN::Scrap::AjaxPage' => 0,
234         #         'CXGN::Search::CannedForms' => 0,
235         #         'CXGN::Searches::Family' => 0,
236         #         'CXGN::Searches::Images' => 0,
237         #         'CXGN::Searches::Library' => 0,
238         #         'CXGN::Searches::People' => 0,
239         #         'CXGN::Secretary::Family' => 0,
240         #         'CXGN::Secretary::Gene' => 0,
241         #         'CXGN::Secretary::Query' => 0,
242         #         'CXGN::Sunshine::Browser' => 0,
243         #         'CXGN::Sunshine::Node' => 0,
244         #         'CXGN::Tag' => 0,
245         #         'CXGN::TomatoGenome::BACPublish' => 0,
246         #         'CXGN::TomatoGenome::BACSubmission' => 0,
247         #         'CXGN::Tools::Entrez' => 0,
248         #         'CXGN::Tools::FeatureFetch' => 0,
249         #         'CXGN::Tools::File' => 0,
250         #         'CXGN::Tools::File::Text' => 0,
251         #         'CXGN::Tools::Gene' => 0,
252         #         'CXGN::Tools::Identifiers' => 0,
253         #         'CXGN::Tools::List' => 0,
254         #         'CXGN::Tools::Onto' => 0,
255         #         'CXGN::Tools::Organism' => 0,
256         #         'CXGN::Tools::Param' => 0,
257         #         'CXGN::Tools::Pubmed' => 0,
258         #         'CXGN::Tools::Run' => 0,
259         #         'CXGN::Tools::Script' => 0,
260         #         'CXGN::Tools::Text' => 0,
261         #         'CXGN::Tools::WebImageCache' => 0,
262         #         'CXGN::Transcript::CDS' => 0,
263         #         'CXGN::Transcript::EST' => 0,
264         #         'CXGN::Transcript::Library' => 0,
265         #         'CXGN::Transcript::Unigene' => 0,
266         #         'CXGN::Transcript::UnigeneBuild' => 0,
267         #         'CXGN::Unigene::Search' => 0,
268         #         'CXGN::Unigene::Tools' => 0,
269         #         'CXGN::UserList::Hotlist' => 0,
270         #         'CXGN::UserPrefs' => 0,
271         #         'CXGN::VHost' => 0,
272         #        'DBI' => 0,
273         'DBIx::Class'             => 0,
274         'DBIx::Connector'         => 0,
275         'File::Flock'             => 0,
276         'File::NFSLock'           => 0,
277         'File::Temp'              => 0,
278         'Number::Bytes::Human'    => '0.07',
279         'GD'                      => 0,
280         'GD::Graph::Map'          => 0,
281         'GD::Graph::points'       => 0,
282         'GD::Text'                => 0,
283         'HTML::Entities'          => 0,
284         'HTML::Mason'             => 0,
285         'IO::String'              => 0,
286         'Image::Size'             => 0,
287         'JSAN::ServerSide'        => '==0.06',
288         'JSON'                    => 0,
289         'JSON::XS'                => '2.24',
290         'JSON::Any'               => 0,
291         'List::Util'              => 0,
292         'LWP::UserAgent'          => 0,
293         'Mail::Sendmail'          => 0,
294         'Math::Round::Var'        => 0,
295         'Memoize'                 => 0,
296         'Module::Build'           => '0.36',
297         'Module::Find'            => 0,
298         'Module::Pluggable::Object' => 0,
299         'Moose'                   => 0,
300         'MooseX::Declare'         => 0,
301         'MooseX::Method::Signatures' => '0.30',
302         'MooseX::Types::Path::Class' => 0,
303         'MooseX::Types::URI'      => 0,
304         'MooseX::Singleton'       => 0,
305         'Number::Format'          => 0,
306         'namespace::autoclean'    => 0,
307         'SOAP::Transport::HTTP'   => 0,
308         'Statistics::Descriptive' => 0,
309         'Storable'                => 0,
310         'Test::More'              => 0,
311         'Test::Class'             => 0,
312         'Test::WWW::Mechanize'    => 0,
313         'Text::ParseWords'        => 0,
314         'Tie::Function'           => 0,
315         'Tie::UrlEncoder'         => 0,
316         'Time::HiRes'             => 0,
317         'Try::Tiny'               => 0,
318         'URI'                     => 0,
319         'URI::Escape'             => 0,
320         'URI::FromHash'           => 0,
321         'XML::Generator'          => 0,
322         'XML::Twig'               => 0,
323         'YAML::Any'               => 0,
324         'File::Slurp'             => 0,
325     },
327 $build->create_build_script;