1 |
commit: f89080ade0695b072ef63d3b25dca88a22a68c4f |
2 |
Author: Peter Levine <plevine457 <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 31 22:32:59 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 13 11:09:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f89080ad |
7 |
|
8 |
app-text/searchmonkey: Fix building with GCC-6 and EAPI bump |
9 |
|
10 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=602166 |
11 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/5260 |
13 |
|
14 |
.../searchmonkey/files/searchmonkey-2.0.0-gcc6.patch | 14 ++++++++++++++ |
15 |
...monkey-2.0.0.ebuild => searchmonkey-2.0.0-r1.ebuild} | 17 ++++++++++++----- |
16 |
app-text/searchmonkey/searchmonkey-2.0.0.ebuild | 7 +++++-- |
17 |
3 files changed, 31 insertions(+), 7 deletions(-) |
18 |
|
19 |
diff --git a/app-text/searchmonkey/files/searchmonkey-2.0.0-gcc6.patch b/app-text/searchmonkey/files/searchmonkey-2.0.0-gcc6.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..ede01afa39e |
22 |
--- /dev/null |
23 |
+++ b/app-text/searchmonkey/files/searchmonkey-2.0.0-gcc6.patch |
24 |
@@ -0,0 +1,14 @@ |
25 |
+Bug: https://bugs.gentoo.org/602166 |
26 |
+ |
27 |
+diff -Naur a/mainwindow.cpp b/mainwindow.cpp |
28 |
+--- a/mainwindow.cpp 2017-07-31 18:06:33.206668001 -0400 |
29 |
++++ b/mainwindow.cpp 2017-07-31 18:07:09.685940997 -0400 |
30 |
+@@ -781,7 +781,7 @@ |
31 |
+ ******************************************************************************/ |
32 |
+ void MainWindow::find () throw() { |
33 |
+ |
34 |
+- auto autoSettingsReset asr(sui); // dtor calls sui->reset() |
35 |
++ autoSettingsReset asr(sui); // dtor calls sui->reset() |
36 |
+ |
37 |
+ bool modeAdvanced = ui->actionAdvanced->isChecked(); |
38 |
+ qDebug() << "modeAdvanced-" << modeAdvanced; |
39 |
|
40 |
diff --git a/app-text/searchmonkey/searchmonkey-2.0.0.ebuild b/app-text/searchmonkey/searchmonkey-2.0.0-r1.ebuild |
41 |
similarity index 75% |
42 |
copy from app-text/searchmonkey/searchmonkey-2.0.0.ebuild |
43 |
copy to app-text/searchmonkey/searchmonkey-2.0.0-r1.ebuild |
44 |
index 86dd56320b3..34061ebf525 100644 |
45 |
--- a/app-text/searchmonkey/searchmonkey-2.0.0.ebuild |
46 |
+++ b/app-text/searchmonkey/searchmonkey-2.0.0-r1.ebuild |
47 |
@@ -1,9 +1,9 @@ |
48 |
-# Copyright 1999-2015 Gentoo Foundation |
49 |
+# Copyright 1999-2017 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
|
52 |
-EAPI=4 |
53 |
+EAPI=6 |
54 |
|
55 |
-inherit qt4-r2 |
56 |
+inherit eutils qmake-utils |
57 |
|
58 |
MY_PN=${PN}2 |
59 |
MY_P=${PN}_v${PV} |
60 |
@@ -15,7 +15,7 @@ SRC_URI="mirror://sourceforge/project/${PN}/S${MY_PN:1}/${PV}%20%5Bstable%5D/${M |
61 |
|
62 |
LICENSE="GPL-3" |
63 |
SLOT="2" |
64 |
-KEYWORDS="amd64 x86" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
IUSE="" |
67 |
|
68 |
RDEPEND=" |
69 |
@@ -26,7 +26,14 @@ DEPEND="${RDEPEND} |
70 |
|
71 |
S="${WORKDIR}"/${MY_P} |
72 |
|
73 |
-PATCHES=( "${FILESDIR}"/${P}-gcc4.7.patch ) |
74 |
+PATCHES=( |
75 |
+ "${FILESDIR}"/${P}-gcc4.7.patch |
76 |
+ "${FILESDIR}"/${P}-gcc6.patch |
77 |
+) |
78 |
+ |
79 |
+src_compile() { |
80 |
+ eqmake4 |
81 |
+} |
82 |
|
83 |
src_install() { |
84 |
newbin ${PN} ${MY_PN} |
85 |
|
86 |
diff --git a/app-text/searchmonkey/searchmonkey-2.0.0.ebuild b/app-text/searchmonkey/searchmonkey-2.0.0.ebuild |
87 |
index 86dd56320b3..c69ce672912 100644 |
88 |
--- a/app-text/searchmonkey/searchmonkey-2.0.0.ebuild |
89 |
+++ b/app-text/searchmonkey/searchmonkey-2.0.0.ebuild |
90 |
@@ -1,4 +1,4 @@ |
91 |
-# Copyright 1999-2015 Gentoo Foundation |
92 |
+# Copyright 1999-2017 Gentoo Foundation |
93 |
# Distributed under the terms of the GNU General Public License v2 |
94 |
|
95 |
EAPI=4 |
96 |
@@ -26,7 +26,10 @@ DEPEND="${RDEPEND} |
97 |
|
98 |
S="${WORKDIR}"/${MY_P} |
99 |
|
100 |
-PATCHES=( "${FILESDIR}"/${P}-gcc4.7.patch ) |
101 |
+PATCHES=( |
102 |
+ "${FILESDIR}"/${P}-gcc4.7.patch |
103 |
+ "${FILESDIR}"/${P}-gcc6.patch |
104 |
+) |
105 |
|
106 |
src_install() { |
107 |
newbin ${PN} ${MY_PN} |