public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rick Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libhackrf/
Date: Fri, 23 Feb 2024 19:18:22 +0000 (UTC)	[thread overview]
Message-ID: <1708715896.be2c493e45fd52a82c4018e7eb1ba4a4811458bf.zerochaos@gentoo> (raw)

commit:     be2c493e45fd52a82c4018e7eb1ba4a4811458bf
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 23 19:15:17 2024 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Fri Feb 23 19:18:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be2c493e

net-libs/libhackrf: add 2024.02.1

Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 net-libs/libhackrf/Manifest                   |  1 +
 net-libs/libhackrf/libhackrf-2024.02.1.ebuild | 58 +++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/net-libs/libhackrf/Manifest b/net-libs/libhackrf/Manifest
index cf1f0ee7dde5..872055496e53 100644
--- a/net-libs/libhackrf/Manifest
+++ b/net-libs/libhackrf/Manifest
@@ -1 +1,2 @@
 DIST hackrf-2023.01.1.tar.xz 23030956 BLAKE2B f0ea4f92208d1db5b4e1c11231e4420db757c08e28e7a80d79e70b02d868689ddf516bc6f003fc208f60c221c9153412a12fe3cbdf8f58001c1f7cdd26383ac0 SHA512 7c2ef9c5c050e258a0d1695240f9163955cb3ea9ab9163aad6bdbdebfdb82cde9925818ced3323342fe9c4ddb80dcedbc5a7986caaa4e0b7036e8e07bec0296e
+DIST hackrf-2024.02.1.tar.xz 21734672 BLAKE2B 493a886719aa90e1b52229beaec45cb9db315dc91d001c275dd3989cde56fe6a312d4fca1c27b4c1366a4653880e74ab3d1e4363ee392d0f93deb631b7fddac4 SHA512 d057574f1e9b1bc2cebcd06773054b7fcba55d44e4c028f4f95e67874b71bd0a83906795a391e283c15d2b21ad7f3e8337be5aa0ee2f6a3c57632a70da10e2e4

diff --git a/net-libs/libhackrf/libhackrf-2024.02.1.ebuild b/net-libs/libhackrf/libhackrf-2024.02.1.ebuild
new file mode 100644
index 000000000000..0f11732ed8a3
--- /dev/null
+++ b/net-libs/libhackrf/libhackrf-2024.02.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake udev
+
+DESCRIPTION="library for communicating with HackRF SDR platform"
+HOMEPAGE="http://greatscottgadgets.com/hackrf/"
+
+if [[ ${PV} == "9999" ]] ; then
+	EGIT_REPO_URI="https://github.com/greatscottgadgets/hackrf.git"
+	inherit git-r3
+	EGIT_CHECKOUT_DIR="${WORKDIR}/hackrf"
+	S="${WORKDIR}/hackrf/host/libhackrf"
+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 ~riscv ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+IUSE="+udev"
+
+DEPEND="virtual/libusb:1"
+RDEPEND="${DEPEND}"
+
+# https://github.com/greatscottgadgets/hackrf/issues/1193
+PATCHES=( "${FILESDIR}/hackrf-disable-static-2022.09.1.patch" )
+
+src_configure() {
+	local mycmakeargs=(
+		-DINSTALL_UDEV_RULES="$(usex udev)"
+	)
+	if use udev; then
+		mycmakeargs+=(
+			-DUDEV_RULES_GROUP=usb
+			-DUDEV_RULES_PATH="$(get_udevdir)/rules.d"
+		)
+	fi
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_build hackrf
+}
+
+pkg_postinst() {
+	if use udev; then
+		einfo "Users in the usb group can use hackrf."
+		udev_reload
+	fi
+}
+
+pkg_postrm() {
+	udev_reload
+}


             reply	other threads:[~2024-02-23 19:18 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-23 19:18 Rick Farina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-08-23 20:05 [gentoo-commits] repo/gentoo:master commit in: net-libs/libhackrf/ Arthur Zamarin
2023-08-23 20:05 Arthur Zamarin
2023-08-23 17:15 Rick Farina
2023-08-23 17:15 Rick Farina
2023-02-01 22:12 Rick Farina
2022-12-26  8:43 Andreas Sturmlechner
2022-12-26  3:54 Sam James
2022-12-26  3:20 Sam James
2022-10-12 14:31 Rick Farina
2022-09-30 13:53 Rick Farina
2022-04-30 17:51 Marek Szuba
2021-10-26 18:18 Rick Farina
2021-10-26 17:48 Rick Farina
2021-10-15  6:00 Agostino Sarubbo
2021-10-12 18:06 Marek Szuba
2021-03-30 20:26 Rick Farina
2021-03-30 20:26 Rick Farina
2021-03-24 14:40 Rick Farina
2020-06-05 23:49 Andreas Sturmlechner
2019-09-23 16:20 Rick Farina
2018-06-06  8:13 Andreas Sturmlechner
2018-06-05 17:27 Richard Farina
2018-03-29 22:18 Chris Reffett
2017-02-20 19:33 Richard Farina
2017-02-20 19:33 Richard Farina
2016-03-15 18:11 Richard Farina
2016-03-15 18:11 Richard Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1708715896.be2c493e45fd52a82c4018e7eb1ba4a4811458bf.zerochaos@gentoo \
    --to=zerochaos@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox