The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# $Id: Makefile.PL 336 2006-10-26 02:17:31Z markstos $

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

WriteMakefile(
    NAME => 'CGI::Session::Serialize::yaml',
    VERSION_FROM => 'lib/CGI/Session/Serialize/yaml.pm',
    PREREQ_PM => {
        'CGI::Session'               => 4.30,
		'CGI::Session::ErrorHandler' => 4.30,
        'File::Spec'                 => 0,
        'Test::More'                 => 0,
		'Test::Pod'                  => 0,
    },
    ABSTRACT => 'Persistent session data in CGI applications',
    AUTHOR => 'Sherzod Ruzmetov <sherzodr@cpan.org>',
    clean => { FILES => [ 't/cgisess.*', 't/sessiondata' ] },
);

#
# Creating place for test-scripts. Some of the scripts needs this to be present
#
mkdir(File::Spec->catfile('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;
}