File: Makefile.PL

package info (click to toggle)
libhtml-tableextract-perl 2.15-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 284 kB
  • sloc: perl: 1,558; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use ExtUtils::MakeMaker;

my %prereq_pm = (
  'HTML::Parser' => 0,
);

# The idea is to skip tests and dependencies on H::ET if it is not
# installed at all. If it is presently installed, however, enforce the
# version dependency.
my $et_version = '1.16';
eval "use HTML::ElementTable";
unless ($@) {
  $prereq_pm{'HTML::ElementTable'} = $et_version;
}

WriteMakefile(
  NAME         => 'HTML-TableExtract',
  VERSION_FROM => 'lib/HTML/TableExtract.pm',
  PREREQ_PM    => \%prereq_pm,
);