Alien-JPCRE2
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
#!/usr/bin/perl
use strict;
use warnings;
our $VERSION = 0.054_000;
use ExtUtils::MakeMaker;
use Alien::Build::MM;
BEGIN {
use Config;
use English qw(-no_match_vars); # for $OSNAME
}
# MS Windows OS, fix read-only blib/lib directory & enable GNU configure/make
my $configure_requires_windows = {};
if ( $OSNAME eq 'MSWin32' ) {
push( @ExtUtils::MakeMaker::Overridable, qw(pm_to_blib) );
$configure_requires_windows = {
'Alien::MSYS' => '0.08',
'Alien::gmake' => '0.20',
};
}
my $abmm = Alien::Build::MM->new;
my %WriteMakefile_args = $abmm->mm_args(
NAME => 'Alien::JPCRE2',
DISTNAME => 'Alien-JPCRE2',
ABSTRACT => 'Find Or Download/Build/Install libjpcre2 In JPCRE2',
VERSION_FROM => 'lib/Alien/JPCRE2.pm',
AUTHOR => 'Will Braswell <wbraswell@cpan.org>',
LICENSE => 'perl_5',
# EXE_FILES => ['bin/foo'], # error, no rule to make target 'bin/foo'
# MAKE => 'gmake', # error, causes failure to build under non-gmake such as dmake etc.
CONFIGURE_REQUIRES => {
# DEV NOTE, CORRELATION #ap001: must install IO::Socket::SSL & Alien::Build from Makefile.PL (which becomes META.json, for CPAN) & .travis.yml & appveyor.yml
'IO::Socket::SSL' => '2.043',
'Alien::Build' => '0.66', # provides Alien::Build::MM
'Alien::PCRE2' => '0.015',
%{$configure_requires_windows}
},
TEST_REQUIRES => {
'Test2::Suite' => '0.000072', # provides Test2::V0
},
PREREQ_PM => {
'Alien::PCRE2' => '0.015',
},
META_MERGE => {
'meta-spec' => {
version => '2',
url => 'https://metacpan.org/pod/CPAN::Meta::Spec'
},
release_status => 'stable',
keywords => [qw(alien pcre pcre2 jpcre2 regex regularexpression)],
description => 'JPCRE2 is the C++ wrapper for the new Perl Compatible Regular Expression engine, written in C, compiled and installed via Alien',
resources => {
license => ['http://dev.perl.org/licenses/'],
homepage => 'https://neurobin.org/projects/softwares/libs/jpcre2/',
bugtracker => { web => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Alien-JPCRE2' },
repository => {
type => 'git',
url => 'git://github.com/wbraswell/alien-jpcre2.git',
web => 'https://github.com/wbraswell/alien-jpcre2',
},
x_IRC => "irc://irc.perl.org/#native",
# x_mailinglist => "https://NONE",
# x_wiki => "https://NONE",
},
},
);
unless (eval { ExtUtils::MakeMaker->VERSION('6.64'); 1 }) {
my $test_requires = delete $WriteMakefile_args{TEST_REQUIRES};
my $build_requires = delete $WriteMakefile_args{BUILD_REQUIRES};
$WriteMakefile_args{PREREQ_PM}{$_} = $test_requires->{$_} for keys %$test_requires;
$WriteMakefile_args{PREREQ_PM}{$_} = $build_requires->{$_} for keys %$build_requires;
}
delete $WriteMakefile_args{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION('6.52'); 1 };
WriteMakefile(%WriteMakefile_args);
package MY;
BEGIN { use English; }
sub postamble {
$abmm->mm_postamble;
}
sub pm_to_blib {
my $self = shift;
( run in 0.644 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )