| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | ~amd64 ~x86 | 0 |
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit python-single-r1 udev
DESCRIPTION="Configuration Utility for Leo Bodnar GPSDO"
HOMEPAGE="https://github.com/hamarituc/lbgpsdo"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hamarituc/${PN}"
else
SRC_URI="https://github.com/hamarituc/lbgpsdo/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3+"
SLOT="0"
IUSE="examples"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/pyhidapi[${PYTHON_USEDEP}]
')
"
BDEPEND="${RDEPEND}"
RESTRICT="test"
DOCS=( README.md )
src_install() {
default
newbin lbgpsdo.py lbgpsdo
newbin lbe142x.py lbe142x
udev_dorules 99-lbgpsdo.rules
if use examples; then
insinto /usr/share/${PN}
doins -r examples
fi
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/pyhidapi[${PYTHON_USEDEP}]
')
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/pyhidapi[${PYTHON_USEDEP}]
')