Skip to content

Commit

Permalink
Sync from blead 8e23eb64b07b32a8971
Browse files Browse the repository at this point in the history
  • Loading branch information
toddr committed Dec 30, 2023
1 parent 8526355 commit 3820430
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 5.004;
require 5.006; # uses 'our'
use strict;
use ExtUtils::MakeMaker;

Expand All @@ -14,7 +14,7 @@ WriteMakefile(
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
( $ExtUtils::MakeMaker::VERSION >= 6.3002 ? ( 'LICENSE' => 'perl', ) : () ),
( $] >= 5.008 && $] < 5.011 ) ? ( INSTALLDIRS => 'perl' ) : (),
INSTALLDIRS => ( $] < 5.011 ? 'perl' : 'site' ),

# If under a version with Maketext in core, overwrite that core file.
META_MERGE => {
Expand All @@ -28,8 +28,15 @@ WriteMakefile(
);

sub MY::postamble {
return <<'MAKE_FRAG';
.PHONY: tags critic
# .PHONY is not portable
my $self = shift;
my $phony_line = $self->can('is_make_type')
&& ($self->is_make_type('gmake')
|| $self->is_make_type('bsdmake'))
? '.PHONY: tags critic'
: '';

return "$phony_line\n\n" . <<'MAKE_FRAG';
tags:
ctags -f tags --recurse --totals \
Expand Down
2 changes: 1 addition & 1 deletion lib/Locale/Maketext.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BEGIN {
}


our $VERSION = '1.32';
our $VERSION = '1.33';
our @ISA = ();

our $MATCH_SUPERS = 1;
Expand Down

0 comments on commit 3820430

Please sign in to comment.