graphics/qcomicbook: switch from p7zip to 7-zip

PR:	260866
This commit is contained in:
Max Brazhnikov 2022-01-12 23:07:32 +03:00
parent b63918758d
commit 04a6dbb444
2 changed files with 26 additions and 1 deletions

View file

@ -21,7 +21,7 @@ USE_QT= core gui printsupport widgets x11extras\
OPTIONS_DEFINE= 7ZIP ACE RAR
7ZIP_DESC= 7-Zip (.cb7) comic book archives support
7ZIP_RUN_DEPENDS= 7z:archivers/p7zip
7ZIP_RUN_DEPENDS= 7zz:archivers/7-zip
ACE_DESC= ACE (.cba) comic book archives support
ACE_RUN_DEPENDS= unace:archivers/unace

View file

@ -0,0 +1,25 @@
--- src/Archivers/P7zipArchiverStrategy.cpp.orig 2016-11-22 17:45:10 UTC
+++ src/Archivers/P7zipArchiverStrategy.cpp
@@ -30,7 +30,7 @@ void P7zipArchiverStrategy::configure()
addExtension(".7z");
addExtension(".cb7");
- setExecutables("7z", "7zr");
+ setExecutables("7z", "7zz");
if (which("7z") != QString::null)
{
@@ -38,10 +38,10 @@ void P7zipArchiverStrategy::configure()
setListArguments("7z l @F");
setSupported();
}
- else if (which("7zr") != QString::null)
+ else if (which("7zz") != QString::null)
{
- setExtractArguments("7zr x @F");
- setListArguments("7zr l @F");
+ setExtractArguments("7zz x @F");
+ setListArguments("7zz l @F");
setSupported();
}
}