Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase minimum Perl version #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This Makefile.PL for Math-Int128 was generated by
# inc::MyMakeMaker <self>
# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.33.
# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.38.
# Don't edit it but the dist.ini and plugins used to construct it.

use strict;
use warnings;

use 5.006;
use 5.010;
use ExtUtils::MakeMaker;

my %WriteMakefileArgs = (
Expand All @@ -18,7 +18,7 @@ my %WriteMakefileArgs = (
"DISTNAME" => "Math-Int128",
"EXE_FILES" => [],
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.006",
"MIN_PERL_VERSION" => "5.010",
"NAME" => "Math::Int128",
"OBJECT" => "\$(O_FILES)",
"PREREQ_PM" => {
Expand Down
2 changes: 1 addition & 1 deletion cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ requires "Math::Int64" => "0.51";
requires "XSLoader" => "0";
requires "constant" => "0";
requires "overload" => "0";
requires "perl" => "5.010";
requires "strict" => "0";
requires "warnings" => "0";

Expand All @@ -14,7 +15,6 @@ on 'test' => sub {
requires "Math::BigInt" => "0";
requires "Test::More" => "0.96";
requires "integer" => "0";
requires "perl" => "5.006";
};

on 'test' => sub {
Expand Down
3 changes: 3 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ stopwords = wishlist
; authordep Module::CAPIMaker
[=inc::CreateCAPI]

[Prereqs]
perl = 5.010

[Prereqs / DevelopRequires]
Module::CAPIMaker = 0

Expand Down
3 changes: 2 additions & 1 deletion inc/CreateCAPI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ with 'Dist::Zilla::Role::FileGatherer',
sub gather_files {
my $self = shift;

(my $module_name = $self->zilla->name) =~ s/-/::/g;
my @cmd = (
'make_perl_module_c_api',
'module_name=' . ( $self->zilla->name =~ s/-/::/gr ),
'module_name=' . $module_name,
'module_version=' . $self->zilla->version,
q{author="} . ( join ', ', @{ $self->zilla->authors } ) . q{"},
);
Expand Down