File: Makefile.PL

package info (click to toggle)
libcgi-session-driver-memcached-perl 0.04-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 100 kB
  • sloc: perl: 98; makefile: 2
file content (51 lines) | stat: -rw-r--r-- 1,172 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
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
# $Id$

use strict;
use lib './t/lib';
use ExtUtils::MakeMaker;

my $has_fast = 0;
my $message = '';
eval "require Cache::Memcached::Fast";
unless ($@) {
    $has_fast = 1;
}

my %prereq_pm = (
    'CGI::Session'       => 4.00,
    'Test::More'         => undef,
);
if ($has_fast) {
    print "[info] You have Cache::Memcached::Fast, so CGI::Session::Driver::memcached may work faster.\n";
}
else {
    print "[info] If you install Cache::Memcached::Fast, it makes CGI::Session::Driver::memcached faster.\n";
    $prereq_pm{'Cache::Memcached'} = undef;
}

WriteMakefile(
    NAME            => 'CGI::Session::Driver::memcached',
    VERSION_FROM    => 'lib/CGI/Session/Driver/memcached.pm',
    PREREQ_PM       => \%prereq_pm,
    ABSTRACT        => 'Persistent session data in CGI applications',
    AUTHOR          => 'Kazuhiro Oinuma <oinume@cpan.org>',
#    clean           => { FILES => [ 't/cgisess.*', 't/sessiondata' ] },
);


package MY;
use strict;

sub postamble {
    return <<'MAKE_TEXT';
prepare_dist ::	metafile manifest dist
	$(NOECHO) $(NOOP)
MAKE_TEXT
}

sub libscan {
    my ($self, $path) = @_;
    return '' if $path =~ m/\.svn/;
    return $path;
}