Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpsd/, sci-geosciences/gpsd/files/
Date: Mon, 08 Nov 2021 03:22:09
Message-Id: 1636341718.6ed2df2112818a2df25878f2a065140419c327d9.floppym@gentoo
1 commit: 6ed2df2112818a2df25878f2a065140419c327d9
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 8 03:20:52 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 8 03:21:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ed2df21
7
8 sci-geosciences/gpsd: drop 3.21, 3.23-r2
9
10 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
11
12 sci-geosciences/gpsd/Manifest | 2 -
13 ...psd-3.21-scons_conditional_python_scripts.patch | 64 -------
14 sci-geosciences/gpsd/files/gpsd-3.3-setup.py | 17 --
15 sci-geosciences/gpsd/gpsd-3.21.ebuild | 200 -------------------
16 sci-geosciences/gpsd/gpsd-3.23-r2.ebuild | 212 ---------------------
17 5 files changed, 495 deletions(-)
18
19 diff --git a/sci-geosciences/gpsd/Manifest b/sci-geosciences/gpsd/Manifest
20 index 9dd813f6555..bd4e7460877 100644
21 --- a/sci-geosciences/gpsd/Manifest
22 +++ b/sci-geosciences/gpsd/Manifest
23 @@ -1,3 +1 @@
24 -DIST gpsd-3.21.tar.xz 2620396 BLAKE2B 366d1857f7ff63e087ac1bec8c95d997cd8d48a60d5548c1644748e1ed20334f45a4fb279bc26c61481cc3dea0244eb0aaca0ba562838a3b5de15da5d1d82502 SHA512 a45416c31ee891a84203aea786b6385ea5f557a406d898a8facdde78d120199b7e7db8f86ab8c395f6ca90965940355fa19413b2b918642fd8c7df219745233e
25 DIST gpsd-3.23.1.tar.gz 4904121 BLAKE2B 277c0c12cbe73d7c637cb0e6ce7b6ba15bead55efbbc7f4c9d9d5524f76d60261438df31b66c491e92216d8f3f7e6a13759c0e0cdd200cfae3cc3d616bf98dd5 SHA512 fccfac363103282581e4ea8236ce40e4600a01f02489c1aaec721a13deac556bac046a3b76f8a5e21fe8c736056e872d8c7f2e4ed2d38a164323dd9738f00388
26 -DIST gpsd-3.23.tar.gz 4893363 BLAKE2B 502c1f2103f3b4224f3bc654bfe6e08e7ddf84707a0db6369e52608c095d5d082da020091ebca27d403cf74fa0bee5ebe1550068263d8d7a55143da2bc1a7350 SHA512 967cc9801271418023630df02b457b76108968992151f6e80b569e99b856bd79cc3d0369d2088f3bc609b2ab22b29dba87639bf466bf262ab80b2b3f04055f8b
27
28 diff --git a/sci-geosciences/gpsd/files/gpsd-3.21-scons_conditional_python_scripts.patch b/sci-geosciences/gpsd/files/gpsd-3.21-scons_conditional_python_scripts.patch
29 deleted file mode 100644
30 index 00fe5ad2b81..00000000000
31 --- a/sci-geosciences/gpsd/files/gpsd-3.21-scons_conditional_python_scripts.patch
32 +++ /dev/null
33 @@ -1,64 +0,0 @@
34 ---- a/SConstruct
35 -+++ b/SConstruct
36 -@@ -150,10 +150,6 @@
37 - 'packaging/rpm/gpsd.spec',
38 - 'packet_names.h',
39 - 'Qgpsmm.pc',
40 -- 'ubxtool',
41 -- 'xgps',
42 -- 'xgpsspeed',
43 -- 'zerk',
44 - ]
45 -
46 - generated_www = [
47 -@@ -172,10 +168,6 @@
48 - "gpscat",
49 - "gpsfake",
50 - "gpsprof",
51 -- "ubxtool",
52 -- "xgps",
53 -- "xgpsspeed",
54 -- "zerk",
55 - ]
56 -
57 - # All man pages. Always build them all.
58 -@@ -205,10 +197,6 @@
59 - "man/ntpshmmon.1": "man/ntpshmmon.xml",
60 - "man/ppscheck.8": "man/ppscheck.xml",
61 - "man/srec.5": "man/srec.xml",
62 -- "man/ubxtool.1": "man/ubxtool.xml",
63 -- "man/xgps.1": "man/gps.xml",
64 -- "man/xgpsspeed.1": "man/gps.xml",
65 -- "man/zerk.1": "man/zerk.xml",
66 - }
67 -
68 - # doc files to install in share/gpsd/doc
69 -@@ -1964,6 +1952,28 @@
70 - "valgrind-audit.py"
71 - ]
72 -
73 -+ if env['greis']:
74 -+ generated_sources.extend(["zerk"])
75 -+ python_progs.extend(["zerk"])
76 -+ all_manpages.update({
77 -+ "man/zerk.1": "man/zerk.xml",
78 -+ })
79 -+
80 -+ if env['ublox']:
81 -+ generated_sources.extend(["ubxtool"])
82 -+ python_progs.extend(["ubxtool"])
83 -+ all_manpages.update({
84 -+ "man/ubxtool.1": "man/ubxtool.xml",
85 -+ })
86 -+
87 -+ if env['xgps']:
88 -+ generated_sources.extend(["xgps", "xgpsspeed"])
89 -+ python_progs.extend(["xgps", "xgpsspeed"])
90 -+ all_manpages.update({
91 -+ "man/xgps.1": "man/xgps.xml",
92 -+ "man/xgpsspeed.1": "man/xgps.xml",
93 -+ })
94 -+
95 - # Dependencies for imports in test programs
96 - env.Depends('tests/test_clienthelpers.py',
97 - ['gps/__init__.py', 'gps/clienthelpers.py', 'gps/misc.py'])
98
99 diff --git a/sci-geosciences/gpsd/files/gpsd-3.3-setup.py b/sci-geosciences/gpsd/files/gpsd-3.3-setup.py
100 deleted file mode 100644
101 index 93cc5e8f214..00000000000
102 --- a/sci-geosciences/gpsd/files/gpsd-3.3-setup.py
103 +++ /dev/null
104 @@ -1,17 +0,0 @@
105 -from distutils.core import setup, Extension
106 -
107 -setup(
108 - name = "gps",
109 - version = @VERSION@,
110 - description = 'Python libraries for the gpsd service daemon',
111 - url = @URL@,
112 - author = 'the GPSD project',
113 - author_email = @EMAIL@,
114 - license = "BSD",
115 - ext_modules=[
116 - Extension("gps.packet", @GPS_PACKET_SOURCES@, include_dirs=["."]),
117 - Extension("gps.clienthelpers", @GPS_CLIENT_SOURCES@, include_dirs=["."]),
118 - ],
119 - packages = ['gps'],
120 - scripts = @SCRIPTS@,
121 -)
122
123 diff --git a/sci-geosciences/gpsd/gpsd-3.21.ebuild b/sci-geosciences/gpsd/gpsd-3.21.ebuild
124 deleted file mode 100644
125 index b37701583b4..00000000000
126 --- a/sci-geosciences/gpsd/gpsd-3.21.ebuild
127 +++ /dev/null
128 @@ -1,200 +0,0 @@
129 -# Copyright 1999-2021 Gentoo Authors
130 -# Distributed under the terms of the GNU General Public License v2
131 -
132 -EAPI=7
133 -
134 -DISTUTILS_OPTIONAL=1
135 -PYTHON_COMPAT=( python3_{7..9} )
136 -
137 -inherit distutils-r1 scons-utils toolchain-funcs udev
138 -
139 -if [[ ${PV} == "9999" ]] ; then
140 - EGIT_REPO_URI="https://gitlab.com/gpsd/gpsd.git"
141 - inherit git-r3
142 -else
143 - SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
144 - KEYWORDS="amd64 arm ~arm64 ppc ppc64 ~riscv ~sparc x86"
145 -fi
146 -
147 -DESCRIPTION="GPS daemon and library for USB/serial GPS devices and GPS/mapping clients"
148 -HOMEPAGE="https://gpsd.io/"
149 -
150 -LICENSE="BSD GPL-2"
151 -SLOT="0/27"
152 -
153 -GPSD_PROTOCOLS=(
154 - aivdm ashtech earthmate evermore fury fv18 garmin garmintxt geostar
155 - gpsclock greis isync itrax mtk3301 navcom nmea0183 nmea2000 ntrip
156 - oceanserver oncore passthrough rtcm104v2 rtcm104v3 sirf skytraq
157 - superstar2 tnt tripmate tsip ublox
158 -)
159 -IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/+gpsd_protocols_}
160 -IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth +cxx dbus debug ipv6 latency-timing ncurses ntp python qt5 +shm +sockets static test udev usb X"
161 -REQUIRED_USE="X? ( python )
162 - gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )
163 - gpsd_protocols_isync? ( gpsd_protocols_ublox )
164 - gpsd_protocols_ublox? ( python )
165 - gpsd_protocols_greis? ( python )
166 - python? ( ${PYTHON_REQUIRED_USE} )
167 - qt5? ( cxx )"
168 -RESTRICT="!test? ( test )"
169 -
170 -RDEPEND="
171 - acct-user/gpsd
172 - >=net-misc/pps-tools-0.0.20120407
173 - bluetooth? ( net-wireless/bluez:= )
174 - dbus? (
175 - sys-apps/dbus
176 - dev-libs/dbus-glib
177 - )
178 - ncurses? ( sys-libs/ncurses:= )
179 - ntp? ( || (
180 - net-misc/ntp
181 - net-misc/ntpsec
182 - net-misc/chrony
183 - ) )
184 - qt5? (
185 - dev-qt/qtcore:5
186 - dev-qt/qtnetwork:5
187 - )
188 - python? ( ${PYTHON_DEPS} )
189 - gpsd_protocols_ublox? ( dev-python/pyserial )
190 - gpsd_protocols_greis? ( dev-python/pyserial )
191 - usb? ( virtual/libusb:1 )
192 - X? ( dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] )"
193 -DEPEND="${RDEPEND}
194 - test? ( sys-devel/bc )"
195 -BDEPEND="virtual/pkgconfig
196 - $(python_gen_any_dep ">=dev-util/scons-2.3.0[\${PYTHON_USEDEP}]")"
197 -
198 -# xml packages are for man page generation
199 -if [[ ${PV} == *9999* ]] ; then
200 - DEPEND+="
201 - app-text/xmlto
202 - =app-text/docbook-xml-dtd-4.1*"
203 -fi
204 -
205 -PATCHES=(
206 - "${FILESDIR}"/${PN}-3.21-scons_conditional_python_scripts.patch
207 -)
208 -
209 -src_prepare() {
210 - # Make sure our list matches the source.
211 - local src_protocols=$(echo $(
212 - sed -n '/# GPS protocols/,/# Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort
213 - ) )
214 - if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
215 - eerror "Detected protocols: ${src_protocols}"
216 - eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
217 - die "please sync ebuild & source"
218 - fi
219 -
220 - # Avoid useless -L paths to the install dir
221 - sed -i \
222 - -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
223 - SConstruct || die
224 -
225 - # Fix systemd binary paths
226 - sed -i -e 's/local\///' 'systemd/gpsd.service' || die
227 - sed -i -e 's/local\///' 'systemd/gpsdctl@××××××××.in' || die
228 -
229 - default
230 -
231 - if use python ; then
232 - distutils-r1_src_prepare
233 - else
234 - # We're using escons, bug #734352
235 - python_setup
236 - fi
237 -}
238 -
239 -python_prepare_all() {
240 - python_setup
241 -
242 - # Extract python info out of SConstruct so we can use saner distribute
243 - pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
244 - local pyprogs=$(sed -n '/^ *python_progs = \[/,/\]/{s:^ *::p}' SConstruct)
245 - local pybins=$("${PYTHON}" -c "${pyprogs}; print(python_progs)" || die "Unable to extract core Python tools")
246 - # Handle conditional tools manually. #666734
247 - use X && pybins+="+ ['xgps', 'xgpsspeed']"
248 - use gpsd_protocols_ublox && pybins+="+ ['ubxtool']"
249 - use gpsd_protocols_greis && pybins+="+ ['zerk']"
250 - local pysrcs=$(sed -n '/^ *packet_ffi_extension = \[/,/\]/{s:^ *::p}' SConstruct)
251 - local packet=$("${PYTHON}" -c "${pysrcs}; print(packet_ffi_extension)" || die "Unable to extract packet types")
252 - # Post 3.19 the clienthelpers were merged into gps.packet
253 - sed \
254 - -e "s|@VERSION@|$(pyvar gpsd_version)|" \
255 - -e "s|@URL@|'${HOMEPAGE}'|" \
256 - -e "s|@EMAIL@|$(pyvar devmail)|" \
257 - -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
258 - -e "/@GPS_CLIENT_SOURCES@/d" \
259 - -e "s|@SCRIPTS@|${pybins}|" \
260 - "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
261 - distutils-r1_python_prepare_all
262 -}
263 -
264 -src_configure() {
265 - scons_opts=(
266 - prefix="${EPREFIX}/usr"
267 - libdir="\$prefix/$(get_libdir)"
268 - udevdir="$(get_udevdir)"
269 - rundir="/run"
270 - chrpath=False
271 - gpsd_user=gpsd
272 - gpsd_group=dialout
273 - nostrip=True
274 - manbuild=False
275 - shared=$(usex !static True False)
276 - bluez=$(usex bluetooth)
277 - libgpsmm=$(usex cxx)
278 - clientdebug=$(usex debug)
279 - dbus_export=$(usex dbus)
280 - ipv6=$(usex ipv6)
281 - timing=$(usex latency-timing)
282 - ncurses=$(usex ncurses)
283 - ntpshm=$(usex ntp)
284 - pps=$(usex ntp)
285 - python=$(usex python)
286 - # force a predictable python libdir because lib vs. lib64 usage differs
287 - # from 3.5 to 3.6+
288 - $(usex python python_libdir="${EPREFIX}"/python-discard "")
289 - qt=$(usex qt5)
290 - shm_export=$(usex shm)
291 - socket_export=$(usex sockets)
292 - usb=$(usex usb)
293 - xgps=$(usex X)
294 - )
295 -
296 - use qt5 && scons_opts+=( qt_versioned=5 )
297 -
298 - # enable specified protocols
299 - local protocol
300 - for protocol in ${GPSD_PROTOCOLS[@]} ; do
301 - scons_opts+=( ${protocol}=$(usex gpsd_protocols_${protocol}) )
302 - done
303 -}
304 -
305 -src_compile() {
306 - export CHRPATH=
307 - tc-export CC CXX PKG_CONFIG
308 - export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
309 - escons "${scons_opts[@]}"
310 -
311 - use python && distutils-r1_src_compile
312 -}
313 -
314 -src_install() {
315 - DESTDIR="${D}" escons install "${scons_opts[@]}" $(usex udev udev-install "")
316 -
317 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
318 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd
319 -
320 - # Cleanup bad alt copy due to Scons
321 - if use python ; then
322 - rm -rf "${ED}"/python-discard/gps* || die
323 - find "${ED}"/python-discard/ -type d -delete || die
324 - fi
325 -
326 - # Install correct multi-python copy
327 - use python && distutils-r1_src_install
328 -}
329
330 diff --git a/sci-geosciences/gpsd/gpsd-3.23-r2.ebuild b/sci-geosciences/gpsd/gpsd-3.23-r2.ebuild
331 deleted file mode 100644
332 index 79a48722e97..00000000000
333 --- a/sci-geosciences/gpsd/gpsd-3.23-r2.ebuild
334 +++ /dev/null
335 @@ -1,212 +0,0 @@
336 -# Copyright 1999-2021 Gentoo Authors
337 -# Distributed under the terms of the GNU General Public License v2
338 -
339 -EAPI=7
340 -
341 -DISTUTILS_OPTIONAL=1
342 -PYTHON_COMPAT=( python3_{8,9,10} )
343 -SCONS_MIN_VERSION="2.3.0"
344 -
345 -inherit udev multilib distutils-r1 scons-utils toolchain-funcs
346 -
347 -if [[ ${PV} == "9999" ]] ; then
348 - EGIT_REPO_URI="https://gitlab.com/gpsd/gpsd.git"
349 - inherit git-r3
350 -else
351 - SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
352 - KEYWORDS="amd64 arm ~arm64 ppc ppc64 ~riscv ~sparc x86"
353 -fi
354 -
355 -DESCRIPTION="GPS daemon and library for USB/serial GPS devices and GPS/mapping clients"
356 -HOMEPAGE="https://gpsd.gitlab.io/gpsd/"
357 -
358 -LICENSE="BSD"
359 -SLOT="0/29"
360 -
361 -GPSD_PROTOCOLS=(
362 - aivdm ashtech earthmate evermore fury fv18 garmin garmintxt geostar
363 - gpsclock greis isync itrax mtk3301 navcom nmea0183 nmea2000 ntrip
364 - oceanserver oncore passthrough rtcm104v2 rtcm104v3 sirf skytraq
365 - superstar2 tnt tripmate tsip ublox
366 -)
367 -IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/+gpsd_protocols_}
368 -IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth +cxx dbus debug ipv6 latency-timing ncurses ntp python qt5 +shm +sockets static systemd test udev usb X"
369 -REQUIRED_USE="X? ( python )
370 - gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )
371 - gpsd_protocols_isync? ( gpsd_protocols_ublox )
372 - gpsd_protocols_ublox? ( python )
373 - gpsd_protocols_greis? ( python )
374 - python? ( ${PYTHON_REQUIRED_USE} )
375 - qt5? ( cxx )"
376 -RESTRICT="!test? ( test )"
377 -
378 -RDEPEND="
379 - acct-user/gpsd
380 - acct-group/dialout
381 - >=net-misc/pps-tools-0.0.20120407
382 - $(python_gen_any_dep 'dev-util/scons[${PYTHON_USEDEP}]')
383 - bluetooth? ( net-wireless/bluez:= )
384 - dbus? (
385 - sys-apps/dbus
386 - dev-libs/dbus-glib
387 - )
388 - ncurses? ( sys-libs/ncurses:= )
389 - ntp? ( || (
390 - net-misc/ntp
391 - net-misc/ntpsec
392 - net-misc/chrony
393 - ) )
394 - qt5? (
395 - dev-qt/qtcore:5
396 - dev-qt/qtnetwork:5
397 - )
398 - python? ( ${PYTHON_DEPS} )
399 - gpsd_protocols_ublox? ( dev-python/pyserial )
400 - gpsd_protocols_greis? ( dev-python/pyserial )
401 - usb? ( virtual/libusb:1 )
402 - X? ( dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] )"
403 -DEPEND="${RDEPEND}"
404 -BDEPEND="virtual/pkgconfig
405 - test? ( sys-devel/bc )"
406 -
407 -# asciidoctor package is for man page generation
408 -if [[ ${PV} == *9999* ]] ; then
409 - BDEPEND+=" dev-ruby/asciidoctor"
410 -fi
411 -
412 -python_check_deps() {
413 - has_version -b "dev-util/scons[${PYTHON_USEDEP}]" || return 1
414 -}
415 -
416 -src_prepare() {
417 - # Make sure our list matches the source.
418 - local src_protocols=$(echo $(
419 - sed -n '/# GPS protocols/,/# Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConscript | awk '{print $1}' | LC_ALL=C sort
420 - ) )
421 -
422 - if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
423 - eerror "Detected protocols: ${src_protocols}"
424 - eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
425 - die "please sync ebuild & source"
426 - fi
427 -
428 - # bug #807661
429 - sed -i -e 's:$SRCDIR/gpsd.hotplug:$SRCDIR/../gpsd.hotplug:' SConscript || die
430 -
431 - default
432 -
433 - use python && distutils-r1_src_prepare
434 -}
435 -
436 -python_prepare_all() {
437 - python_setup
438 -
439 - # Extract python info out of SConscript so we can use saner distribute
440 - pyarray() { sed -n "/^ *$1 *= *\\[/,/\\]/p" SConscript ; }
441 - local pyprogs=$(pyarray python_progs)
442 - local pybins=$("${PYTHON}" -c "${pyprogs}; \
443 - print(list(set(python_progs) - {'xgps', 'xgpsspeed', 'ubxtool', 'zerk'}))" || die "Unable to list pybins")
444 - # Handle conditional tools manually. #666734
445 - use X && pybins+="+ ['xgps', 'xgpsspeed']"
446 - use gpsd_protocols_ublox && pybins+="+ ['ubxtool']"
447 - use gpsd_protocols_greis && pybins+="+ ['zerk']"
448 - local pysrcs=$(pyarray packet_ffi_extension)
449 - local packet=$("${PYTHON}" -c "${pysrcs}; print(packet_ffi_extension)" || die "Unable to extract packet types")
450 -
451 - pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConscript ; }
452 - pyvar2() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
453 -
454 - # Post 3.19 the clienthelpers were merged into gps.packet
455 -
456 - # TODO: Fix hardcoding https://gpsd.io/ for now for @URL@
457 - sed \
458 - -e "s|@VERSION@|$(pyvar2 gpsd_version | sed -e 's:\"::g')|" \
459 - -e "s|@URL@|https://gpsd.io/|" \
460 - -e "s|@DEVMAIL@|$(pyvar devmail)|" \
461 - -e "s|@SCRIPTS@|${pybins}|" \
462 - -e "s|@DOWNLOAD@|$(pyvar download)|" \
463 - -e "s|@IRCCHAN@|$(pyvar ircchan)|" \
464 - -e "s|@ISSUES@|$(pyvar bugtracker)|" \
465 - -e "s|@MAILMAN@|$(pyvar mailman)|" \
466 - -e "s|@PROJECTPAGE@|$(pyvar projectpage)|" \
467 - -e "s|@SUPPORT@|https://gpsd.io/SUPPORT.html|" \
468 - -e "s|@WEBSITE@|https://gpsd.io/|" \
469 - "${S}"/packaging/gpsd-setup.py.in > setup.py || die
470 - distutils-r1_python_prepare_all
471 -}
472 -
473 -src_configure() {
474 - scons_opts=(
475 - prefix="${EPREFIX}/usr"
476 - libdir="\$prefix/$(get_libdir)"
477 - udevdir="$(get_udevdir)"
478 - rundir="/run"
479 - chrpath=False
480 - gpsd_user=gpsd
481 - gpsd_group=dialout
482 - nostrip=True
483 - systemd=$(usex systemd)
484 - unitdir="\$prefix/$(get_libdir)"
485 - shared=$(usex !static True False)
486 - bluez=$(usex bluetooth)
487 - libgpsmm=$(usex cxx)
488 - clientdebug=$(usex debug)
489 - dbus_export=$(usex dbus)
490 - ipv6=$(usex ipv6)
491 - timing=$(usex latency-timing)
492 - ncurses=$(usex ncurses)
493 - ntpshm=$(usex ntp)
494 - pps=$(usex ntp)
495 - python=$(usex python)
496 - # force a predictable python libdir because lib vs. lib64 usage differs
497 - # from 3.5 to 3.6+
498 - $(usex python python_libdir="${EPREFIX}"/python-discard "")
499 - qt=$(usex qt5)
500 - shm_export=$(usex shm)
501 - socket_export=$(usex sockets)
502 - usb=$(usex usb)
503 - )
504 -
505 - if [[ ${PV} != *9999* ]] ; then
506 - scons_opts+=( manbuild=False )
507 - fi
508 -
509 - use X && scons_opts+=( xgps=1 xgpsspeed=1 )
510 - use qt5 && scons_opts+=( qt_versioned=5 )
511 -
512 - # enable specified protocols
513 - local protocol
514 - for protocol in ${GPSD_PROTOCOLS[@]} ; do
515 - scons_opts+=( ${protocol}=$(usex gpsd_protocols_${protocol}) )
516 - done
517 -
518 - # bug #809260
519 - python_setup
520 -}
521 -
522 -src_compile() {
523 - export CHRPATH=
524 - tc-export CC CXX PKG_CONFIG
525 - export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
526 - escons "${scons_opts[@]}"
527 -
528 - pushd "${P}" || die
529 - ln -sf ../setup.py . || die
530 - use python && distutils-r1_src_compile
531 - popd || die
532 -}
533 -
534 -src_install() {
535 - DESTDIR="${D}" escons install "${scons_opts[@]}" $(usex udev udev-install '')
536 -
537 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
538 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd
539 -
540 - # Cleanup bad alt copy due to Scons
541 - rm -rf "${D}"/python-discard/gps*
542 - find "${D}"/python-discard/ -type d -delete
543 - # Install correct multi-python copy
544 - pushd "${P}" || die
545 - use python && distutils-r1_src_install
546 - popd || die
547 -}