git: 0de37f122108 - main - lang/julia: switch from p7zip to 7-Zip

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Sun, 09 Jan 2022 21:13:37 UTC
The branch main has been updated by makc:

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

commit 0de37f12210842c0a9dfb07844e1b9d83ea13df5
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2022-01-09 21:11:26 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2022-01-09 21:11:26 +0000

    lang/julia: switch from p7zip to 7-Zip
    
    PR:             261052
    Submitted by:   Eric Reardon (maintainer)
---
 lang/julia/Makefile                  |  3 ++-
 lang/julia/files/patch-base_Makefile | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/lang/julia/Makefile b/lang/julia/Makefile
index 29635af78d51..cac210d03cf5 100644
--- a/lang/julia/Makefile
+++ b/lang/julia/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	julia
 DISTVERSION=	1.7.1
 DISTVERSIONSUFFIX=	-full
+PORTREVISION=	1
 CATEGORIES=	lang math
 MASTER_SITES=	https://github.com/JuliaLang/julia/releases/download/v${DISTVERSION}/
 
@@ -15,7 +16,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.md
 ONLY_FOR_ARCHS=		amd64
 ONLY_FOR_ARCHS_REASON=	Has not been ported to this platform for freebsd
 
-MY_DEPENDS=	7z:archivers/p7zip
+MY_DEPENDS=	7zz:archivers/7-zip
 BUILD_DEPENDS=	patchelf:sysutils/patchelf \
 		cmake:devel/cmake \
 		${MY_DEPENDS}
diff --git a/lang/julia/files/patch-base_Makefile b/lang/julia/files/patch-base_Makefile
new file mode 100644
index 000000000000..2f4734b51e67
--- /dev/null
+++ b/lang/julia/files/patch-base_Makefile
@@ -0,0 +1,11 @@
+--- base/Makefile.orig	2022-01-04 19:47:19 UTC
++++ base/Makefile
+@@ -190,7 +190,7 @@ symlink_p7zip: $(build_bindir)/7z$(EXE)
+ 
+ ifneq ($(USE_SYSTEM_P7ZIP),0)
+ SYMLINK_SYSTEM_LIBRARIES += symlink_p7zip
+-7Z_PATH := $(shell which 7z$(EXE))
++7Z_PATH := $(shell which 7zz$(EXE))
+ endif
+ 
+ $(build_bindir)/7z$(EXE):