summaryrefslogtreecommitdiff
path: root/media-gfx/nomacs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-03 10:28:17 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-03 10:28:17 +0000
commitd99093fb4bb5652015c06274d64083daa2439e4f (patch)
treecf61513204d97974179580065e85df5c8009087c /media-gfx/nomacs
parent463397cf1e064185110fe57c568d73f99a06f5d1 (diff)
gentoo resync : 03.03.2021
Diffstat (limited to 'media-gfx/nomacs')
-rw-r--r--media-gfx/nomacs/Manifest3
-rw-r--r--media-gfx/nomacs/files/nomacs-3.16.224-quazip1.patch127
-rw-r--r--media-gfx/nomacs/nomacs-3.16.224-r2.ebuild (renamed from media-gfx/nomacs/nomacs-3.16.224-r1.ebuild)4
3 files changed, 132 insertions, 2 deletions
diff --git a/media-gfx/nomacs/Manifest b/media-gfx/nomacs/Manifest
index e032ea4d5a91..c1369af9ec23 100644
--- a/media-gfx/nomacs/Manifest
+++ b/media-gfx/nomacs/Manifest
@@ -1,4 +1,5 @@
+AUX nomacs-3.16.224-quazip1.patch 3844 BLAKE2B 5d92aa57971f137e5009db945f739eaff57bbf2a5ea6ce842dafd51f0107f6c6dfb349da719e935e732cb7736d9a97d96806ee48fdd97ff953863ba920aff2ab SHA512 888c8125edcbbbc3034b132f776bf59e53e6259e66c55f4df4e9c7fa8a874928a2ea766b52c6ef8dcc0d493f81982ca4cb6ac737f677e3948dcedb9052603e9f
DIST nomacs-3.16.224.tar.gz 1932366 BLAKE2B 4a2dc6ef70b0ae5dc9c9397bd2c88ede0db2bb8660e1907d08b36c4a9cf5a9bd151180aa4b2d6b5f529c1786004a6621eff88fa4bc851d60835e8ba6d6269602 SHA512 7ca8e713eedd71bc3dd3804a9a09ece15badb74949b155ea4da72a0ea129be173c8d0951604a6139d4490525cd420da8635773c11f0d133f666a48dcd9064257
DIST nomacs-plugins-3.16.tar.gz 561522 BLAKE2B 2bda4f36d56709653f6696af3404e416fd2d9fe7fa11de9636643c728028018ac769df3e2e519799322c5c42006cdc114d0e6406f9f60294234b07d9fd8d8409 SHA512 cd72f6ddbe3e07d7ed97f08405bac7574f4f3285c81e835f5630e011c8a9b105f23d892fed8084cb35ce521aca5524db071d0edb8bb04850dd2209d9ed019747
-EBUILD nomacs-3.16.224-r1.ebuild 1859 BLAKE2B 3ace96921a28506b8a143c320e36bf6d558339f06e5b185cb2d60948d6215cfd68cc6aab54a6b7dbbe0311fce78671b17638ac557df40891a568c3b5c50addec SHA512 a8476b8ed5ebe3fa8feb5c151245327650f3c63f652129aa407d70658a2ad41195992c64d2ab1ad24fbb4e6cee7d5e63a935668adb909f190bf0189d5a6e706e
+EBUILD nomacs-3.16.224-r2.ebuild 1906 BLAKE2B 9832da7bd304ba68983a470c0a190cb25b9960ff168a2ef57e4859c24b0220834714788d3c122875504b4fa203a3c811582b2571541c97c100c0f7b39fd12740 SHA512 00271ea0a48a50396038dcca7f08442ebcb63676eaf8fbd5a5c54412a8b238d3f2d1bf4f2e11561f35576b25fe487a979004738aa5ad04edd97429f34d820fa2
MISC metadata.xml 594 BLAKE2B 3e4f800e489a388987f8942f433fad19e378644cb2aecd66d7eacbca167fa12597967bc4bef21260d266aa5553c1b103cc4df8167fbba8655a346e25100e66a6 SHA512 2f3ee7d525fff3d6ca2793d96555dcfba34df5b15cd2879e640aa51b5ccd34e2f466c2a5cceab90050af8c3d668c2d57fd88c136d830343da7313c8eaea247c9
diff --git a/media-gfx/nomacs/files/nomacs-3.16.224-quazip1.patch b/media-gfx/nomacs/files/nomacs-3.16.224-quazip1.patch
new file mode 100644
index 000000000000..06f6b8c2fb81
--- /dev/null
+++ b/media-gfx/nomacs/files/nomacs-3.16.224-quazip1.patch
@@ -0,0 +1,127 @@
+From b4a1e98a83598072ea6d720ae4d56d380bee5a75 Mon Sep 17 00:00:00 2001
+From: Petr Vanek <petr@yarpen.cz>
+Date: Sun, 15 Nov 2020 19:15:59 +0100
+Subject: [PATCH] fixed #569 Build fails with quazip 1.0 (#576)
+
+---
+ cmake/Unix.cmake | 28 +++++++++++++++------
+ src/DkCore/DkBasicLoader.cpp | 4 +++
+ src/DkCore/DkImageContainer.cpp | 4 +++
+ src/DkCore/DkImageLoader.cpp | 6 ++++-
+ src/DkGui/DkDialog.cpp | 4 +++
+ 5 files changed, 37 insertions(+), 9 deletions(-)
+
+diff --git a/cmake/Unix.cmake b/cmake/Unix.cmake
+index 5567084b..c90ba320 100644
+--- a/cmake/Unix.cmake
++++ b/cmake/Unix.cmake
+@@ -102,14 +102,26 @@ unset(QT_ROOT CACHE)
+
+ if(ENABLE_QUAZIP)
+ if(USE_SYSTEM_QUAZIP)
+- SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+-
+- find_package(QuaZip5 QUIET)
+- if(NOT QUAZIP_FOUND)
+- message(FATAL_ERROR "QUAZIP not found. It's mandatory when used with ENABLE_QUAZIP enabled, you can also disable USE_SYSTEM_QUAZIP")
+- else()
+- add_definitions(-DWITH_QUAZIP)
+- endif()
++ # Let's try QuaZip1 first (it's the bright future)
++ find_package(QuaZip-Qt5 QUIET)
++ if (QuaZip-Qt5_FOUND)
++ message(STATUS "QUAZIP: QuaZip-1 for Qt5 found")
++ set(QUAZIP_LIBRARIES QuaZip::QuaZip)
++ add_definitions(-DWITH_QUAZIP1)
++ else ()
++ message(WARNING "QUAZIP: 1.x not found. Trying to find 0.x")
++ # QuaZip < 1.0. This leg can be removed (including cmake/FindQuaZip5.cmake)
++ # ater the final migration to 1.x in Linux distros
++ SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
++
++ find_package(QuaZip5 QUIET)
++ if(NOT QUAZIP_FOUND)
++ message(FATAL_ERROR "QUAZIP: even 0.x not found. It's mandatory when used with ENABLE_QUAZIP enabled, you can also disable USE_SYSTEM_QUAZIP")
++ endif()
++
++ endif (QuaZip-Qt5_FOUND)
++ # we have any QuaZip after all
++ add_definitions(-DWITH_QUAZIP)
+ else()
+ find_package(ZLIB REQUIRED)
+ set(QUAZIP_INCLUDE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/quazip-0.7/quazip ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/quazip-0.7/)
+diff --git a/src/DkCore/DkBasicLoader.cpp b/src/DkCore/DkBasicLoader.cpp
+index 7f9e889c..b7edfd43 100644
+--- a/src/DkCore/DkBasicLoader.cpp
++++ b/src/DkCore/DkBasicLoader.cpp
+@@ -54,8 +54,12 @@
+
+ // quazip
+ #ifdef WITH_QUAZIP
++#ifdef WITH_QUAZIP1
++#include <quazip/JlCompress.h>
++#else
+ #include <quazip5/JlCompress.h>
+ #endif
++#endif
+
+ // opencv
+ #ifdef WITH_OPENCV
+diff --git a/src/DkCore/DkImageContainer.cpp b/src/DkCore/DkImageContainer.cpp
+index 810994d3..150da9c2 100644
+--- a/src/DkCore/DkImageContainer.cpp
++++ b/src/DkCore/DkImageContainer.cpp
+@@ -41,8 +41,12 @@
+
+ // quazip
+ #ifdef WITH_QUAZIP
++#ifdef WITH_QUAZIP1
++#include <quazip/JlCompress.h>
++#else
+ #include <quazip5/JlCompress.h>
+ #endif
++#endif
+ #pragma warning(pop) // no warnings from includes - end
+
+ #pragma warning(disable: 4251) // TODO: remove
+diff --git a/src/DkCore/DkImageLoader.cpp b/src/DkCore/DkImageLoader.cpp
+index 09d25d23..e4186f2b 100644
+--- a/src/DkCore/DkImageLoader.cpp
++++ b/src/DkCore/DkImageLoader.cpp
+@@ -79,8 +79,12 @@
+
+ // quazip
+ #ifdef WITH_QUAZIP
++#ifdef WITH_QUAZIP1
++#include <quazip/JlCompress.h>
++#else
+ #include <quazip5/JlCompress.h>
+ #endif
++#endif
+
+ // opencv
+ #ifdef WITH_OPENCV
+@@ -2212,4 +2216,4 @@ QString DkImageLoader::fileName() const {
+ return mCurrentImage->fileName();
+ }
+
+-}
+\ No newline at end of file
++}
+diff --git a/src/DkGui/DkDialog.cpp b/src/DkGui/DkDialog.cpp
+index 008c9a3b..85842eca 100644
+--- a/src/DkGui/DkDialog.cpp
++++ b/src/DkGui/DkDialog.cpp
+@@ -97,8 +97,12 @@
+
+ // quazip
+ #ifdef WITH_QUAZIP
++#ifdef WITH_QUAZIP1
++#include <quazip/JlCompress.h>
++#else
+ #include <quazip5/JlCompress.h>
+ #endif
++#endif
+
+ #pragma warning(pop) // no warnings from includes - end
+
diff --git a/media-gfx/nomacs/nomacs-3.16.224-r1.ebuild b/media-gfx/nomacs/nomacs-3.16.224-r2.ebuild
index efac4a65c05b..9c6f50df1606 100644
--- a/media-gfx/nomacs/nomacs-3.16.224-r1.ebuild
+++ b/media-gfx/nomacs/nomacs-3.16.224-r2.ebuild
@@ -36,7 +36,7 @@ RDEPEND="
dev-qt/qtimageformats:5
media-libs/tiff
)
- zip? ( dev-libs/quazip:0 )
+ zip? ( dev-libs/quazip:0= )
"
DEPEND="${RDEPEND}"
BDEPEND="
@@ -48,6 +48,8 @@ S="${WORKDIR}/${P}/ImageLounge"
DOCS=( src/changelog.txt )
+PATCHES=( "${FILESDIR}"/${P}-quazip1.patch )
+
src_prepare() {
if use plugins ; then
rmdir plugins || die