DTA-CAB

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

##----------------------------------------------------------------------
## Constants
my $VERSION = '1.115';

##----------------------------------------------------------------------
## Hacks

##-- workaround for irritating symlink-related errors on kira (ubuntu 16.04 LTS / EUMM v7.0401)
do "./find.hack" if (-e "./find.hack");


##----------------------------------------------------------------------
## MAIN
##----------------------------------------------------------------------
WriteMakefile
  (
   NAME		=> 'DTA::CAB',
   AUTHOR       => 'Bryan Jurish <moocow@cpan.org>',
   ABSTRACT	=> '"Cascaded Analysis Broker" for robust linguistic analysis',
   VERSION	=> $VERSION,

   PREREQ_PM    => {
		    'Gfsm'     => 0.0216,
		    'Gfsm::XL' => 0.03, ##-- 0.02 works too, but doesn't support binary storage of analyzer configs
		    'Unicruft' => 0.03,
		    #'moot' => 0.02, ##-- moot/swig
		    'Moot' => 0.01,  ##-- moot/xs
		    'Lingua::TT' => 0.07, ##-- for Lingua::TT::Dict, DB_File, CDB_File
		    'DTA::TokWrap' => 0, ##-- for DTA::CAB::Format::TEI, DTA::CAB::Format::TEIws [version parsing doesn't work]
		    'GermaNet::Flat' => 0.01, ##-- for GermaNet::* analyzers
		    ##--
		    'Unicode::Normalize' =>0, # 1.02
		    'Encode'=>0,
		    'File::Basename'=>0,
		    'Getopt::Long'=>0,
		    'LWP::Protocol::http::SocketUnixAlt'=>0, #0.0204
		    'Pod::Usage'=>0,
		    'Storable'=>0,
		    'Time::HiRes'=>0,
		    'Text::LevenshteinXS'=>0, ##-- for Analyzer::MootSub best-lemma heuristics
		    ##--
		    #File::Queue =>0,
		    'File::Temp'  =>0,
		    'File::Path'  =>0, ##-- for rmtree(), make_path()
		    'File::Map'   =>0, ##-- for regex-based blockScan()
		    ##--
		    'DB_File' =>0,
		    'CDB_File' =>0,
		    'JSON::XS' =>0,
		    #'YAML::XS' =>0,  ##-- debian package libyaml-libyaml-perl; optional
		    'XML::LibXML' => 2.0001,
		    'Template' =>0,
		    'LWP::UserAgent' =>0,
		    'HTTP::Daemon' =>0,
		    'HTTP::Daemon::UNIX' =>0, #0.06
		    ##--
		    'Log::Log4perl' => 1.07,
		    'Unicode::String' => 2.09,
		    'RPC::XML' => 0.59,
		    ##
		    'Scalar::Util' => 0, ##-- for weaken()
		    ##
		    #'Log::Dispatch' => 2.22, ##-- for cab servers, FileRotate
		    ##--
		    #'DocClassify' => 0.04,
		    #'Lingua::LangId' => 0.01,
		    ##--
		    #'Text::Unidecode' => 0.04,
		    #'Tie::Cache'=>0,
		    #'Unicode::UCD' =>0,
		    #'Unicode::CharName' =>0,
		    ##--
		    'Test::More' => 0,
		   },

   EXE_FILES   => [glob('dta-cab-*.perl')],
  );

##-----------------------------------------------------------------------
## Extensions
##-----------------------------------------------------------------------

##---------------------------------------------------------------
## maintainer-only: Version.pm
if (-d ".svn") {
  ##-- write CAB/Version.pm
  no warnings;
  print STDERR "Updating CAB/Version.pm\n";

  #my $svnroot = (map {/^URL\: (.*)$/ ? $1 : qw()} `svn info . 2>/dev/null`)[0];
  my $SVNVERSION = `svnversion .`;
  chomp($SVNVERSION);
  $SVNVERSION = "unknown version" if (!$SVNVERSION);

  open(VERSION_PM,">CAB/Version.pm")
    or die("$0: could not open CAB/Version.pm for write: $!");
  print VERSION_PM <<EOF;
##--- automatically generated file: DO NOT EDIT! ---
##
## File: DTA/CAB/Version.pm
## Description: DTA::CAB version constants (auto-generated)
##
package DTA::CAB::Version;
\$DTA::CAB::VERSION = '$VERSION';
\$DTA::CAB::SVNVERSION = '$SVNVERSION';
1;
EOF
} else {
  warn("This does not appear to be an SVN checkout -- NOT updating CAB/Version.pm\n");
}

##---------------------------------------------------------------
sub MY::dist_basics {
  package MY;
  my $inherited = shift->SUPER::dist_basics(@_);
  $inherited =~ s{-e (\S+)}{-e 'do "./find.hack" if (-e "./find.hack"); $1'}g;
  return $inherited;
}

##---------------------------------------------------------------
sub MY::constants {



( run in 1.356 second using v1.01-cache-2.11-cpan-0d23b851a93 )