Skip to content

Commit

Permalink
Use gtar to create a distribution on Macs
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 28, 2024
1 parent 4d4e714 commit 3733b7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Revision history for CGI-Info
Mark Go-http-client as a robot
Support CircleCI
Fix t/script.t which failed on some platforms
Use gtar to create a distribution on Macs

0.82 Thu Aug 8 07:51:02 EDT 2024
Mark ClaudeBot as a robot
Expand Down
12 changes: 10 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ if(!-w $tmpdir) {
exit(0);
}

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

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

WriteMakefile(
NAME => 'CGI::Info',
AUTHOR => q{Nigel Horne <[email protected]>},
Expand Down Expand Up @@ -56,8 +65,7 @@ WriteMakefile(
'Class::Autouse' => 0,
'namespace::clean' => 0,
'Sys::Path' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
}, dist => $distargs,
clean => { FILES => 'CGI-Info-*' },
# META_ADD => {
# provides => {}
Expand Down

0 comments on commit 3733b7b

Please sign in to comment.