|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /installd/perl588installer/Scalar-List-Utils-1.19/ |
Upload File : |
# -*- perl -*-
use inc::Module::Install;
my $do_xs = can_cc();
for (@ARGV) {
/^-pm/ and $do_xs = 0;
/^-xs/ and $do_xs = 1;
}
name ('Scalar-List-Utils');
module_name ('List::Util');
abstract ('Common Scalar and List utility subroutines');
author ('Graham Barr <gbarr@cpan.org>');
version_from ('lib/List/Util.pm');
license ('perl');
makemaker_args ( XS => {}, C => []) unless $do_xs;
makemaker_args ( DEFINE => "-DPERL_EXT",);
installdirs (qw(Scalar::Util List::Util));
check_nmake(); # check and download nmake.exe for Win32
requires( perl => 5.004);
include_deps('Test::More');
&Makefile->write;
&Meta->write;
## - - - - - - - -
sub MY::post_constants {
return '' if $] >= 5.006_01;
return <<'POST_CONST' if $^O eq 'MSWin32';
XSUBPPARGS = $(XSUBPPARGS) -typemap mytypemap
POST_CONST
return <<'POST_CONST';
XSUBPPARGS += -typemap mytypemap
POST_CONST
}
sub MY::postamble {
return <<'POSTAMBLE';
mydist : manifest run_cpansign dist
run_cpansign :
cpansign -s
POSTAMBLE
}