Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kirigami/, kde-frameworks/kirigami/files/
Date: Sat, 04 Nov 2017 00:14:30
Message-Id: 1509754451.b0af7b2ae386501831921a5843f57a6845a0b300.kensington@gentoo
1 commit: b0af7b2ae386501831921a5843f57a6845a0b300
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 4 00:12:06 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 4 00:14:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0af7b2a
7
8 kde-frameworks/kirigami: backport patch from upstream solving runtime failure with Qt 5.7
9
10 Closes: https://bugs.gentoo.org/634564
11 Package-Manager: Portage-2.3.8, Repoman-2.3.4
12
13 .../kirigami/files/kirigami-5.39.0-qt57.patch | 27 +++++++++++++
14 kde-frameworks/kirigami/kirigami-5.39.0-r1.ebuild | 45 ++++++++++++++++++++++
15 2 files changed, 72 insertions(+)
16
17 diff --git a/kde-frameworks/kirigami/files/kirigami-5.39.0-qt57.patch b/kde-frameworks/kirigami/files/kirigami-5.39.0-qt57.patch
18 new file mode 100644
19 index 00000000000..de33976061d
20 --- /dev/null
21 +++ b/kde-frameworks/kirigami/files/kirigami-5.39.0-qt57.patch
22 @@ -0,0 +1,27 @@
23 +From eed28bbd8aec29cb9a045a5188ceb0e27ff33344 Mon Sep 17 00:00:00 2001
24 +From: Marco Martin <notmart@×××××.com>
25 +Date: Fri, 3 Nov 2017 16:57:11 +0100
26 +Subject: [PATCH] syntax working on older Qt 5.7
27 +
28 +BUG:385785
29 +---
30 + src/controls/Page.qml | 3 ++-
31 + 1 file changed, 2 insertions(+), 1 deletion(-)
32 +
33 +diff --git a/src/controls/Page.qml b/src/controls/Page.qml
34 +index c2d0307..4498e40 100644
35 +--- a/src/controls/Page.qml
36 ++++ b/src/controls/Page.qml
37 +@@ -256,7 +256,8 @@ T2.Page {
38 + right: parent.right
39 + bottom: parent.bottom
40 + }
41 +- property T2.Page page: root
42 ++ //It should be T2.Page, Qt 5.7 doesn't like it
43 ++ property Item page: root
44 + height: item ? item.height : 0
45 + source: (applicationWindow().header && applicationWindow().header.toString().indexOf("ToolBarApplicationHeader") === 0) ||
46 + (applicationWindow().footer && applicationWindow().footer.visible && applicationWindow().footer.toString().indexOf("ToolBarApplicationHeader") === 0)
47 +--
48 +2.13.6
49 +
50
51 diff --git a/kde-frameworks/kirigami/kirigami-5.39.0-r1.ebuild b/kde-frameworks/kirigami/kirigami-5.39.0-r1.ebuild
52 new file mode 100644
53 index 00000000000..f18881398a7
54 --- /dev/null
55 +++ b/kde-frameworks/kirigami/kirigami-5.39.0-r1.ebuild
56 @@ -0,0 +1,45 @@
57 +# Copyright 1999-2017 Gentoo Foundation
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=6
61 +
62 +KDE_EXAMPLES="true"
63 +KDE_QTHELP="false"
64 +KDE_TEST="forceoptional"
65 +KMNAME="${PN}2"
66 +inherit kde5
67 +
68 +DESCRIPTION="Lightweight user interface framework for mobile and convergent applications"
69 +HOMEPAGE="https://techbase.kde.org/Kirigami"
70 +EGIT_REPO_URI="${EGIT_REPO_URI/${PN}2/${PN}}"
71 +
72 +LICENSE="LGPL-2+"
73 +KEYWORDS="~amd64 ~arm ~x86"
74 +IUSE="plasma"
75 +
76 +RDEPEND="
77 + $(add_qt_dep qtdeclarative)
78 + $(add_qt_dep qtgraphicaleffects)
79 + $(add_qt_dep qtgui)
80 + $(add_qt_dep qtnetwork)
81 + $(add_qt_dep qtquickcontrols2)
82 + $(add_qt_dep qtsvg)
83 + plasma? ( $(add_frameworks_dep plasma) )
84 +"
85 +DEPEND="${RDEPEND}
86 + $(add_qt_dep linguist-tools)
87 +"
88 +
89 +# requires package to already be installed
90 +RESTRICT+=" test"
91 +
92 +PATCHES=( "${FILESDIR}/${P}-qt57.patch" )
93 +
94 +src_configure() {
95 + local mycmakeargs=(
96 + -DBUILD_EXAMPLES=$(usex examples)
97 + -DPLASMA_ENABLED=$(usex plasma)
98 + )
99 +
100 + kde5_src_configure
101 +}