From 3733b7b64998da7a950871a92eda2c04ca671bb7 Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Wed, 28 Aug 2024 15:12:14 -0400 Subject: [PATCH] Use gtar to create a distribution on Macs --- Changes | 1 + Makefile.PL | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index cae4ab1..a32e583 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/Makefile.PL b/Makefile.PL index b540583..4422089 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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 }, @@ -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 => {}