git: 1938e368e494 - main - archivers/unfoo: update to 1.0.8

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

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

commit 1938e368e49435266823f4b9951fd301f9ccf59b
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2022-01-09 21:11:27 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2022-01-09 21:11:27 +0000

    archivers/unfoo: update to 1.0.8
    
    - Follow new upstream
    - Switch from p7zip to 7-Zip
    
    PR:             260866
---
 archivers/unfoo/Makefile          |  6 +++---
 archivers/unfoo/distinfo          |  5 +++--
 archivers/unfoo/files/patch-unfoo | 17 +++++++++++++++++
 3 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/archivers/unfoo/Makefile b/archivers/unfoo/Makefile
index 6b30d90c9438..c85b3e00f41a 100644
--- a/archivers/unfoo/Makefile
+++ b/archivers/unfoo/Makefile
@@ -1,7 +1,7 @@
 # Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
 
 PORTNAME=	unfoo
-PORTVERSION=	1.0.7
+PORTVERSION=	1.0.8
 DISTVERSIONPREFIX=	v
 CATEGORIES=	archivers
 
@@ -13,10 +13,10 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	unace:archivers/unace \
 		unrar:archivers/unrar \
-		7z:archivers/p7zip
+		7zz:archivers/7-zip
 
 USE_GITHUB=	yes
-GH_ACCOUNT=	vitaminmoo
+GH_ACCOUNT=	jlec
 
 NO_BUILD=	yes
 NO_ARCH=	yes
diff --git a/archivers/unfoo/distinfo b/archivers/unfoo/distinfo
index 2ab28b9f7737..b2b1394aebbd 100644
--- a/archivers/unfoo/distinfo
+++ b/archivers/unfoo/distinfo
@@ -1,2 +1,3 @@
-SHA256 (vitaminmoo-unfoo-v1.0.7_GH0.tar.gz) = 0c0c1692c66a78ef673a5b1b5248184923782e375184a1d532330501e512f6ff
-SIZE (vitaminmoo-unfoo-v1.0.7_GH0.tar.gz) = 31808
+TIMESTAMP = 1641395014
+SHA256 (jlec-unfoo-v1.0.8_GH0.tar.gz) = badc62603f1f7293032b36a1a3f1051b715b31895700d116d74cba4cb68af1e5
+SIZE (jlec-unfoo-v1.0.8_GH0.tar.gz) = 31862
diff --git a/archivers/unfoo/files/patch-unfoo b/archivers/unfoo/files/patch-unfoo
new file mode 100644
index 000000000000..8ae1241d7415
--- /dev/null
+++ b/archivers/unfoo/files/patch-unfoo
@@ -0,0 +1,17 @@
+--- unfoo.orig	2014-07-17 08:18:00 UTC
++++ unfoo
+@@ -239,11 +239,11 @@ for i in "$@"; do
+         # Packed with 7zip, thanks Komoto
+         *.7z)
+             echo -n"$IAM: Unpacking 7zip archive $ITIS..."
+-            if [ $(7z l -slt "$i" | grep Path | grep -v "$i" | cut -d' ' -f3 | need_subdir) == 1 ]; then
++            if [ $(7zz l -slt "$i" | grep Path | grep -v "$i" | cut -d' ' -f3 | need_subdir) == 1 ]; then
+                 dirname=$(basename "$i" .7z)
+-                7z x -o"$dirname" "$i"
++                7zz x -o"$dirname" "$i"
+             else
+-                7z x "$i"
++                7zz x "$i"
+             fi
+             check_success
+             ;;