1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_6 )
8 inherit eutils python-single-r1
10 if [[ ${PV} == "9999" ]]; then
11 EGIT_REPO_URI="git://sigrok.org/${PN}"
12 inherit git-r3 autotools
14 SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 DESCRIPTION="provide (streaming) protocol decoding functionality"
19 HOMEPAGE="https://sigrok.org/wiki/Libsigrokdecode"
24 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
26 RDEPEND=">=dev-libs/glib-2.28.0
32 [[ ${PV} == "9999" ]] && eautoreconf
34 # Only a test program (not installed, and not used by src_test)
35 # is used by libsigrok, so disable it to avoid the compile.
37 -e '/build_runtc=/s:yes:no:' \
44 econf $(use_enable static-libs static)