Perl-Types

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

}

my %WriteMakefileArgs = (
  "ABSTRACT" => "the Perl data type system",
  "AUTHOR" => "William N. Braswell, Jr. <wbraswell\@cpan.org>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0
  },
  "DISTNAME" => "Perl-Types",
  "EXE_FILES" => [
    "bin/dev/GMP/gmp_manual.pl",
    "bin/dev/GMP/gmp_manual_orig.pl",
    "bin/dev/GMP/gmp_symtab_dump.pl",
    "bin/dev/GSL/gsl_cpp_manual.pl",
    "bin/dev/find_replace_recurse_scalars.sh",
    "bin/dev/namespaces_regenerate.pl",
    "bin/dev/perl_types_refactor_cpp_namespaces.pl",
    "bin/dev/perl_types_refactor_cpp_namespaces.txt",
    "bin/dev/perl_types_refactor_headers.pl",
    "bin/dev/perl_types_refactor_names.pl",
    "bin/dev/perl_types_refactor_names.txt",
    "bin/dev/perl_types_refactor_names_accept_mapped.sh",
    "bin/dev/perl_types_refactor_names_delete_mapped.sh",
    "bin/dev/perl_types_refactor_names_map.pm",
    "bin/dev/perl_types_refactor_names_parser.out",
    "bin/dev/perl_types_refactor_names_parser.pl",
    "bin/dev/perlapinames_regenerate.pl",
    "bin/dev/refactor_names_map_create_groups.pl",
    "bin/dev/t09_interpret_execute__mv_failures.sh",
    "bin/dev/unused/data_structure_array_test.pl",
    "bin/dev/unused/data_structure_hash_test.pl",
    "bin/dev/unused/data_structure_tree_test.pl",
    "bin/dev/unused/data_type_integer_part.cpp",
    "bin/dev/unused/data_type_integer_precision.cpp",
    "bin/dev/unused/data_type_integer_precision.pl",
    "bin/dev/unused/data_type_number_floating_point_error.pl",
    "bin/dev/unused/data_type_number_precision.cpp",
    "bin/dev/unused/data_type_scalar_test.pl",
    "bin/dev/unused/data_type_string_backslashes.cpp",
    "bin/dev/unused/data_type_string_backslashes.pl"
  ],
  "LICENSE" => "gpl",
  "NAME" => "Perl::Types",
  "PREREQ_PM" => {
    "Alien::GMP" => 0,
    "Alien::GSL" => 0,
    "Carp" => 0,
    "Data::Dumper" => 0,
    "Exporter" => 0,
    "File::Spec" => 0,
    "IPC::Cmd" => 0,
    "IPC::Run3" => 0,
    "Inline" => 0,
    "Inline::C" => 0,
    "Inline::CPP" => 0,
    "Inline::Filters" => 0,
    "Math::BigInt" => 0,
    "Math::GSL::BLAS" => 0,
    "Math::GSL::CBLAS" => 0,
    "Math::GSL::Matrix" => 0,
    "PadWalker" => 0,
    "Scalar::Util" => 0,
    "Term::ReadLine" => 0,
    "parent" => 0
  },
  "TEST_REQUIRES" => {
    "Cwd" => 0,
    "ExtUtils::MakeMaker" => 0,
    "File::Spec" => 0,
    "Test2::Tools::LoadModule" => 0,
    "Test2::V0" => 0,
    "Test::Exception" => 0,
    "Test::More" => 0,
    "Test::Number::Delta" => 0
  },
  "VERSION" => "0.400",
  "test" => {
    "TESTS" => "t/*.t"
  }
);

my %FallbackPrereqs = (
  "Alien::GMP" => 0,
  "Alien::GSL" => 0,
  "Carp" => 0,
  "Cwd" => 0,
  "Data::Dumper" => 0,
  "Exporter" => 0,
  "ExtUtils::MakeMaker" => 0,
  "File::Spec" => 0,
  "IPC::Cmd" => 0,
  "IPC::Run3" => 0,
  "Inline" => 0,
  "Inline::C" => 0,
  "Inline::CPP" => 0,
  "Inline::Filters" => 0,
  "Math::BigInt" => 0,
  "Math::GSL::BLAS" => 0,
  "Math::GSL::CBLAS" => 0,
  "Math::GSL::Matrix" => 0,
  "PadWalker" => 0,
  "Scalar::Util" => 0,
  "Term::ReadLine" => 0,
  "Test2::Tools::LoadModule" => 0,
  "Test2::V0" => 0,
  "Test::Exception" => 0,
  "Test::More" => 0,
  "Test::Number::Delta" => 0,
  "parent" => 0
);

unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

WriteMakefile(%WriteMakefileArgs);

#our $VERSION = 0.042_000;  # DEV NOTE: comment to avoid potential conflict w/ Dist::Zilla & friends

package MY;
BEGIN { use English; }

sub pm_to_blib {
    my $self = shift;
    my $blib = $self->SUPER::pm_to_blib(@_);

    # un-read-only blib/lib for tests to pass, files are modified at runtime there
    if ( $OSNAME eq 'MSWin32' ) {
        my ( $lastline, $start ) = qq{\t\$(NOECHO) \$(TOUCH) pm_to_blib\n};
        ( $start = index( $blib, $lastline ) ) == -1
            && die "Can't find replacement string for pm_to_blib target";
        substr( $blib, $start, 0, "\t" . 'attrib -R /S  blib/lib/*' . "\n" );
    }
    return $blib;
}

# disable PERL_DL_NONLAZY=1 to avoid C++ compile errors for GMP library (and possibly others)
sub test_via_harness {
    my $self = shift;
    my $command = $self->MM::test_via_harness(@_);
    $command =~ s/\bPERL_DL_NONLAZY=1\s+//gxms;
    return $command;
}

sub test_via_script {
    my $self = shift;
    my $command = $self->MM::test_via_script(@_);
    $command =~ s/\bPERL_DL_NONLAZY=1\s+//gxms;
    return $command;
}



( run in 0.473 second using v1.01-cache-2.11-cpan-e1769b4cff6 )