polish/napi: switch from p7zip to 7-zip

PR:		260866, 261264
Submitted by:	Dominik Lisiak (maintainer)
This commit is contained in:
Max Brazhnikov 2022-01-17 19:45:40 +03:00
parent 3068373166
commit 8528974c36
3 changed files with 27 additions and 6 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= napi
PORTVERSION= 2.0.1
PORTREVISION= 1
CATEGORIES= polish multimedia
MAINTAINER= dominik.lisiak@bemsoft.pl
@ -7,7 +8,7 @@ COMMENT= Command line subtitles downloader for napiprojekt.pl
LICENSE= GPLv3
RUN_DEPENDS= 7z:archivers/p7zip \
RUN_DEPENDS= 7zz:archivers/7-zip \
base64:converters/base64 \
bash:shells/bash \
mediainfo:multimedia/mediainfo \

View File

@ -1,4 +1,4 @@
--- libs/libnapi_fs.sh.orig 2020-04-24 07:22:41 UTC
--- libs/libnapi_fs.sh.orig 2022-01-17 05:41:41 UTC
+++ libs/libnapi_fs.sh
@@ -54,7 +54,7 @@ _fs_configureStat_GV() {
# verify stat tool
@ -18,12 +18,21 @@
}
#
@@ -83,6 +85,8 @@ _fs_configureMd5_GV() {
# verify md5 tool
@@ -84,6 +86,8 @@ _fs_configureMd5_GV() {
___g_fsWrappers[$___g_fsMd5]="md5sum"
wrappers_isSystemDarwin &&
+ ___g_fsWrappers[$___g_fsMd5]="md5"
+ wrappers_isSystemFreeBSD &&
___g_fsWrappers[$___g_fsMd5]="md5"
+ wrappers_isSystemFreeBSD &&
+ ___g_fsWrappers[$___g_fsMd5]="md5"
}
#
@@ -105,7 +109,7 @@ _fs_configure7z_GV() {
local k=''
# use 7z or 7za only, 7zr doesn't support passwords
- declare -a t7zs=( '7za' '7z' )
+ declare -a t7zs=( '7za' '7z' '7zz' )
for k in "${t7zs[@]}"; do
tools_isDetected "$k" &&

View File

@ -0,0 +1,11 @@
--- libs/libnapi_tools.sh.orig 2022-01-17 07:45:13 UTC
+++ libs/libnapi_tools.sh
@@ -42,7 +42,7 @@ declare -a ___g_tools=( 'tr=1' 'printf=1' 'mktemp=1' '
'wc=1' 'dd=1' 'grep=1' 'seq=1' 'sed=1' 'cut=1' \
'base64=1' 'unlink=0' 'stat=1' 'basename=1' \
'dirname=1' 'cat=1' 'cp=1' 'mv=1' 'awk=1' \
- 'file=0' 'iconv=0' '7z|7za=0' 'md5|md5sum=1' \
+ 'file=0' 'iconv=0' '7z|7za|7zz=0' 'md5|md5sum=1' \
'fps:mediainfo=0' 'fps:mplayer|mplayer2=0' 'fps:ffmpeg|ffprobe=0' )
########################################################################