Codebase list libgraphics-primitive-perl / 5692555
Import upstream version 0.67+git20150121.1.fd5bfe6 Debian Janitor 1 year, 4 months ago
11 changed file(s) with 47 addition(s) and 61 deletion(s). Raw diff Collapse all Expand all
00 Revision history for Graphics-Primitive
1
2 0.67 2015-01-21
3 - Allow default font to be overridden with $GRAPHICS_PRIMITIVE_DEFAULT_FONT
4 and default MSWin32 to 'Arial' (TobyLL)
51
62 0.66 2014-01-04
73 - Add a missing requires on Data::Visitor::Callback (tests failed without it)
99 ExtUtils::MakeMaker: 6.36
1010 distribution_type: module
1111 dynamic_config: 1
12 generated_by: 'Module::Install version 1.06'
12 generated_by: 'Module::Install version 1.19'
1313 license: perl
1414 meta-spec:
1515 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2020 - inc
2121 - t
2222 requires:
23 Data::Visitor::Callback: 0.30
24 Forest: 0.06
25 Geometry::Primitive: 0.16
26 Graphics::Color: 0.20
27 JSON::Any: 1.22
28 Moose: 0.90
29 MooseX::Clone: 0.04
30 MooseX::Storage: 0.17
23 Data::Visitor::Callback: '0.30'
24 Forest: '0.06'
25 Geometry::Primitive: '0.16'
26 Graphics::Color: '0.20'
27 JSON::Any: '1.22'
28 Moose: '0.90'
29 MooseX::Clone: '0.04'
30 MooseX::Storage: '0.17'
3131 resources:
3232 license: http://dev.perl.org/licenses/
3333 repository: git://github.com/gphat/graphics-primitive.git
34 version: 0.67
34 version: '0.66'
33 use strict 'vars';
44 use vars qw{$VERSION};
55 BEGIN {
6 $VERSION = '1.06';
6 $VERSION = '1.19';
77 }
88
99 # Suspend handler for "redefined" warnings
77
88 use vars qw{$VERSION @ISA $ISCORE};
99 BEGIN {
10 $VERSION = '1.06';
10 $VERSION = '1.19';
1111 @ISA = 'Module::Install::Base';
1212 $ISCORE = 1;
1313 }
120120 # Can we locate a (the) C compiler
121121 sub can_cc {
122122 my $self = shift;
123
124 if ($^O eq 'VMS') {
125 require ExtUtils::CBuilder;
126 my $builder = ExtUtils::CBuilder->new(
127 quiet => 1,
128 );
129 return $builder->have_compiler;
130 }
131
123132 my @chunks = split(/ /, $Config::Config{cc}) or return;
124133
125134 # $Config{cc} may contain args; try to find out the program part
150159
151160 __END__
152161
153 #line 236
162 #line 245
55
66 use vars qw{$VERSION @ISA $ISCORE};
77 BEGIN {
8 $VERSION = '1.06';
8 $VERSION = '1.19';
99 @ISA = 'Module::Install::Base';
1010 $ISCORE = 1;
1111 }
77
88 use vars qw{$VERSION @ISA $ISCORE};
99 BEGIN {
10 $VERSION = '1.06';
10 $VERSION = '1.19';
1111 @ISA = 'Module::Install::Base';
1212 $ISCORE = 1;
1313 }
132132 return $args;
133133 }
134134
135 # For mm args that take multiple space-seperated args,
135 # For mm args that take multiple space-separated args,
136136 # append an argument to the current list.
137137 sub makemaker_append {
138138 my $self = shift;
55
66 use vars qw{$VERSION @ISA $ISCORE};
77 BEGIN {
8 $VERSION = '1.06';
8 $VERSION = '1.19';
99 @ISA = 'Module::Install::Base';
1010 $ISCORE = 1;
1111 }
346346 ^ \s*
347347 package \s*
348348 ([\w:]+)
349 \s* ;
349 [\s|;]*
350350 /ixms
351351 ) {
352352 my ($name, $module_name) = ($1, $1);
704704 my @yaml = Parse::CPAN::Meta::LoadFile('META.yml');
705705 my $meta = $yaml[0];
706706
707 # Overwrite the non-configure dependency hashs
707 # Overwrite the non-configure dependency hashes
708708 delete $meta->{requires};
709709 delete $meta->{build_requires};
710710 delete $meta->{recommends};
55
66 use vars qw{$VERSION @ISA $ISCORE};
77 BEGIN {
8 $VERSION = '1.06';
8 $VERSION = '1.19';
99 @ISA = 'Module::Install::Base';
1010 $ISCORE = 1;
1111 }
55
66 use vars qw{$VERSION @ISA $ISCORE};
77 BEGIN {
8 $VERSION = '1.06';
8 $VERSION = '1.19';
99 @ISA = qw{Module::Install::Base};
1010 $ISCORE = 1;
1111 }
1616 # 3. The ./inc/ version of Module::Install loads
1717 # }
1818
19 use 5.005;
19 use 5.006;
2020 use strict 'vars';
2121 use Cwd ();
2222 use File::Find ();
3030 # This is not enforced yet, but will be some time in the next few
3131 # releases once we can make sure it won't clash with custom
3232 # Module::Install extensions.
33 $VERSION = '1.06';
33 $VERSION = '1.19';
3434
3535 # Storage for the pseudo-singleton
3636 $MAIN = undef;
155155 sub autoload {
156156 my $self = shift;
157157 my $who = $self->_caller;
158 my $cwd = Cwd::cwd();
158 my $cwd = Cwd::getcwd();
159159 my $sym = "${who}::AUTOLOAD";
160160 $sym->{$cwd} = sub {
161 my $pwd = Cwd::cwd();
161 my $pwd = Cwd::getcwd();
162162 if ( my $code = $sym->{$pwd} ) {
163163 # Delegate back to parent dirs
164164 goto &$code unless $cwd eq $pwd;
238238
239239 # ignore the prefix on extension modules built from top level.
240240 my $base_path = Cwd::abs_path($FindBin::Bin);
241 unless ( Cwd::abs_path(Cwd::cwd()) eq $base_path ) {
241 unless ( Cwd::abs_path(Cwd::getcwd()) eq $base_path ) {
242242 delete $args{prefix};
243243 }
244244 return $args{_self} if $args{_self};
245
246 $base_path = VMS::Filespec::unixify($base_path) if $^O eq 'VMS';
245247
246248 $args{dispatch} ||= 'Admin';
247249 $args{prefix} ||= 'inc';
321323 my ($self, $path) = @_;
322324
323325 my @found;
324 File::Find::find( sub {
326 File::Find::find( {no_chdir => 1, wanted => sub {
325327 my $file = $File::Find::name;
326328 return unless $file =~ m!^\Q$path\E/(.+)\.pm\Z!is;
327329 my $subpath = $1;
335337 # correctly. Otherwise, root through the file to locate the case-preserved
336338 # version of the package name.
337339 if ( $subpath eq lc($subpath) || $subpath eq uc($subpath) ) {
338 my $content = Module::Install::_read($subpath . '.pm');
340 my $content = Module::Install::_read($File::Find::name);
339341 my $in_pod = 0;
340 foreach ( split //, $content ) {
342 foreach ( split /\n/, $content ) {
341343 $in_pod = 1 if /^=\w/;
342344 $in_pod = 0 if /^=cut/;
343345 next if ($in_pod || /^=cut/); # skip pod text
350352 }
351353
352354 push @found, [ $file, $pkg ];
353 }, $path ) if -d $path;
355 }}, $path ) if -d $path;
354356
355357 @found;
356358 }
372374 return $call;
373375 }
374376
375 # Done in evals to avoid confusing Perl::MinimumVersion
376 eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@;
377377 sub _read {
378378 local *FH;
379379 open( FH, '<', $_[0] ) or die "open($_[0]): $!";
380 binmode FH;
380381 my $string = do { local $/; <FH> };
381382 close FH or die "close($_[0]): $!";
382383 return $string;
383384 }
384 END_NEW
385 sub _read {
386 local *FH;
387 open( FH, "< $_[0]" ) or die "open($_[0]): $!";
388 my $string = do { local $/; <FH> };
389 close FH or die "close($_[0]): $!";
390 return $string;
391 }
392 END_OLD
393385
394386 sub _readperl {
395387 my $string = Module::Install::_read($_[0]);
410402 return $string;
411403 }
412404
413 # Done in evals to avoid confusing Perl::MinimumVersion
414 eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@;
415405 sub _write {
416406 local *FH;
417407 open( FH, '>', $_[0] ) or die "open($_[0]): $!";
408 binmode FH;
418409 foreach ( 1 .. $#_ ) {
419410 print FH $_[$_] or die "print($_[0]): $!";
420411 }
421412 close FH or die "close($_[0]): $!";
422413 }
423 END_NEW
424 sub _write {
425 local *FH;
426 open( FH, "> $_[0]" ) or die "open($_[0]): $!";
427 foreach ( 1 .. $#_ ) {
428 print FH $_[$_] or die "print($_[0]): $!";
429 }
430 close FH or die "close($_[0]): $!";
431 }
432 END_OLD
433414
434415 # _version is for processing module versions (eg, 1.03_05) not
435416 # Perl versions (eg, 5.8.1).
436 sub _version ($) {
417 sub _version {
437418 my $s = shift || 0;
438419 my $d =()= $s =~ /(\.)/g;
439420 if ( $d >= 2 ) {
449430 return $l + 0;
450431 }
451432
452 sub _cmp ($$) {
433 sub _cmp {
453434 _version($_[1]) <=> _version($_[2]);
454435 }
455436
456437 # Cloned from Params::Util::_CLASS
457 sub _CLASS ($) {
438 sub _CLASS {
458439 (
459440 defined $_[0]
460441 and
00 package Graphics::Primitive;
11 use Moose;
22
3 our $VERSION = '0.67';
3 our $VERSION = '0.66';
44
55 __PACKAGE__->meta->make_immutable;
66