Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/spectools/files/, net-wireless/spectools/
Date: Thu, 27 Aug 2015 07:55:37
Message-Id: 1440662130.0d69c92bbae1266d7dd6130ef924861d0a73fe9f.jlec@gentoo
1 commit: 0d69c92bbae1266d7dd6130ef924861d0a73fe9f
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 07:54:11 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 07:55:30 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d69c92b
7
8 net-wireless/spectools: Add fix for ncurses[tinfo]
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=490976
11
12 Package-Manager: portage-2.2.20.1
13 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
14
15 .../spectools-2011.08.1_p20140618-tinfo.patch | 41 ++++++++++++++++++++++
16 net-wireless/spectools/metadata.xml | 10 +++---
17 ...ild => spectools-2011.08.1_p20140618-r1.ebuild} | 16 ++++++---
18 .../spectools/spectools-2011.08.1_p20140618.ebuild | 7 ++--
19 net-wireless/spectools/spectools-9999.ebuild | 16 ++++++---
20 5 files changed, 74 insertions(+), 16 deletions(-)
21
22 diff --git a/net-wireless/spectools/files/spectools-2011.08.1_p20140618-tinfo.patch b/net-wireless/spectools/files/spectools-2011.08.1_p20140618-tinfo.patch
23 new file mode 100644
24 index 0000000..c5ef348
25 --- /dev/null
26 +++ b/net-wireless/spectools/files/spectools-2011.08.1_p20140618-tinfo.patch
27 @@ -0,0 +1,41 @@
28 + configure.in | 21 +++++++++++----------
29 + 1 file changed, 11 insertions(+), 10 deletions(-)
30 +
31 +diff --git a/configure.in b/configure.in
32 +index a15258c..af4ae57 100644
33 +--- a/configure.in
34 ++++ b/configure.in
35 +@@ -131,22 +131,23 @@ AC_CHECK_LIB([usb], [usb_init], AC_DEFINE(HAVE_LIBUSB, 1, LibUSB) LIBS="$LIBS -l
36 + dnl Look for curses/libcurses
37 + termcontrol="none";
38 +
39 +-AC_CHECK_LIB([ncurses], [initscr],
40 ++PKG_CHECK_MODULES([NCURSES], [ncurses], [foundhcurses=yesyes curseaux="${NCURSES_LIBS}" termcontrol="ncurses"], [
41 ++ AC_CHECK_LIB([ncurses], [initscr],
42 + AC_DEFINE(HAVE_LIBNCURSES, 1, NCurses terminal lib) \
43 + foundlcurses=yes curseaux="-lncurses" termcontrol="ncurses" )
44 +
45 +-if test "$foundlcurses" != "yes"; then
46 +- AC_CHECK_LIB([curses], [initscr],
47 ++ if test "$foundlcurses" != "yes"; then
48 ++ AC_CHECK_LIB([curses], [initscr],
49 + AC_DEFINE(HAVE_LIBCURSES, 1, Curses terminal lib) \
50 + foundlcurses=yes curseaux="-lcurses" termcontrol="curses" )
51 +-fi
52 +-
53 +-if test "$termcontrol" = "ncurses"; then
54 +- AC_CHECK_HEADER([ncurses.h], [foundhcurses=yes])
55 +-elif test "$termcontrol" = "curses"; then
56 +- AC_CHECK_HEADER([curses.h], [foundhcurses=yes])
57 +-fi
58 ++ fi
59 +
60 ++ if test "$termcontrol" = "ncurses"; then
61 ++ AC_CHECK_HEADER([ncurses.h], [foundhcurses=yes])
62 ++ elif test "$termcontrol" = "curses"; then
63 ++ AC_CHECK_HEADER([curses.h], [foundhcurses=yes])
64 ++ fi
65 ++])
66 + if test "$foundhcurses$foundlcurses" != "yesyes"; then
67 + AC_MSG_WARN(*** Could not find curses library. Curses grapher will not be built.)
68 + else
69
70 diff --git a/net-wireless/spectools/metadata.xml b/net-wireless/spectools/metadata.xml
71 index 97e9931..2ad84fc 100644
72 --- a/net-wireless/spectools/metadata.xml
73 +++ b/net-wireless/spectools/metadata.xml
74 @@ -16,9 +16,9 @@
75 <name>Robin H. Johnson</name>
76 <description>Maintainer, has 1st gen WiSpy hardware for testing</description>
77 </maintainer>
78 -<use>
79 - <flag name="debug">Build the raw output client for spectools. (for developers)</flag>
80 - <flag name="ncurses">Build the ncurses based client for spectools</flag>
81 - <flag name="gtk">Build the gtk-2 based client for spectools</flag>
82 -</use>
83 + <use>
84 + <flag name="debug">Build the raw output client for spectools. (for developers)</flag>
85 + <flag name="ncurses">Build the ncurses based client for spectools</flag>
86 + <flag name="gtk">Build the gtk-2 based client for spectools</flag>
87 + </use>
88 </pkgmetadata>
89
90 diff --git a/net-wireless/spectools/spectools-2011.08.1_p20140618.ebuild b/net-wireless/spectools/spectools-2011.08.1_p20140618-r1.ebuild
91 similarity index 85%
92 copy from net-wireless/spectools/spectools-2011.08.1_p20140618.ebuild
93 copy to net-wireless/spectools/spectools-2011.08.1_p20140618-r1.ebuild
94 index b30e6ce..6648268 100644
95 --- a/net-wireless/spectools/spectools-2011.08.1_p20140618.ebuild
96 +++ b/net-wireless/spectools/spectools-2011.08.1_p20140618-r1.ebuild
97 @@ -1,9 +1,10 @@
98 -# Copyright 1999-2014 Gentoo Foundation
99 +# Copyright 1999-2015 Gentoo Foundation
100 # Distributed under the terms of the GNU General Public License v2
101 # $Id$
102
103 EAPI=5
104 -inherit udev toolchain-funcs
105 +
106 +inherit autotools eutils toolchain-funcs udev
107
108 MY_PN=${PN}
109 MY_PV=${PV/\./-}
110 @@ -27,14 +28,21 @@ LICENSE="GPL-2"
111 SLOT="0"
112 IUSE="debug +ncurses +gtk"
113
114 -RDEPEND="virtual/libusb:0
115 - ncurses? ( sys-libs/ncurses )
116 +RDEPEND="
117 + virtual/libusb:0
118 + ncurses? ( sys-libs/ncurses:0= )
119 gtk? ( x11-libs/gtk+:2 )"
120 DEPEND="${RDEPEND}
121 virtual/pkgconfig"
122 # Upstream has still not migrated to the libusb-1 line.
123 # Maemo: Add hildon and bbus
124
125 +src_prepare() {
126 + epatch "${FILESDIR}"/${P}-tinfo.patch
127 + mv configure.{in,ac} || die
128 + eautoreconf
129 +}
130 +
131 # Please note that upstream removed the --with-gtk-version option
132 # and GTK is now automagical. GTK1 support was also removed.
133 src_compile() {
134
135 diff --git a/net-wireless/spectools/spectools-2011.08.1_p20140618.ebuild b/net-wireless/spectools/spectools-2011.08.1_p20140618.ebuild
136 index b30e6ce..650868c 100644
137 --- a/net-wireless/spectools/spectools-2011.08.1_p20140618.ebuild
138 +++ b/net-wireless/spectools/spectools-2011.08.1_p20140618.ebuild
139 @@ -1,4 +1,4 @@
140 -# Copyright 1999-2014 Gentoo Foundation
141 +# Copyright 1999-2015 Gentoo Foundation
142 # Distributed under the terms of the GNU General Public License v2
143 # $Id$
144
145 @@ -27,8 +27,9 @@ LICENSE="GPL-2"
146 SLOT="0"
147 IUSE="debug +ncurses +gtk"
148
149 -RDEPEND="virtual/libusb:0
150 - ncurses? ( sys-libs/ncurses )
151 +RDEPEND="
152 + virtual/libusb:0
153 + ncurses? ( sys-libs/ncurses:0= )
154 gtk? ( x11-libs/gtk+:2 )"
155 DEPEND="${RDEPEND}
156 virtual/pkgconfig"
157
158 diff --git a/net-wireless/spectools/spectools-9999.ebuild b/net-wireless/spectools/spectools-9999.ebuild
159 index e5c5de4..2b88fdc 100644
160 --- a/net-wireless/spectools/spectools-9999.ebuild
161 +++ b/net-wireless/spectools/spectools-9999.ebuild
162 @@ -1,9 +1,10 @@
163 -# Copyright 1999-2014 Gentoo Foundation
164 +# Copyright 1999-2015 Gentoo Foundation
165 # Distributed under the terms of the GNU General Public License v2
166 # $Id$
167
168 EAPI=5
169 -inherit udev toolchain-funcs
170 +
171 +inherit autotools eutils toolchain-funcs udev
172
173 MY_PN=${PN}
174 MY_PV=${PV/\./-}
175 @@ -27,14 +28,21 @@ LICENSE="GPL-2"
176 SLOT="0"
177 IUSE="debug +ncurses +gtk"
178
179 -RDEPEND="virtual/libusb:0
180 - ncurses? ( sys-libs/ncurses )
181 +RDEPEND="
182 + virtual/libusb:0
183 + ncurses? ( sys-libs/ncurses:0= )
184 gtk? ( x11-libs/gtk+:2 )"
185 DEPEND="${RDEPEND}
186 virtual/pkgconfig"
187 # Upstream has still not migrated to the libusb-1 line.
188 # Maemo: Add hildon and bbus
189
190 +src_prepare() {
191 + epatch "${FILESDIR}"/${PN}-2011.08.1_p20150618-tinfo.patch
192 + mv configure.{in,ac} || die
193 + eautoreconf
194 +}
195 +
196 # Please note that upstream removed the --with-gtk-version option
197 # and GTK is now automagical. GTK1 support was also removed.
198 src_compile() {