blob: 03530b7af36c695648becabee764f6933a958f38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake udev
DESCRIPTION="User mode driver for Airspy HF+"
HOMEPAGE="https://airspy.com/airspy-hf-plus/"
SRC_URI="https://github.com/airspy/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="udev"
DEPEND="dev-libs/libusb"
RDEPEND="${DEPEND}
udev? ( virtual/udev )
"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/airspyhf-1.6.8-remove-static.patch"
)
src_prepare(){
sed -i "s@DESTINATION \"/etc/udev/rules.d\"@DESTINATION \"$(get_udevdir)/rules.d\"@" "tools/CMakeLists.txt" || die
cmake_src_prepare
}
src_configure(){
mycmakeargs+=(
-DINSTALL_UDEV_RULES=$(usex udev)
)
cmake_src_configure
}
pkg_postinst(){
use udev && udev_reload
}
pkg_postrm(){
use udev && udev_reload
}
|