<pre style='margin:0'>
Chih-Hsuan Yen (yan12125) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fbe5904c2b10dce6b975cd1471394bb4b8eab77a">https://github.com/macports/macports-ports/commit/fbe5904c2b10dce6b975cd1471394bb4b8eab77a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fbe5904c2b10dce6b975cd1471394bb4b8eab77a
</span>Author: Chih-Hsuan Yen <yan12125@macports.org>
AuthorDate: Mon Apr 1 23:50:01 2019 +0800
<span style='display:block; white-space:pre;color:#404040;'> quazip: install the cmake module to an unversioned folder
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This patch was originally created to fix building issues with
</span><span style='display:block; white-space:pre;color:#404040;'> flatpak [1]. A nice addtion is that it eliminates the need to rebuild
</span><span style='display:block; white-space:pre;color:#404040;'> this port after each CMake update.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Revbump is necessary as prebuilt binaries contain files in
</span><span style='display:block; white-space:pre;color:#404040;'> ${prefix}/share/cmake-3.13, which is broken with CMake 3.14 anyway.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> [1] https://github.com/stachenov/quazip/pull/20
</span>---
archivers/quazip/Portfile | 4 +++-
archivers/quazip/files/fixcmake.patch | 22 ++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/quazip/Portfile b/archivers/quazip/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c9fff42..fc95e3d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/quazip/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/quazip/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,6 +7,7 @@ PortGroup github 1.0
</span> PortGroup qt5 1.0
github.setup stachenov quazip 0.7.6
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> # To match upstream SHA256 checksums
github.master_sites ${github.homepage}/archive/${git.branch}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,4 +28,5 @@ checksums rmd160 1d612f64c94c83ba291998d0ae6b9acae816d830 \
</span> sha256 4118a830a375a81211956611cc34b1b5b4ddc108c126287b91b40c2493046b70 \
size 149029
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append trac-57700.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append trac-57700.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fixcmake.patch
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/quazip/files/fixcmake.patch b/archivers/quazip/files/fixcmake.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f081f08
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/quazip/files/fixcmake.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From d5eaa8be998da2430ffd43e0eefa617cf1550ca3 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Aleix Pol <aleixpol@kde.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 31 Jan 2019 18:19:30 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Install the FindQuaZip.cmake in the right prefix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+It should go wherever CMAKE_INSTALL_PREFIX is installing.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This fixes the build on flatpak and should also fix it for other cross
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compilation setups.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CMakeLists.txt | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git CMakeLists.txt CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 539caa4..a43fefe 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -60,4 +60,4 @@ set(QUAZIP_LIB_TARGET_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX} CACHE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_subdirectory(quazip)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-install(FILES FindQuaZip.cmake RENAME FindQuaZip${QUAZIP_LIB_VERSION_SUFFIX}.cmake DESTINATION ${CMAKE_ROOT}/Modules)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++install(FILES FindQuaZip.cmake RENAME FindQuaZip${QUAZIP_LIB_VERSION_SUFFIX}.cmake DESTINATION share/cmake)
</span></pre><pre style='margin:0'>
</pre>