media-video/subtitlecomposer: patch 0.6.6 to work with CMake 3.3
authorMaciej Mrozowski <reavertm@gentoo.org>
Sat, 13 Oct 2018 05:27:08 +0000 (07:27 +0200)
committerMaciej Mrozowski <reavertm@gentoo.org>
Thu, 1 Nov 2018 09:43:29 +0000 (10:43 +0100)
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Signed-off-by: Maciej Mrozowski <reavertm@gentoo.org>
media-video/subtitlecomposer/files/subtitlecomposer-0.6.6-cmake.patch [new file with mode: 0644]
media-video/subtitlecomposer/subtitlecomposer-0.6.6.ebuild

diff --git a/media-video/subtitlecomposer/files/subtitlecomposer-0.6.6-cmake.patch b/media-video/subtitlecomposer/files/subtitlecomposer-0.6.6-cmake.patch
new file mode 100644 (file)
index 0000000..4c97e15
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ruN subtitlecomposer-0.6.6/CMakeLists.txt subtitlecomposer-my/CMakeLists.txt
+--- subtitlecomposer-0.6.6/CMakeLists.txt      2018-02-11 03:08:46.000000000 +0100
++++ subtitlecomposer-my/CMakeLists.txt 2018-10-13 07:19:22.163074971 +0200
+@@ -12,7 +12,7 @@
+ 
+ cmake_policy(SET CMP0043 NEW)
+ cmake_policy(SET CMP0063 NEW)
+-cmake_policy(SET CMP0071 NEW)
++#cmake_policy(SET CMP0071 NEW) # since cmake-3.10
+ 
+ include(KDEInstallDirs)
+ include(KDECMakeSettings)
index 57cb8983dbf197fa5c6d634ed3d197d8cf32157d..55b113a40f88a9b2753c01f60c45f80a5c3a33f5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -54,6 +54,10 @@ DEPEND="${COMMON_DEPEND}
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}/${P}-cmake.patch"
+)
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_DISABLE_FIND_PACKAGE_PocketSphinx=ON # bug 616706