git: fba2e3af1da4 - main - archivers/p5-IO-Compress-Lzma: Use 7-zip instead of p7zip

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 11 Jan 2022 18:53:39 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fba2e3af1da46093efd74802bf2c34221a74ae05

commit fba2e3af1da46093efd74802bf2c34221a74ae05
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-11 17:13:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-11 18:44:07 +0000

    archivers/p5-IO-Compress-Lzma: Use 7-zip instead of p7zip
    
    Suggested by:   makc
---
 archivers/p5-IO-Compress-Lzma/Makefile               |  6 +++---
 .../files/patch-t-050interop-zip-lzma.t              | 20 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/archivers/p5-IO-Compress-Lzma/Makefile b/archivers/p5-IO-Compress-Lzma/Makefile
index 333496e7933e..fa76c76ea71e 100644
--- a/archivers/p5-IO-Compress-Lzma/Makefile
+++ b/archivers/p5-IO-Compress-Lzma/Makefile
@@ -15,9 +15,9 @@ LICENSE_COMB=	dual
 BUILD_DEPENDS=	${RUN_DEPENDS}
 RUN_DEPENDS=	p5-Compress-Raw-Lzma>=${PORTVERSION}:archivers/p5-Compress-Raw-Lzma \
 		p5-IO-Compress>=${PORTVERSION}:archivers/p5-IO-Compress
-TEST_DEPENDS=	p5-IO-String>=0:devel/p5-IO-String \
-		p5-Test-Pod>=1:devel/p5-Test-Pod \
-		p7zip>=0:archivers/p7zip
+TEST_DEPENDS=	7zz:archivers/7-zip \
+		p5-IO-String>=0:devel/p5-IO-String \
+		p5-Test-Pod>=1:devel/p5-Test-Pod
 
 USES=		perl5
 USE_PERL5=	configure
diff --git a/archivers/p5-IO-Compress-Lzma/files/patch-t-050interop-zip-lzma.t b/archivers/p5-IO-Compress-Lzma/files/patch-t-050interop-zip-lzma.t
new file mode 100644
index 000000000000..b02b72750681
--- /dev/null
+++ b/archivers/p5-IO-Compress-Lzma/files/patch-t-050interop-zip-lzma.t
@@ -0,0 +1,20 @@
+--- t/050interop-zip-lzma.t.orig	2020-10-31 11:10:56 UTC
++++ t/050interop-zip-lzma.t
+@@ -22,7 +22,7 @@ BEGIN {
+ use bytes;
+ use warnings;
+ 
+-my $P7ZIP ='7z';
++my $P7ZIP ='7zz';
+ 
+ 
+ sub ExternalP7ZipWorks
+@@ -115,7 +115,7 @@ sub memError
+ BEGIN {
+ 
+     # Check external 7za exists
+-    my $p7zip = '7z';
++    my $p7zip = '7zz';
+     for my $dir (reverse split ":", $ENV{PATH})
+     {
+         $P7ZIP = "$dir/$p7zip"