From 15a738a098c486b6ec6d624050dd98826f9c2d3f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 29 Sep 2022 21:23:22 +0100 Subject: gentoo auto-resync : 29:09:2022 - 21:23:22 --- net-libs/libhackrf/libhackrf-9999.ebuild | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'net-libs/libhackrf/libhackrf-9999.ebuild') diff --git a/net-libs/libhackrf/libhackrf-9999.ebuild b/net-libs/libhackrf/libhackrf-9999.ebuild index aacd79049ae5..586e9f4bd1ec 100644 --- a/net-libs/libhackrf/libhackrf-9999.ebuild +++ b/net-libs/libhackrf/libhackrf-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit cmake udev @@ -16,7 +16,7 @@ if [[ ${PV} == "9999" ]] ; then else S="${WORKDIR}/hackrf-${PV}/host/libhackrf" SRC_URI="https://github.com/greatscottgadgets/hackrf/releases/download/v${PV}/hackrf-${PV}.tar.xz" - KEYWORDS="~amd64 ~arm ~ppc ~x86" + KEYWORDS="~amd64 ~arm ~ppc ~riscv ~x86" fi LICENSE="BSD" @@ -26,6 +26,9 @@ IUSE="+udev" DEPEND="virtual/libusb:1" RDEPEND="${DEPEND}" +# https://github.com/greatscottgadgets/hackrf/issues/1193 +PATCHES=( "${FILESDIR}/hackrf-disable-static-${PV}.patch" ) + src_configure() { local mycmakeargs=( -DINSTALL_UDEV_RULES="$(usex udev)" @@ -40,5 +43,12 @@ src_configure() { } pkg_postinst() { - use udev && einfo "Users in the usb group can use hackrf." + if use udev; then + einfo "Users in the usb group can use hackrf." + udev_reload + fi +} + +pkg_postrm() { + udev_reload } -- cgit v1.2.3