File: Makefile.PL

package info (click to toggle)
libio-multiplex-perl 1.16-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 136 kB
  • sloc: perl: 568; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (8)
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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile
  NAME          => 'IO::Multiplex',
  ABSTRACT_FROM => 'lib/IO/Multiplex.pm',
  VERSION_FROM  => 'lib/IO/Multiplex.pm', # finds $VERSION
  PREREQ_PM     => { # e.g., Module::Name => 1.1
    'IO::Socket' => 0,
  },
  dist => {
    COMPRESS => 'gzip -vf',
  },
  ;

package MY;

sub processPL {
  my $self = shift;
  my $block = $self->SUPER::processPL(@_);
  # "Version:" in spec needs to match
  # "$VERSION" from VERSION_FROM
  $block =~ s%(spec.PL\s*)$%$1 \$\(VERSION_FROM\)%m;
  $block;
}