File: Makefile.PL

package info (click to toggle)
libnet-bonjour-perl 0.96-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 116 kB
  • sloc: perl: 439; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 696 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use ExtUtils::MakeMaker;

my $ans = prompt("Enable enterprise tests? [y/N]");

my $tests = 't/*.t';

if ( $ans =~ /^y/i ) {
        print "Enterprise tests enabled.\n";
        print "Enterprise test will query HTTP service records from zeroconf.org\n";
	$tests = 't/*.t t/*.ot';
} else {
        print "Enterprise tests will be skipped.\n";
}

WriteMakefile(
	'NAME' => 'Net::Bonjour',
	'VERSION_FROM' => 'lib/Net/Bonjour.pm',
	'DISTNAME' => 'Net-Bonjour',
	'PREREQ_PM' => { 'Net::DNS' => 0.50, 'Socket' => 1.75 },
	'AUTHOR' => 'George Chlipala <george@walnutcs.com>',
	'ABSTRACT' => "Module for DNS service discovery (Apple's Bonjour)",
	'LICENSE' => 'perl',
	'test' => { 'TESTS' => $tests }
)