@ISA = qw(Imager::Font);
BEGIN {
- $VERSION = "0.94";
+ $VERSION = "0.95";
require XSLoader;
XSLoader::load('Imager::Font::FT2', $VERSION);
our $BUILDING_IMAGER;
our %IMAGER_LIBS;
-my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
-
my %opts =
(
NAME => 'Imager::Font::FT2',
clean => { FILES => 'testout' },
);
+if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{LICENSE} = "perl_5";
+ $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
+ $opts{ABSTRACT} = 'FreeType 2 font driver for Imager';
+ $opts{META_MERGE} =
+ {
+ 'meta-spec' =>
+ {
+ version => "2",
+ url => "https://metacpan.org/pod/CPAN::Meta::Spec",
+ },
+ resources =>
+ {
+ homepage => "http://imager.perl.org/",
+ repository =>
+ {
+ type => "git",
+ url => "git://git.imager.perl.org/imager.git",
+ web => "http://git.imager.perl.org/imager.git",
+ },
+ bugtracker =>
+ {
+ web => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ mailto => 'bug-Imager@rt.cpan.org',
+ },
+ },
+ };
+}
+
my @inc;
if ($BUILDING_IMAGER) {
push @inc, "-I..";
# Imager required configure through use
my @Imager_req = ( Imager => "0.95" );
- if ($MM_ver >= 6.46) {
- $opts{META_MERGE} =
+ if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{META_MERGE}{prereqs} =
{
- configure_requires =>
+ configure =>
{
- @Imager_req,
+ requires =>
+ {
+ @Imager_req,
+ },
},
- build_requires =>
+ build =>
{
- @Imager_req,
- "Test::More" => "0.47",
+ requires =>
+ {
+ @Imager_req,
+ 'Scalar::Util' => 1.00,
+ "Test::More" => "0.47",
+ }
},
- resources =>
+ runtime =>
{
- homepage => "http://imager.perl.org/",
- repository => "git://git.imager.perl.org/imager.git",
- bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ requires =>
+ {
+ @Imager_req,
+ 'Scalar::Util' => 1.00,
+ }
+ },
+ test =>
+ {
+ requires =>
+ {
+ "Test::More" => "0.47",
+ 'Scalar::Util' => 1.00,
+ }
},
};
$opts{PREREQ_PM} =
$opts{LDDLFLAGS} = $probe_res->{LDDLFLAGS}
if $probe_res->{LDDLFLAGS};
- if ($MM_ver > 6.06) {
- $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
- $opts{ABSTRACT} = 'FreeType 2 font driver for Imager';
- }
-
WriteMakefile(%opts);
}
else {
use vars qw($VERSION @ISA);
BEGIN {
- $VERSION = "0.91";
+ $VERSION = "0.92";
require XSLoader;
XSLoader::load('Imager::File::GIF', $VERSION);
our $BUILDING_IMAGER;
our %IMAGER_LIBS;
-my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
-
my %opts =
(
NAME => 'Imager::File::GIF',
clean => { FILES => 'testout' },
);
+if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{LICENSE} = "perl_5";
+ $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
+ $opts{ABSTRACT} = 'GIF Image file support for Imager';
+ $opts{META_MERGE} =
+ {
+ 'meta-spec' =>
+ {
+ version => "2",
+ url => "https://metacpan.org/pod/CPAN::Meta::Spec",
+ },
+ resources =>
+ {
+ homepage => "http://imager.perl.org/",
+ repository =>
+ {
+ type => "git",
+ url => "git://git.imager.perl.org/imager.git",
+ web => "http://git.imager.perl.org/imager.git",
+ },
+ bugtracker =>
+ {
+ web => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ mailto => 'bug-Imager@rt.cpan.org',
+ },
+ },
+ };
+}
+
my @inc;
if ($BUILDING_IMAGER) {
unshift @inc, "-I..";
# Imager required configure through use
my @Imager_req = ( Imager => "0.94" );
- if ($MM_ver >= 6.46) {
- $opts{META_MERGE} =
+ if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{META_MERGE}{prereqs} =
{
- configure_requires =>
+ configure =>
{
- @Imager_req,
+ requires =>
+ {
+ @Imager_req,
+ },
},
- build_requires =>
+ build =>
{
- @Imager_req,
- "Test::More" => "0.47",
+ requires =>
+ {
+ @Imager_req,
+ "Test::More" => "0.47",
+ }
},
- resources =>
+ runtime =>
{
- homepage => "http://imager.perl.org/",
- repository => "git://git.imager.perl.org/imager.git",
- bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ requires =>
+ {
+ @Imager_req,
+ }
+ },
+ test =>
+ {
+ requires =>
+ {
+ "Test::More" => "0.47",
+ }
},
};
$opts{PREREQ_PM} =
$opts{LIBS} = $probe_res->{LIBS};
$opts{DEFINE} = $probe_res->{DEFINE};
$opts{INC} = "@inc";
-
- if ($MM_ver > 6.06) {
- $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
- $opts{ABSTRACT} = 'GIF Image file support';
- }
-
+
WriteMakefile(%opts);
}
else {
use vars qw($VERSION @ISA);
BEGIN {
- $VERSION = "0.90";
+ $VERSION = "0.91";
require XSLoader;
XSLoader::load('Imager::File::JPEG', $VERSION);
our $BUILDING_IMAGER;
our %IMAGER_LIBS;
-my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
-
my %opts =
(
NAME => 'Imager::File::JPEG',
clean => { FILES => 'testout' },
);
+if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{LICENSE} = "perl_5";
+ $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
+ $opts{ABSTRACT} = 'JPEG Image file support for Imager';
+ $opts{META_MERGE} =
+ {
+ 'meta-spec' =>
+ {
+ version => "2",
+ url => "https://metacpan.org/pod/CPAN::Meta::Spec",
+ },
+ resources =>
+ {
+ homepage => "http://imager.perl.org/",
+ repository =>
+ {
+ type => "git",
+ url => "git://git.imager.perl.org/imager.git",
+ web => "http://git.imager.perl.org/imager.git",
+ },
+ bugtracker =>
+ {
+ web => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ mailto => 'bug-Imager@rt.cpan.org',
+ },
+ },
+ };
+}
+
my @inc;
if ($BUILDING_IMAGER) {
push @inc, "-I..";
# Imager required configure through use
my @Imager_req = ( Imager => "0.86" );
- if ($MM_ver >= 6.46) {
- $opts{META_MERGE} =
+ if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{META_MERGE}{prereqs} =
{
- configure_requires =>
+ configure =>
{
- @Imager_req,
+ requires =>
+ {
+ @Imager_req,
+ },
},
- build_requires =>
+ build =>
{
- @Imager_req,
- "Test::More" => "0.47",
+ requires =>
+ {
+ @Imager_req,
+ "Test::More" => "0.47",
+ }
},
- resources =>
+ runtime =>
{
- homepage => "http://imager.perl.org/",
- repository => "git://git.imager.perl.org/imager.git",
- bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ requires =>
+ {
+ @Imager_req,
+ }
+ },
+ test =>
+ {
+ requires =>
+ {
+ "Test::More" => "0.47",
+ }
},
};
$opts{PREREQ_PM} =
$opts{LIBS} = $probe_res->{LIBS};
$opts{DEFINE} = $probe_res->{DEFINE};
$opts{INC} = "@inc";
-
- if ($MM_ver > 6.06) {
- $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
- $opts{ABSTRACT} = 'JPEG Image file support';
- }
-
+
WriteMakefile(%opts);
}
else {
{
"Parse::RecDescent" => 0
},
+ requires =>
+ {
+ 'Scalar::Util' => "1.00",
+ XSLoader => 0,
+ },
+ },
+ build =>
+ {
+ requires =>
+ {
+ XSLoader => 0,
+ },
+ },
+ test =>
+ {
+ requires =>
+ {
+ 'Test::More' => "0.99",
+ },
},
},
dynamic_config => 0,
bugtracker =>
{
web => "https://rt.cpan.org/Dist/Display.html?Name=Imager",
+ mailto => 'bug-Imager@rt.cpan.org',
},
},
};
our $BUILDING_IMAGER;
our %IMAGER_LIBS;
-my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
-
my %opts =
(
NAME => 'Imager::File::PNG',
clean => { FILES => 'testout' },
);
+if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{LICENSE} = "perl_5";
+ $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
+ $opts{ABSTRACT} = 'PNG Image file support for Imager';
+ $opts{META_MERGE} =
+ {
+ 'meta-spec' =>
+ {
+ version => "2",
+ url => "https://metacpan.org/pod/CPAN::Meta::Spec",
+ },
+ resources =>
+ {
+ homepage => "http://imager.perl.org/",
+ repository =>
+ {
+ type => "git",
+ url => "git://git.imager.perl.org/imager.git",
+ web => "http://git.imager.perl.org/imager.git",
+ },
+ bugtracker =>
+ {
+ web => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ mailto => 'bug-Imager@rt.cpan.org',
+ },
+ },
+ };
+}
+
my @inc;
if ($BUILDING_IMAGER) {
push @inc, "-I..";
# Imager required configure through use
my @Imager_req = ( Imager => "0.90" );
- if ($MM_ver >= 6.46) {
- $opts{META_MERGE} =
+ if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{META_MERGE}{prereqs} =
{
- configure_requires =>
+ configure =>
+ {
+ requires =>
+ {
+ @Imager_req,
+ },
+ },
+ build =>
{
- @Imager_req,
+ requires =>
+ {
+ @Imager_req,
+ "Test::More" => "0.47",
+ }
},
- build_requires =>
+ runtime =>
{
- @Imager_req,
- "Test::More" => "0.47",
+ requires =>
+ {
+ @Imager_req,
+ }
},
- resources =>
+ test =>
{
- homepage => "http://imager.perl.org/",
- repository => "git://git.imager.perl.org/imager.git",
- bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ requires =>
+ {
+ "Test::More" => "0.47",
+ }
},
};
$opts{PREREQ_PM} =
$opts{LIBS} = $probe_res->{LIBS};
$opts{DEFINE} = $probe_res->{DEFINE};
$opts{INC} = "@inc";
-
- if ($MM_ver > 6.06) {
- $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
- $opts{ABSTRACT} = 'PNG Image file support';
- }
-
+
WriteMakefile(%opts);
}
else {
use vars qw($VERSION @ISA);
BEGIN {
- $VERSION = "0.93";
+ $VERSION = "0.94";
require XSLoader;
XSLoader::load('Imager::File::PNG', $VERSION);
clean => { FILES => 'testout' },
);
+if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{LICENSE} = "perl_5";
+ $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
+ $opts{ABSTRACT} = 'T1Lib font driver for Imager';
+ $opts{META_MERGE} =
+ {
+ 'meta-spec' =>
+ {
+ version => "2",
+ url => "https://metacpan.org/pod/CPAN::Meta::Spec",
+ },
+ resources =>
+ {
+ homepage => "http://imager.perl.org/",
+ repository =>
+ {
+ type => "git",
+ url => "git://git.imager.perl.org/imager.git",
+ web => "http://git.imager.perl.org/imager.git",
+ },
+ bugtracker =>
+ {
+ web => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ mailto => 'bug-Imager@rt.cpan.org',
+ },
+ },
+ };
+}
+
my @inc;
if ($BUILDING_IMAGER) {
push @inc, "-I..";
# Imager required configure through use
my @Imager_req = ( Imager => "0.95" );
- if ($MM_ver >= 6.46) {
- $opts{META_MERGE} =
+ if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{META_MERGE}{prereqs} =
{
- configure_requires =>
+ configure =>
{
- @Imager_req,
+ requires =>
+ {
+ @Imager_req,
+ },
},
- build_requires =>
+ build =>
{
- @Imager_req,
- "Test::More" => "0.47",
+ requires =>
+ {
+ @Imager_req,
+ "Test::More" => "0.47",
+ }
},
- resources =>
+ runtime =>
{
- homepage => "http://imager.perl.org/",
- repository => "git://git.imager.perl.org/imager.git",
- bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ requires =>
+ {
+ @Imager_req,
+ }
+ },
+ test =>
+ {
+ requires =>
+ {
+ "Test::More" => "0.47",
+ }
},
};
$opts{PREREQ_PM} =
$opts{DEFINE} = $probe_res->{DEFINE};
$opts{INC} = "@inc";
- if ($MM_ver > 6.06) {
- $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
- $opts{ABSTRACT} = 'T1Lib font driver for Imager';
- }
-
WriteMakefile(%opts);
}
else {
return 0;
CODE
}
-
use Scalar::Util ();
BEGIN {
- $VERSION = "1.024";
+ $VERSION = "1.025";
require XSLoader;
XSLoader::load('Imager::Font::T1', $VERSION);
our $BUILDING_IMAGER;
our %IMAGER_LIBS;
-my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
-
my $define = "";
my $fp_rep = unpack("H*", pack("f", 1.25));
if ($fp_rep eq "0000a03f" || $fp_rep eq "3fa00000") {
clean => { FILES => 'testout' },
);
+if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{LICENSE} = "perl_5";
+ $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
+ $opts{ABSTRACT} = 'TIFF image file support for Imager';
+ $opts{META_MERGE} =
+ {
+ 'meta-spec' =>
+ {
+ version => "2",
+ url => "https://metacpan.org/pod/CPAN::Meta::Spec",
+ },
+ resources =>
+ {
+ homepage => "http://imager.perl.org/",
+ repository =>
+ {
+ type => "git",
+ url => "git://git.imager.perl.org/imager.git",
+ web => "http://git.imager.perl.org/imager.git",
+ },
+ bugtracker =>
+ {
+ web => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ mailto => 'bug-Imager@rt.cpan.org',
+ },
+ },
+ };
+}
+
my @inc;
if ($BUILDING_IMAGER) {
push @inc, "-I..";
# Imager required configure through use
my @Imager_req = ( Imager => "0.94" );
- if ($MM_ver >= 6.46) {
- $opts{META_MERGE} =
+ if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{META_MERGE}{prereqs} =
{
- configure_requires =>
+ configure =>
+ {
+ requires =>
+ {
+ @Imager_req,
+ },
+ },
+ build =>
{
- @Imager_req,
+ requires =>
+ {
+ @Imager_req,
+ "Test::More" => "0.47",
+ }
},
- build_requires =>
+ runtime =>
{
- @Imager_req,
- "Test::More" => "0.47",
+ requires =>
+ {
+ @Imager_req,
+ }
},
- resources =>
+ test =>
{
- homepage => "http://imager.perl.org/",
- repository => "git://git.imager.perl.org/imager.git",
- bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ requires =>
+ {
+ "Test::More" => "0.47",
+ }
},
};
$opts{PREREQ_PM} =
$opts{DEFINE} .= " $probe_res->{DEFINE}";
$opts{INC} = "@inc";
- if ($MM_ver > 6.06) {
- $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
- $opts{ABSTRACT} = 'TIFF image file support for Imager';
- }
-
WriteMakefile(%opts);
}
else {
use vars qw($VERSION @ISA);
BEGIN {
- $VERSION = "0.89";
+ $VERSION = "0.91";
require XSLoader;
XSLoader::load('Imager::File::TIFF', $VERSION);
our $BUILDING_IMAGER;
our %IMAGER_LIBS;
-my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
-
my %opts =
(
NAME => 'Imager::Font::W32',
clean => { FILES => 'testout' },
);
+if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{LICENSE} = "perl_5";
+ $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
+ $opts{ABSTRACT} = 'Win32 font driver for Imager';
+ $opts{META_MERGE} =
+ {
+ 'meta-spec' =>
+ {
+ version => "2",
+ url => "https://metacpan.org/pod/CPAN::Meta::Spec",
+ },
+ resources =>
+ {
+ homepage => "http://imager.perl.org/",
+ repository =>
+ {
+ type => "git",
+ url => "git://git.imager.perl.org/imager.git",
+ web => "http://git.imager.perl.org/imager.git",
+ },
+ bugtracker =>
+ {
+ web => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ mailto => 'bug-Imager@rt.cpan.org',
+ },
+ },
+ };
+}
+
my @inc;
if ($BUILDING_IMAGER) {
push @inc, "-I..";
# Imager required configure through use
my @Imager_req = ( Imager => "0.95" );
- if ($MM_ver >= 6.46) {
- $opts{META_MERGE} =
+ if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
+ $opts{META_MERGE}{prereqs} =
{
- configure_requires =>
+ configure =>
+ {
+ requires =>
+ {
+ @Imager_req,
+ },
+ },
+ build =>
{
- @Imager_req,
+ requires =>
+ {
+ @Imager_req,
+ "Test::More" => "0.47",
+ }
},
- build_requires =>
+ runtime =>
{
- @Imager_req,
- "Test::More" => "0.47",
+ requires =>
+ {
+ @Imager_req,
+ }
},
- resources =>
+ test =>
{
- homepage => "http://imager.perl.org/",
- repository => "git://git.imager.perl.org/imager.git",
- bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager",
+ requires =>
+ {
+ "Test::More" => "0.47",
+ }
},
};
$opts{PREREQ_PM} =
$opts{DEFINE} = $probe_res->{DEFINE};
$opts{INC} = "@inc";
- if ($MM_ver > 6.06) {
- $opts{AUTHOR} = 'Tony Cook <tonyc@cpan.org>';
- $opts{ABSTRACT} = 'Win32 font file support for Imager';
- }
-
WriteMakefile(%opts);
}
else {
@ISA = qw(Imager::Font);
BEGIN {
- $VERSION = "0.89";
+ $VERSION = "0.90";
require XSLoader;
XSLoader::load('Imager::Font::W32', $VERSION);
--- /dev/null
+#!perl -w
+use strict;
+use Test::More;
+plan skip_all => "Only run as part of the dist"
+ unless -f "MYMETA.json";
+eval "use CPAN::Meta 2.110580;";
+plan skip_all => "CPAN::Meta required for testing META.json"
+ if $@;
+plan skip_all => "Only if automated or author testing"
+ unless $ENV{AUTOMATED_TESTING} || -d ".git";
+plan tests => 1;
+
+my $meta;
+unless (ok(eval {
+ $meta = CPAN::Meta->load_file("MYMETA.json",
+ { lazy_validation => 0 }) },
+ "loaded MYMETA.json successfully")) {
+ diag($@);
+}