Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/libkexiv2/files/, kde-apps/libkexiv2/
Date: Thu, 07 Feb 2019 13:01:06
Message-Id: 1549544397.047f89f64f35c06f5b028a333a8025064395cea2.asturm@gentoo
1 commit: 047f89f64f35c06f5b028a333a8025064395cea2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 6 22:50:00 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 7 12:59:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=047f89f6
7
8 kde-apps/libkexiv2: Backport exiv2-0.27 support to 18.08.3
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 .../libkexiv2/files/libkexiv2-18.08.3-cmake.patch | 67 ++++++++++++++++++++++
14 kde-apps/libkexiv2/libkexiv2-18.08.3-r1.ebuild | 24 ++++++++
15 2 files changed, 91 insertions(+)
16
17 diff --git a/kde-apps/libkexiv2/files/libkexiv2-18.08.3-cmake.patch b/kde-apps/libkexiv2/files/libkexiv2-18.08.3-cmake.patch
18 new file mode 100644
19 index 00000000000..5b8ce9c30c0
20 --- /dev/null
21 +++ b/kde-apps/libkexiv2/files/libkexiv2-18.08.3-cmake.patch
22 @@ -0,0 +1,67 @@
23 +From d7e3f14367acaefae38d28ba8d82f2e7aa7a2091 Mon Sep 17 00:00:00 2001
24 +From: Aleix Pol <aleixpol@×××.org>
25 +Date: Tue, 25 Sep 2018 16:27:02 +0200
26 +Subject: [PATCH 1/2] Make cmake 3.0 the minimum cmake version
27 +
28 +Should fix the build on macOS.
29 +---
30 + CMakeLists.txt | 2 +-
31 + 1 file changed, 1 insertion(+), 1 deletion(-)
32 +
33 +diff --git a/CMakeLists.txt b/CMakeLists.txt
34 +index 3b1f345..4d3b585 100644
35 +--- a/CMakeLists.txt
36 ++++ b/CMakeLists.txt
37 +@@ -9,7 +9,7 @@ project(libkexiv2)
38 + message(STATUS "----------------------------------------------------------------------------------")
39 + message(STATUS "Starting CMake configuration for: ${PROJECT_NAME}")
40 +
41 +-set(CMAKE_MIN_VERSION "2.8.12")
42 ++set(CMAKE_MIN_VERSION "3.0.0")
43 + set(ECM_MIN_VERSION "1.1.0")
44 + set(REQUIRED_QT_VERSION "5.2.0")
45 + set(EXIV2_MIN_VERSION "0.24")
46 +--
47 +2.20.1
48 +
49 +
50 +From 2772f91f2a494ed1219f1bb7c6cf3e317892e3c4 Mon Sep 17 00:00:00 2001
51 +From: Hannah von Reth <vonreth@×××.org>
52 +Date: Tue, 25 Sep 2018 16:59:20 +0200
53 +Subject: [PATCH 2/2] Initialize cmake project after cmake_minimum_required was
54 + set
55 +
56 +---
57 + CMakeLists.txt | 10 +++++-----
58 + 1 file changed, 5 insertions(+), 5 deletions(-)
59 +
60 +diff --git a/CMakeLists.txt b/CMakeLists.txt
61 +index 4d3b585..d13ef27 100644
62 +--- a/CMakeLists.txt
63 ++++ b/CMakeLists.txt
64 +@@ -4,11 +4,6 @@
65 + # Redistribution and use is allowed according to the terms of the BSD license.
66 + # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
67 +
68 +-project(libkexiv2)
69 +-
70 +-message(STATUS "----------------------------------------------------------------------------------")
71 +-message(STATUS "Starting CMake configuration for: ${PROJECT_NAME}")
72 +-
73 + set(CMAKE_MIN_VERSION "3.0.0")
74 + set(ECM_MIN_VERSION "1.1.0")
75 + set(REQUIRED_QT_VERSION "5.2.0")
76 +@@ -16,6 +11,11 @@ set(EXIV2_MIN_VERSION "0.24")
77 +
78 + cmake_minimum_required(VERSION ${CMAKE_MIN_VERSION})
79 +
80 ++project(libkexiv2)
81 ++
82 ++message(STATUS "----------------------------------------------------------------------------------")
83 ++message(STATUS "Starting CMake configuration for: ${PROJECT_NAME}")
84 ++
85 + # =======================================================
86 + # Information to update before to release this library.
87 +
88 +--
89 +2.20.1
90
91 diff --git a/kde-apps/libkexiv2/libkexiv2-18.08.3-r1.ebuild b/kde-apps/libkexiv2/libkexiv2-18.08.3-r1.ebuild
92 new file mode 100644
93 index 00000000000..abc3e414596
94 --- /dev/null
95 +++ b/kde-apps/libkexiv2/libkexiv2-18.08.3-r1.ebuild
96 @@ -0,0 +1,24 @@
97 +# Copyright 1999-2019 Gentoo Authors
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI=6
101 +
102 +FRAMEWORKS_MINIMAL="5.54.0"
103 +KDE_BLOCK_SLOT4="false"
104 +inherit kde5
105 +
106 +DESCRIPTION="KDE Image Plugin Interface: an exiv2 library wrapper"
107 +LICENSE="GPL-2+"
108 +KEYWORDS="~amd64 ~x86"
109 +IUSE="+xmp"
110 +
111 +DEPEND="
112 + $(add_qt_dep qtgui)
113 + >=media-gfx/exiv2-0.25:=[xmp=]
114 +"
115 +RDEPEND="${DEPEND}"
116 +
117 +PATCHES=(
118 + "${FILESDIR}/${P}-cmake.patch"
119 + "${FILESDIR}/${PN}-18.12.0-exiv2-0.27.patch"
120 +)