x11-misc/flow-pomodoro: Fix popups with Qt 5.12, EAPI-7 bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 15 May 2019 21:21:23 +0000 (23:21 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 15 May 2019 21:22:28 +0000 (23:22 +0200)
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
x11-misc/flow-pomodoro/files/flow-pomodoro-1.2.0-qt-5.12.patch [new file with mode: 0644]
x11-misc/flow-pomodoro/flow-pomodoro-1.2.0-r1.ebuild [new file with mode: 0644]

diff --git a/x11-misc/flow-pomodoro/files/flow-pomodoro-1.2.0-qt-5.12.patch b/x11-misc/flow-pomodoro/files/flow-pomodoro-1.2.0-qt-5.12.patch
new file mode 100644 (file)
index 0000000..05ff231
--- /dev/null
@@ -0,0 +1,33 @@
+From 53dfa7dd18290225a62b1cfd10b5566ab90a3fe8 Mon Sep 17 00:00:00 2001
+From: Sergio Martins <iamsergio@gmail.com>
+Date: Fri, 17 Aug 2018 16:22:04 +0100
+Subject: [PATCH] Fix popups with Qt 5.12 (QTBUG-70031)
+
+---
+ src/qml/ChoicePopup.qml | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/qml/ChoicePopup.qml b/src/qml/ChoicePopup.qml
+index b66359d..6418b54 100644
+--- a/src/qml/ChoicePopup.qml
++++ b/src/qml/ChoicePopup.qml
+@@ -92,7 +92,7 @@ Item {
+                 radius: 2 * _controller.dpiFactor
+                 Column {
+-                    id: column
++                    id: column1
+                     anchors.fill: parent
+                     Rectangle {
+@@ -136,8 +136,8 @@ Item {
+                         model: root.model
+                         Choice {
+                             objectName: "taskMenuChoice"
+-                            anchors.left: column.left
+-                            anchors.right: column.right
++                            anchors.left: column1.left
++                            anchors.right: column1.right
+                             topLineVisible: index > 0
+                             height: root.delegateHeight
+                             fontAwesomeIconCode: iconRole
diff --git a/x11-misc/flow-pomodoro/flow-pomodoro-1.2.0-r1.ebuild b/x11-misc/flow-pomodoro/flow-pomodoro-1.2.0-r1.ebuild
new file mode 100644 (file)
index 0000000..4285248
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+DESCRIPTION="A pomodoro app that blocks distractions while you work"
+HOMEPAGE="https://github.com/iamsergio/flow-pomodoro"
+SRC_URI="https://github.com/iamsergio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtdbus:5
+       dev-qt/qtdeclarative:5
+       dev-qt/qtgui:5
+       dev-qt/qtquickcontrols:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtwidgets:5
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-qt-5.12.patch" )