7 |
7 |
PYTHON_COMPAT=( python3_{9,10} )
|
8 |
8 |
SCONS_MIN_VERSION="2.3.0"
|
9 |
9 |
|
10 |
|
inherit udev distutils-r1 scons-utils systemd toolchain-funcs
|
|
10 |
inherit distutils-r1 scons-utils systemd toolchain-funcs udev
|
11 |
11 |
|
12 |
12 |
if [[ ${PV} == "9999" ]] ; then
|
13 |
13 |
EGIT_REPO_URI="https://gitlab.com/gpsd/gpsd.git"
|
14 |
14 |
inherit git-r3
|
15 |
15 |
else
|
16 |
16 |
SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
|
17 |
|
KEYWORDS="amd64 arm ~arm64 ~ppc ppc64 ~riscv ~sparc ~x86"
|
|
17 |
KEYWORDS="amd64 arm ~arm64 ~loong ~ppc ppc64 ~riscv ~sparc ~x86"
|
18 |
18 |
fi
|
19 |
19 |
|
20 |
20 |
DESCRIPTION="GPS daemon and library for USB/serial GPS devices and GPS/mapping clients"
|
... | ... | |
25 |
25 |
|
26 |
26 |
GPSD_PROTOCOLS=(
|
27 |
27 |
aivdm ashtech earthmate evermore fury fv18 garmin garmintxt geostar
|
28 |
|
gpsclock greis isync itrax mtk3301 navcom nmea0183 nmea2000 ntrip
|
29 |
|
oceanserver oncore passthrough rtcm104v2 rtcm104v3 sirf skytraq
|
30 |
|
superstar2 tnt tripmate tsip ublox
|
|
28 |
gpsclock greis isync itrax navcom nmea2000 oceanserver oncore
|
|
29 |
rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt tripmate tsip ublox
|
31 |
30 |
)
|
32 |
31 |
IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/+gpsd_protocols_}
|
33 |
32 |
IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth +cxx dbus debug ipv6 latency-timing ncurses ntp +python qt5 +shm +sockets static systemd test udev usb X"
|
... | ... | |
101 |
100 |
python_prepare_all() {
|
102 |
101 |
python_setup
|
103 |
102 |
|
|
103 |
# bug #796476
|
|
104 |
python_export_utf8_locale
|
|
105 |
|
104 |
106 |
# Extract python info out of SConscript so we can use saner distribute
|
105 |
107 |
pyarray() { sed -n "/^ *$1 *= *\\[/,/\\]/p" SConscript ; }
|
106 |
108 |
local pyprogs=$(pyarray python_progs)
|
... | ... | |
196 |
198 |
popd || die
|
197 |
199 |
}
|
198 |
200 |
|
|
201 |
src_test() {
|
|
202 |
escons "${scons_opts[@]}" check
|
|
203 |
}
|
|
204 |
|
|
205 |
python_test() {
|
|
206 |
# Silence QA check which gets confused by layout(?). We do run the tests.
|
|
207 |
:;
|
|
208 |
}
|
|
209 |
|
199 |
210 |
src_install() {
|
200 |
211 |
DESTDIR="${D}" escons install "${scons_opts[@]}" $(usex udev udev-install '')
|
201 |
212 |
|
... | ... | |
210 |
221 |
use python && distutils-r1_src_install
|
211 |
222 |
popd || die
|
212 |
223 |
}
|
|
224 |
|
|
225 |
pkg_postinst() {
|
|
226 |
use udev && udev_reload
|
|
227 |
}
|