File: Makefile.PL

package info (click to toggle)
libprpc-perl 0.1005-22.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 260 kB
  • sloc: perl: 1,015; makefile: 2
file content (60 lines) | stat: -rw-r--r-- 1,628 bytes parent folder | download | duplicates (9)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- perl -*-

use ExtUtils::MakeMaker;

$| = 1;
print "Checking for Storable ... ";
eval { require Storable };
if ($@) {
    print STDERR "\nYou must have installed the 'Storable' module.\n";
    print STDERR "You get it at the CPAN. See 'man CPAN' or 'perldoc CPAN'";
    print STDERR "for more info.\n";
    exit 10;
}
print "ok\n";

print "Checking for Sys::Syslog ... ";
eval { require Sys::Syslog };
if ($@) {
    my $errmsg = $@;
    $errmsg =~ s/^/  /mg;
    if ($@ =~ /h2ph/) {
	print STDERR <<"MSG";

While loading the Sys::Syslog module, I received the following error message:

$errmsg

Most probably this means that you did not run the h2ph script after
installing Perl. You can do this now by executing the commands

    cd /usr/include
    h2ph *.h */*.h */*/*.h


MSG
        exit 10;
    }
    print STDERR "\nYou must have installed the 'Sys::Syslog' module.\n";
    print STDERR "You get it at the CPAN. See 'man CPAN' or 'perldoc CPAN'";
    print STDERR "for more info.\n";
    exit 10;
}
print "ok\n";

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME'	=> 'RPC::pServer',
    'DISTNAME'  => 'pRPC-modules',
    'dist'      => { SUFFIX   => '.gz', DIST_DEFAULT => 'all tardist',
                     COMPRESS => 'gzip -9f' },
    'VERSION_FROM' => 'lib/RPC/pServer.pm', # finds $VERSION
    'LIBS'	=> [''],   # e.g., '-lm' 
    'DEFINE'	=> '',     # e.g., '-DHAVE_SOMETHING' 
    'INC'	=> '',     # e.g., '-I/usr/include/other' 
);

package MY;

sub libscan { my($self, $path) = @_; ($path =~ /\~$/) ? undef : $path }