diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-03-17 23:09:06 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-03-17 23:40:09 +0100 |
commit | a56a804593126014855c235b7f39c7c16f15af2f (patch) | |
tree | 5032d9864f3dd68b887c6f97a0ffe001a4b69583 /kde-frameworks | |
parent | package.mask: resurrect app-misc/fdutils (diff) | |
download | gentoo-a56a804593126014855c235b7f39c7c16f15af2f.tar.gz gentoo-a56a804593126014855c235b7f39c7c16f15af2f.tar.bz2 gentoo-a56a804593126014855c235b7f39c7c16f15af2f.zip |
kde-frameworks/extra-cmake-modules: Fix unused CMake variable warning
Closes: https://bugs.gentoo.org/680256
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks')
-rw-r--r-- | kde-frameworks/extra-cmake-modules/extra-cmake-modules-5.56.0.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kde-frameworks/extra-cmake-modules/extra-cmake-modules-5.56.0.ebuild b/kde-frameworks/extra-cmake-modules/extra-cmake-modules-5.56.0.ebuild index 3a8e3d7b3825..b32d244d967e 100644 --- a/kde-frameworks/extra-cmake-modules/extra-cmake-modules-5.56.0.ebuild +++ b/kde-frameworks/extra-cmake-modules/extra-cmake-modules-5.56.0.ebuild @@ -43,6 +43,13 @@ pkg_setup() { use doc && python-any-r1_pkg_setup } +src_prepare() { + kde5_src_prepare + # Requires PyQt5, bug #680256 + sed -i -e "/^if(NOT SIP_Qt5Core_Mod_FILE)/s/NOT SIP_Qt5Core_Mod_FILE/TRUE/" \ + tests/CMakeLists.txt || die "failed to disable GenerateSipBindings tests" +} + src_configure() { local mycmakeargs=( -DBUILD_QTHELP_DOCS=$(usex doc) @@ -50,7 +57,6 @@ src_configure() { -DBUILD_MAN_DOCS=$(usex doc) -DDOC_INSTALL_DIR=/usr/share/doc/"${PF}" ) - use test && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_PythonModuleGeneration=ON ) kde5_src_configure } |