Skip to content

Commit

Permalink
Use gtar on OS/X
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 30, 2024
1 parent 6d7550f commit b63aede
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
11 changes: 10 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ unless(defined($ENV{'NO_NETWORK_TESTING'})) {
$prereqs->{'Try::Tiny'} = 0;
}

my $dist = {
COMPRESS => 'gzip -9f',
SUFFIX => 'gz'
};

if($^O eq 'darwin') {
$dist->{'TAR'} = 'gtar';
}

WriteMakefile(
NAME => 'Genealogy::ObituaryDailyTimes',
AUTHOR => q{Nigel Horne <[email protected]>},
Expand All @@ -77,7 +86,7 @@ WriteMakefile(
# 'Test::Kwalitee' => 0,
'IPC::System::Simple' => 0,
}, PREREQ_PM => $prereqs,
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
dist => $dist,
clean => { FILES => 'Genealogy-ObituaryDailyTimes-*' },
realclean => {
FILES => 'Genealogy-ObituaryDailyTimes-* lib/Genealogy/ObituaryDailyTimes/data'
Expand Down
12 changes: 4 additions & 8 deletions t/pod.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

use strict;
use warnings;
use Test::Most;

if(not $ENV{AUTHOR_TESTING}) {
plan(skip_all => 'Author tests not required for installation');
}
use Test::DescribeMe qw(author);
use Test::Most;
use Test::Needs { 'Test::Pod' => '1.22' };

# Ensure a recent version of Test::Pod
my $min_tp = 1.22;
eval "use Test::Pod $min_tp";
plan(skip_all => "Test::Pod $min_tp required for testing POD") if $@;
Test::Pod->import();

all_pod_files_ok();
1 change: 1 addition & 0 deletions t/version.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use strict;
use warnings;

use Test::DescribeMe qw(author);
use Test::Needs 'Test::Version';
use Test::Most;
Expand Down

0 comments on commit b63aede

Please sign in to comment.