File: Makefile.PL

package info (click to toggle)
libbiblio-thesaurus-perl 0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 340 kB
  • sloc: perl: 1,945; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,060 bytes parent folder | download | duplicates (4)
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
use ExtUtils::MakeMaker;
use 5.010;
my @scripts = ('bin/thesaurus2any',
	       'bin/thesaurus2htmls',
	       'bin/tag2thesaurus',
	       'bin/tax2thesaurus',
	       'bin/thesaurusTranslate',
	       'bin/thesaurus2tex');

my %reqmodules = ('Test::More' => 0,
                  'CGI'        => 0,
                  'Storable'   => '1.0006');

## Test for XML::TMX

my $V = eval {
  require XML::TMX;
  $XML::TMX::VERSION 
};

if ($@) {
  print "It seems you do not have XML::TMX. Not installing thesaurus2TMX script.\n";
} else {
  if ($V >= 0.12) {
    push @scripts, 'bin/thesaurus2TMX';
    $reqmodules{'XML::TMX'} = '0.12';
    print "XML::TMX found. Installing thesaurus2TMX script\n";
  } else {
    print "It seems you do not have XML::TMX >= 0.12. Not installing thesaurus2TMX script.\n";
  }
}


WriteMakefile(
	      'NAME'	     => 'Biblio::Thesaurus',
	      'VERSION_FROM' => 'lib/Biblio/Thesaurus.pm',
          'ABSTRACT_FROM' => 'lib/Biblio/Thesaurus.pm',
	      'EXE_FILES'    => [@scripts],
	      'PREREQ_PM'    => {%reqmodules},
	     );