3 #use ExtUtils::MakeMaker;
4 use inc::Module::Install;
8 version_from 'lib/WebPAC.pm';
12 requires 'File::Slurp';
13 requires 'Log::Log4perl' => '1.02';
16 #requires 'DBM::Deep';
18 requires 'Time::HiRes';
19 requires 'File::Temp';
20 requires 'List::Util';
23 requires 'File::Path';
24 requires 'Biblio::Isis' => '0.24';
25 requires 'MARC::Fast' => '0.11';
26 requires 'List::Util';
27 requires 'MARC::Record' => '2.0';
28 requires 'Data::Dump';
29 requires 'MARC::Lint' => '1.43';
30 requires 'Business::ISBN' => '2.02'; # WebPAC::Normalize::ISBN
32 requires 'XML::LibXML';
33 requires 'Pod::Usage';
34 requires 'Class::Accessor';
36 requires 'File::Spec';
39 'WebPAC::Input::XML' => [
44 'WebPAC::Input::PDF' => [
48 'WebPAC::Input::Excel' => [
50 'Spreadsheet::ParseExcel',
52 'WebPAC::Input::CSV' => [
56 'WebPAC::Input::DBF' => [
60 'WebPAC::Input::OAI' => [
64 'WebPAC::Output::Estraier' => [
66 'Search::Estraier' => 0.06,
68 'WebPAC::Output::Webpacus and WebPAC::Output::Jifty' => [
72 'WebPAC::Output::Excel' => [
74 'Spreadsheet::WriteExcel' => 2.14,
76 'WebPAC::Output::KinoSearch' => [
80 'WebPAC::Output::SWISH' => [
84 'WebPAC::Output::CouchDB' => [
88 'WebPAC::Output::Sorted' => [
92 'WebPAC::Output::Riak' => [
96 'Parallel execution (probably broken)' => [
100 'CGI web interface' => [
106 'Text::Unaccent::PurePerl',
107 'HTML::FillInForm::Lite',
111 build_requires 'Test::More';
113 clean_files('WebPAC-* pod2html Makefile tags');
120 return <<'MAKE_MORE';
123 # no need to include --limit here!
124 #profile_perl=./run.pl --only ffps --stats
125 #profile_perl=./run.pl --only ffps/libri --validate conf/validate/ffps-libri
126 #profile_perl=./run.pl --only ffps --validate-delimiters conf/validate/delimiters/ffps
127 profile_perl=./run.pl --only ffps --validate conf/validate/ffps-libri --validate-delimiters conf/validate/delimiters/ffps
131 test -e $(HTML_DIR) && rm -Rf "$(HTML_DIR)" || true
134 # add additional html documents
135 test ! -z "`which svn2html.pl`" && svk update && svn2html.pl > $(HTML_DIR)/Changes.html || true
137 test -e $(HTML_DIR)/pod.css || ln -s ../pod.css $(HTML_DIR)/
139 test ! -z "`which allpod2xhtml.pl`" && allpod2xhtml.pl --frames="WebPAC documentation" --existing --css=pod.css ./lib $(HTML_DIR)
142 svn update && svn -v log > Changes
145 ctags *.p[ml] */*.p[ml] */*/*.p[ml]
148 svn2cvs.pl file:///home/dpavlin/private/svn/webpac2/trunk/ :ext:dpavlin@webpac.cvs.sourceforge.net:/cvsroot/webpac webpac2
151 test ! -e conf/config.yml && ln -s /data/Webpacus/config.yml conf/ || true
152 #perl -c conf/normalize/*.pl
153 perl -c conf/normalize/*.pl 2>&1 | grep 'conf/normalize' | grep -v 'OK' | sed -e 's#^.*conf/normalize#conf/normalize#' -e 's#,##' | awk '{ print "+" $3 " " $1 }' | xargs -i echo vi {}
157 ./run.pl --clean --limit 100
164 perl -d:DProf $(profile_perl) --limit 250 && dprofpp -O 50 > profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
167 perl -d:SmallProf $(profile_perl) --limit 100 && sort -k 2nr,2 smallprof.out | vi -R -