diff options
Diffstat (limited to 'net-libs/libhackrf')
-rw-r--r-- | net-libs/libhackrf/Manifest | 2 | ||||
-rw-r--r-- | net-libs/libhackrf/libhackrf-2021.03.1.ebuild | 44 |
2 files changed, 46 insertions, 0 deletions
diff --git a/net-libs/libhackrf/Manifest b/net-libs/libhackrf/Manifest index 270791701c68..de264dc0cd97 100644 --- a/net-libs/libhackrf/Manifest +++ b/net-libs/libhackrf/Manifest @@ -1,4 +1,6 @@ DIST hackrf-2018.01.1.tar.xz 15464500 BLAKE2B 3a56305ce17b46660621b8f3e996e35909d7a8e7ab88ef643ed8f4c8d68f346e11dfe5fd2cb37aa23af62f202f28d9a8dc1da0cd8768fdbd6f293c65562f25a4 SHA512 89848fb58a8a29f7fe85bd817d5716117a2c7a5f2c4bb8582ad1ba8186831ca3054ea1314de943d1e923641eb18b6008cd8af79585e58fa50d55d5a7fd1b04e4 +DIST hackrf-2021.03.1.tar.xz 13661964 BLAKE2B 0a00b2d24cc6ac7ca36f66e8f5b3029cfd446a6c5b5427f7d25db6dd191693c1e1c010abd85907813d55c6bd367780c70860b4f7e7f83fb9970d425311893780 SHA512 4a88b877a9f6fee0c8d9496eb265655af4baa678e862ca6147596cd3a1d85dd50315da6531efa54d050847ce5068c4726393b4897d40576888d10a898ad57139 EBUILD libhackrf-2018.01.1.ebuild 1007 BLAKE2B 6bec7c1a938fa883218ac3e1d2af9280baff3e6ad0552e598fc63ff815debb1c621b5bb413b645934882d6c1ddd349065e866e7e0de2c5760478e03de5cf7af6 SHA512 1696a2d932930bd128e0cbae2b334a290e686263cbf85881994d922f155d31d3558dd1fc37047f531ab5d569814f74bfc30c8f94937af88a59181a73cf75293a +EBUILD libhackrf-2021.03.1.ebuild 1007 BLAKE2B 2ae026d3684039e642c7665fc39a6b2a57646fe59f479c38a314b5d8b9bd966e310536f93f5fc44e12c3af50bf88e43d6a8be3c9196bcf19db041b854dde10c4 SHA512 d6515e507b109e24e3a73e149cda9a8060a3b11bab40c7cbd883760b2e5c74d8afad0e2a16285b67c9a374c2814be2d9550771167bc2fe3fe6bdb7ed1a30265b EBUILD libhackrf-9999.ebuild 1007 BLAKE2B 6bec7c1a938fa883218ac3e1d2af9280baff3e6ad0552e598fc63ff815debb1c621b5bb413b645934882d6c1ddd349065e866e7e0de2c5760478e03de5cf7af6 SHA512 1696a2d932930bd128e0cbae2b334a290e686263cbf85881994d922f155d31d3558dd1fc37047f531ab5d569814f74bfc30c8f94937af88a59181a73cf75293a MISC metadata.xml 477 BLAKE2B b801f5f0a79afbd3227a4ee2688b9332824f61b8bda623565d2f36408dc792aacc273495d7ada5a37a69092bedc61b7ca28952738a5969bfe3132253423d437d SHA512 ba679c6d4942d6a0f8efb480f820434676e37148bc60b481e9b7b0fe13b6037ee8c450632a85de25ed08e96b6e3308ee7b54b8a5f5130cd43827ad811d59a825 diff --git a/net-libs/libhackrf/libhackrf-2021.03.1.ebuild b/net-libs/libhackrf/libhackrf-2021.03.1.ebuild new file mode 100644 index 000000000000..c5c30e59473a --- /dev/null +++ b/net-libs/libhackrf/libhackrf-2021.03.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils udev + +DESCRIPTION="library for communicating with HackRF SDR platform" +HOMEPAGE="http://greatscottgadgets.com/hackrf/" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/mossmann/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/mossmann/hackrf/releases/download/v${PV}/hackrf-${PV}.tar.xz" + KEYWORDS="~amd64 ~arm ~ppc ~x86" +fi + +LICENSE="BSD" +SLOT="0/${PV}" +IUSE="+udev" + +DEPEND="virtual/libusb:1" +RDEPEND="${DEPEND}" + +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-utils_src_configure +} + +pkg_postinst() { + use udev && einfo "Users in the usb group can use hackrf." +} |