Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/linssid/, net-wireless/linssid/files/
Date: Wed, 09 Feb 2022 13:15:01
Message-Id: 1644412475.7ab80fb494e436599d75eace5144cd41b77b6b0f.conikost@gentoo
1 commit: 7ab80fb494e436599d75eace5144cd41b77b6b0f
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 9 13:13:02 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 9 13:14:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ab80fb4
7
8 net-wireless/linssid: update EAPI 7 -> 8
9
10 Also fixed compilation with >=qwt-6.2.0.
11
12 Closes: https://bugs.gentoo.org/829153
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 .../linssid/files/linssid-3.6-qwt620.patch | 48 +++++++++++++++++
16 net-wireless/linssid/linssid-3.6-r2.ebuild | 62 ++++++++++++++++++++++
17 2 files changed, 110 insertions(+)
18
19 diff --git a/net-wireless/linssid/files/linssid-3.6-qwt620.patch b/net-wireless/linssid/files/linssid-3.6-qwt620.patch
20 new file mode 100644
21 index 000000000000..bea00e1f432d
22 --- /dev/null
23 +++ b/net-wireless/linssid/files/linssid-3.6-qwt620.patch
24 @@ -0,0 +1,48 @@
25 +From: Luigi Baldoni <aloisio@×××.com>
26 +Date: 2021-08-04 22:14:02 +0200
27 +Subject: Fix compatibility with Qwt 6.2.0
28 +References: https://sourceforge.net/p/linssid/discussion/bugs/thread/3080bf8f4d/
29 +Upstream: submitted
30 +
31 +Disambiguate function calls after new overloads added in qwt 6.2.
32 +(courtesy of Jari Kuittinen)
33 +
34 +---
35 +
36 +Index: MainForm.cpp
37 +===================================================================
38 +--- a/MainForm.cpp
39 ++++ b/MainForm.cpp
40 +@@ -28,6 +28,7 @@
41 + #include <qwt_plot_curve.h>
42 + #include <qwt_plot_grid.h>
43 + #include <qwt_symbol.h>
44 ++#include <qwt_text.h>
45 + #include <qwt_plot_marker.h>
46 + #include <QPointF>
47 + #include <qwt_scale_draw.h>
48 +@@ -1036,7 +1037,7 @@ void MainForm::fillPlots() {
49 + MainForm::cellDataRay[tbi].signal ) );
50 + }
51 + } else {
52 +- MainForm::cellDataRay[tbi].pBandCurve->setSamples(0, 0, 0);
53 ++ MainForm::cellDataRay[tbi].pBandCurve->setSamples((double *)nullptr, (double *)nullptr, 0);
54 + }
55 + // now the signal history plot
56 + int ixStart;
57 +@@ -1055,7 +1056,7 @@ void MainForm::fillPlots() {
58 + &(MainForm::cellDataRay[tbi].pHistory->signal[ixStart]), ixLength);
59 + } else {
60 +
61 +- MainForm::cellDataRay[tbi].pTimeCurve->setSamples(0, 0, 0);
62 ++ MainForm::cellDataRay[tbi].pTimeCurve->setSamples((double *)nullptr, (double *)nullptr, 0);
63 + }
64 + }
65 + MainForm::mainFormWidget.chan24Plot->replot();
66 +@@ -1424,4 +1425,4 @@ int MainForm::MinIntStr(const string &s)
67 + // const std::string whiteSpaces( " \f\n\r\t\v" );
68 + // std::string::size_type pos = str.find_first_not_of( whiteSpaces );
69 + // str.erase( pos + 1 );
70 +-//}
71 +\ No newline at end of file
72 ++//}
73
74 diff --git a/net-wireless/linssid/linssid-3.6-r2.ebuild b/net-wireless/linssid/linssid-3.6-r2.ebuild
75 new file mode 100644
76 index 000000000000..8e67948519cc
77 --- /dev/null
78 +++ b/net-wireless/linssid/linssid-3.6-r2.ebuild
79 @@ -0,0 +1,62 @@
80 +# Copyright 1999-2022 Gentoo Authors
81 +# Distributed under the terms of the GNU General Public License v2
82 +
83 +EAPI=8
84 +
85 +inherit qmake-utils xdg-utils
86 +
87 +DESCRIPTION="Graphical wireless scanning for Linux"
88 +HOMEPAGE="https://sourceforge.net/projects/linssid/"
89 +SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz"
90 +S="${WORKDIR}/${P}/${PN}-app"
91 +
92 +LICENSE="GPL-3"
93 +SLOT="0"
94 +KEYWORDS="amd64 x86"
95 +
96 +DEPEND="
97 + dev-libs/boost:=
98 + dev-qt/qtcore:5
99 + dev-qt/qtopengl:5
100 + dev-qt/qtsvg:5
101 + dev-qt/qtwidgets:5
102 + x11-libs/qwt:6[opengl,qt5(+),svg]
103 +"
104 +
105 +RDEPEND="
106 + ${DEPEND}
107 + net-wireless/iw
108 + sys-auth/polkit
109 + x11-libs/libxkbcommon[X]
110 +"
111 +
112 +DOCS=( README_${PV} )
113 +
114 +PATCHES=( "${FILESDIR}/${PN}-3.6-qwt620.patch" )
115 +
116 +src_prepare() {
117 + default
118 +
119 + # Fix lib path for x11-libs/qwt and use system qwt for compiling
120 + sed -e '/libqwt-qt5.so.6/c\LIBS += -lqwt6-qt5' -e 's/CONFIG += release/& qwt/' -i linssid-app.pro || die
121 +}
122 +
123 +src_configure() {
124 + eqmake5
125 +}
126 +
127 +src_install() {
128 + emake INSTALL_ROOT="${D}" install
129 +
130 + einstalldocs
131 +}
132 +
133 +pkg_postinst() {
134 + xdg_desktop_database_update
135 + xdg_mimeinfo_database_update
136 +}
137 +
138 +pkg_postrm() {
139 + xdg_desktop_database_update
140 + xdg_mimeinfo_database_update
141 +}