sci-geosciences/qgis: Fix QML plugins install path
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 28 Apr 2019 10:55:34 +0000 (12:55 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 28 Apr 2019 15:26:45 +0000 (17:26 +0200)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
sci-geosciences/qgis/files/qgis-3.4.7-default-qmldir.patch [new file with mode: 0644]
sci-geosciences/qgis/qgis-9999.ebuild

diff --git a/sci-geosciences/qgis/files/qgis-3.4.7-default-qmldir.patch b/sci-geosciences/qgis/files/qgis-3.4.7-default-qmldir.patch
new file mode 100644 (file)
index 0000000..97f8ac1
--- /dev/null
@@ -0,0 +1,25 @@
+From 9d095f7d502cbcea8c70c127be322568b71f6663 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun, 28 Apr 2019 12:41:51 +0200
+Subject: [PATCH] cmake: Fix DEFAULT_QML_DIR path to comply with LFS layout
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4626042ca4..fe93ff3c4f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -660,7 +660,7 @@ IF (WITH_CORE)
+       SET (DEFAULT_LIBEXEC_SUBDIR lib${LIB_SUFFIX}/qgis)
+       SET (DEFAULT_PLUGIN_SUBDIR  lib${LIB_SUFFIX}/qgis/plugins)
+       SET (DEFAULT_INCLUDE_SUBDIR include/qgis)
+-      SET (DEFAULT_QML_SUBDIR     qml)
++      SET (DEFAULT_QML_SUBDIR     ${DEFAULT_DATA_SUBDIR}/qml)
+       SET (DEFAULT_SERVER_MODULE_SUBDIR ${DEFAULT_LIBEXEC_SUBDIR}/server)
+     ENDIF (APPLE)
+-- 
+2.21.0
+
index 6aa2463ff1cdf1f20b96f7bcf50d0397b0149b42..a541d6c46fd26fff71406203292929017cd521d2 100644 (file)
@@ -108,6 +108,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch"
        # TODO upstream
        "${FILESDIR}/${PN}-3.4.7-featuresummary.patch"
+       "${FILESDIR}/${PN}-3.4.7-default-qmldir.patch"
 )
 
 pkg_setup() {
@@ -120,7 +121,7 @@ src_prepare() {
 
 src_configure() {
        local mycmakeargs=(
-               -DQGIS_MANUAL_SUBDIR=/share/man/
+               -DQGIS_MANUAL_SUBDIR=share/man/
                -DQGIS_LIB_SUBDIR=$(get_libdir)
                -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis
                -DQWT_INCLUDE_DIR=/usr/include/qwt6