Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/signon-ui/, net-libs/signon-ui/files/
Date: Sun, 25 Oct 2020 00:28:05
Message-Id: 1603585662.631d600938028f332599ba699c34cbe1041d4733.asturm@gentoo
1 commit: 631d600938028f332599ba699c34cbe1041d4733
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 24 22:35:15 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 25 00:27:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=631d6009
7
8 net-libs/signon-ui: Don't use -fno-rtti, replace sed with patch
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.2
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 .../signon-ui-0.15_p20171022-disable-tests.patch | 24 ++++++++++
14 .../signon-ui-0.15_p20171022-drop-fno-rtti.patch | 28 +++++++++++
15 .../signon-ui/signon-ui-0.15_p20171022-r1.ebuild | 56 ++++++++++++++++++++++
16 3 files changed, 108 insertions(+)
17
18 diff --git a/net-libs/signon-ui/files/signon-ui-0.15_p20171022-disable-tests.patch b/net-libs/signon-ui/files/signon-ui-0.15_p20171022-disable-tests.patch
19 new file mode 100644
20 index 00000000000..dc818cd1526
21 --- /dev/null
22 +++ b/net-libs/signon-ui/files/signon-ui-0.15_p20171022-disable-tests.patch
23 @@ -0,0 +1,24 @@
24 +From 468e47402334ce1a0eee9ce30c2e55951877d668 Mon Sep 17 00:00:00 2001
25 +From: Andreas Sturmlechner <asturm@g.o>
26 +Date: Sun, 25 Oct 2020 00:11:12 +0200
27 +Subject: [PATCH] Disable unit tests
28 +
29 +---
30 + tests/tests.pro | 2 --
31 + 1 file changed, 2 deletions(-)
32 +
33 +diff --git a/tests/tests.pro b/tests/tests.pro
34 +index 6b37001..c711f56 100644
35 +--- a/tests/tests.pro
36 ++++ b/tests/tests.pro
37 +@@ -1,7 +1,5 @@
38 + TEMPLATE = subdirs
39 + CONFIG += ordered
40 +-SUBDIRS = \
41 +- unit
42 +
43 + CONFIG(medium-tests) {
44 + SUBDIRS += functional
45 +--
46 +2.29.1
47 +
48
49 diff --git a/net-libs/signon-ui/files/signon-ui-0.15_p20171022-drop-fno-rtti.patch b/net-libs/signon-ui/files/signon-ui-0.15_p20171022-drop-fno-rtti.patch
50 new file mode 100644
51 index 00000000000..5360fd5b1ec
52 --- /dev/null
53 +++ b/net-libs/signon-ui/files/signon-ui-0.15_p20171022-drop-fno-rtti.patch
54 @@ -0,0 +1,28 @@
55 +From 4546eeb26b79975259819795466320fa53676801 Mon Sep 17 00:00:00 2001
56 +From: Andreas Sturmlechner <asturm@g.o>
57 +Date: Sun, 25 Oct 2020 00:06:03 +0200
58 +Subject: [PATCH] Don't use -fno-rtti
59 +
60 +---
61 + common-project-config.pri | 5 +----
62 + 1 file changed, 1 insertion(+), 4 deletions(-)
63 +
64 +diff --git a/common-project-config.pri b/common-project-config.pri
65 +index 3206471..c05522f 100644
66 +--- a/common-project-config.pri
67 ++++ b/common-project-config.pri
68 +@@ -4,10 +4,7 @@
69 +
70 + CONFIG += link_pkgconfig
71 +
72 +-# we don't like warnings...
73 +-QMAKE_CXXFLAGS -= -Werror -Wno-write-strings
74 +-# Disable RTTI
75 +-QMAKE_CXXFLAGS += -fno-exceptions -fno-rtti
76 ++QMAKE_CXXFLAGS += -fno-exceptions
77 +
78 + TOP_SRC_DIR = $$PWD
79 + TOP_BUILD_DIR = $${TOP_SRC_DIR}/$(BUILD_DIR)
80 +--
81 +2.29.1
82 +
83
84 diff --git a/net-libs/signon-ui/signon-ui-0.15_p20171022-r1.ebuild b/net-libs/signon-ui/signon-ui-0.15_p20171022-r1.ebuild
85 new file mode 100644
86 index 00000000000..bc10be56a15
87 --- /dev/null
88 +++ b/net-libs/signon-ui/signon-ui-0.15_p20171022-r1.ebuild
89 @@ -0,0 +1,56 @@
90 +# Copyright 1999-2020 Gentoo Authors
91 +# Distributed under the terms of the GNU General Public License v2
92 +
93 +EAPI=7
94 +
95 +COMMIT=4368bb77d9d1abc2978af514225ba4a42c29a646
96 +inherit qmake-utils
97 +
98 +DESCRIPTION="Online accounts signon UI"
99 +HOMEPAGE="https://gitlab.com/accounts-sso/signon-ui"
100 +SRC_URI="https://gitlab.com/accounts-sso/${PN}/-/archive/${COMMIT}/${PN}-${COMMIT}.tar.bz2 -> ${P}.tar.bz2"
101 +
102 +LICENSE="GPL-2 GPL-3"
103 +SLOT="0"
104 +KEYWORDS="~amd64 ~arm64 ~x86"
105 +IUSE="test"
106 +
107 +BDEPEND="test? ( dev-qt/qttest:5 )"
108 +DEPEND="
109 + dev-libs/glib:2
110 + dev-qt/qtcore:5
111 + dev-qt/qtdbus:5
112 + dev-qt/qtdeclarative:5
113 + dev-qt/qtgui:5
114 + dev-qt/qtnetwork:5[ssl]
115 + dev-qt/qtwebengine:5
116 + dev-qt/qtwidgets:5
117 + net-libs/accounts-qt
118 + net-libs/libproxy
119 + net-libs/signond
120 + x11-libs/libnotify
121 +"
122 +RDEPEND="${DEPEND}
123 + dev-qt/qtwebchannel:5
124 +"
125 +
126 +RESTRICT="test"
127 +
128 +PATCHES=(
129 + # thanks to openSUSE
130 + "${FILESDIR}/${P}-webengine-cachedir-path.patch"
131 + "${FILESDIR}/${P}-fix-username-field-reading.patch"
132 + # downstream
133 + "${FILESDIR}/${P}-drop-fno-rtti.patch"
134 + "${FILESDIR}/${P}-disable-tests.patch"
135 +)
136 +
137 +S="${WORKDIR}/${PN}-${COMMIT}"
138 +
139 +src_configure() {
140 + eqmake5
141 +}
142 +
143 +src_install() {
144 + emake INSTALL_ROOT="${D}" install
145 +}