The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use ExtUtils::MakeMaker;

# Add in the Ex::MM::Coverage stuff.  But silently ignore failure.
eval q{
    use ExtUtils::MakeMaker::Coverage;
    # I keep some modules outside of /usr/lib/perl5
    my $config = ExtUtils::MakeMaker::Coverage->config;
    $config->ignore( ['site_perl'] );
};

package MY;

use strict;
use warnings;

sub init_PM
{
    my( $self, @args ) = @_;

    $self->SUPER::init_PM( @args );

    foreach my $file ( keys %{ $self->{PM} || {} } ) {
        next if $file =~ /^lib.+\.pm$/;
        delete $self->{PM}{$file};
    }
}

package main;

WriteMakefile(
    NAME              => 'POE::Session::PlainCall',
    VERSION_FROM      => 'lib/POE/Session/PlainCall.pm',
    LICENSE           => 'perl',
    PREREQ_PM         => {
                'POE'           => 1,
                'Scalar::Util'  => 0,
            },
    ($] >= 5.005 ?
      (ABSTRACT_FROM  => 'lib/POE/Session/PlainCall.pm', 
       AUTHOR         => 'Philip Gwyn <gwyn-at-pied.nu>') : ()),
);