diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-01-26 09:35:20 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-01-26 09:46:16 +0100 |
commit | 488d5319cf31630b221a1abe66e284df51fdd11a (patch) | |
tree | 22d3b2f3a1d8f4e9e8925e76bf7baaa05fbfadfc /media-sound/tomahawk | |
parent | dev-util/sccache: fix copypaste error in server initd (diff) | |
download | gentoo-488d5319cf31630b221a1abe66e284df51fdd11a.tar.gz gentoo-488d5319cf31630b221a1abe66e284df51fdd11a.tar.bz2 gentoo-488d5319cf31630b221a1abe66e284df51fdd11a.zip |
media-sound/tomahawk: Try to fix build with <cmake-3.10
Bug: https://bugs.gentoo.org/674826
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound/tomahawk')
-rw-r--r-- | media-sound/tomahawk/files/tomahawk-0.9.0_pre20181030-cmakepolicy.patch | 37 | ||||
-rw-r--r-- | media-sound/tomahawk/tomahawk-0.9.0_pre20181030.ebuild | 7 |
2 files changed, 42 insertions, 2 deletions
diff --git a/media-sound/tomahawk/files/tomahawk-0.9.0_pre20181030-cmakepolicy.patch b/media-sound/tomahawk/files/tomahawk-0.9.0_pre20181030-cmakepolicy.patch new file mode 100644 index 000000000000..7ddf116eeccc --- /dev/null +++ b/media-sound/tomahawk/files/tomahawk-0.9.0_pre20181030-cmakepolicy.patch @@ -0,0 +1,37 @@ +From 663981b4dd28fca6cac0b079bed26c411e7d1722 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Fri, 25 Jan 2019 21:13:05 +0100 +Subject: [PATCH] Fix build with <cmake-3.10 + +--- + CMakeLists.txt | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b44d2ee43..9422a808e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,14 +2,18 @@ PROJECT( tomahawk ) + CMAKE_MINIMUM_REQUIRED( VERSION 2.8.12 ) + CMAKE_POLICY(SET CMP0017 NEW) + CMAKE_POLICY(SET CMP0022 NEW) +-CMAKE_POLICY(SET CMP0075 NEW) ++IF(POLICY CMP0075) ++ CMAKE_POLICY(SET CMP0075 NEW) ++ENDIF() + + # TODO: + # Update to NEW and fix things up + CMAKE_POLICY(SET CMP0023 NEW) + + # Let AUTOMOC and AUTOUIC process generated files +-CMAKE_POLICY(SET CMP0071 NEW) ++IF(POLICY CMP0071) ++ CMAKE_POLICY(SET CMP0071 NEW) ++ENDIF() + + # TODO: + # Disable automatic qtmain linking +-- +2.20.1 + diff --git a/media-sound/tomahawk/tomahawk-0.9.0_pre20181030.ebuild b/media-sound/tomahawk/tomahawk-0.9.0_pre20181030.ebuild index b9e80fa1ed9e..82c9537fd054 100644 --- a/media-sound/tomahawk/tomahawk-0.9.0_pre20181030.ebuild +++ b/media-sound/tomahawk/tomahawk-0.9.0_pre20181030.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -53,7 +53,10 @@ RDEPEND="${COMMON_DEPEND} S="${WORKDIR}/${PN}-${COMMIT}" -PATCHES=( "${FILESDIR}/${P}-fix-warning.patch" ) +PATCHES=( + "${FILESDIR}/${P}-fix-warning.patch" + "${FILESDIR}/${P}-cmakepolicy.patch" # bug 674826 +) src_configure() { local mycmakeargs=( |