summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Reffett <creffett@gentoo.org>2018-03-29 18:17:08 -0400
committerChris Reffett <creffett@gentoo.org>2018-03-29 18:17:08 -0400
commitfe073e3f00b119bcde017ad96e011a63046c7e65 (patch)
treefb67053b52204e832520c35b67372bb2fb2079ff /net-libs/libhackrf
parentnet-wireless/hackrf-tools: Version bump (diff)
downloadgentoo-fe073e3f00b119bcde017ad96e011a63046c7e65.tar.gz
gentoo-fe073e3f00b119bcde017ad96e011a63046c7e65.tar.bz2
gentoo-fe073e3f00b119bcde017ad96e011a63046c7e65.zip
net-libs/libhackrf: Version bump
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-libs/libhackrf')
-rw-r--r--net-libs/libhackrf/Manifest1
-rw-r--r--net-libs/libhackrf/libhackrf-2018.01.1.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/net-libs/libhackrf/Manifest b/net-libs/libhackrf/Manifest
index 35eb98c41e87..b40a43e37cbf 100644
--- a/net-libs/libhackrf/Manifest
+++ b/net-libs/libhackrf/Manifest
@@ -2,3 +2,4 @@ DIST hackrf-2014.04.1.tar.xz 14375500 BLAKE2B 9bf73bb331ee73b60d3e6ec0c0a4ebd11e
DIST hackrf-2014.08.1.tar.xz 14376904 BLAKE2B 6ff096dc3e3072811dcb324c71b56fd2023e8e7bb39f8977ee783edc835b588935f1afb1a26ebcdd16c1e6727be3f82e59d2c34e2f193aff43638c22f3956905 SHA512 2bb2e9398479f635fc4cb73875d9728c689f5d29bfbdcaae661d98ecafe51d38ac8768dd4f38b87766195d9ed08757e76d790030edf6f6f572d547146287c073
DIST hackrf-2015.07.2.tar.xz 14415212 BLAKE2B c9ef83e7a4c1c0cca9ea592c02cc1fe9fc5f42203d177f15b36893e719cf3c269cdb8c3d0e13ed5c51826b8e346b58d572b96c3d197c615e58f9d4464a306c14 SHA512 a4f7b7800ece9b260d5c8c374f5544aa55cd2e97e10c6a0b33cf476e2ad4811321ffb1308d9dfb2168b2624cd3af616d1c314ad86bcd6f4c3fd0897319fa2cbd
DIST hackrf-2017.02.1.tar.xz 15409352 BLAKE2B 930c6d30cbcadd366f889add7cd8f9756edf7a6b82a478353ea94662e9d2e0b612ca5ec0473eb0083dcbec761f2d5385eea31608f50f81543449ffa4bc31d277 SHA512 7cd6ad9aa8fef8afed41c48a3358bff18c6b2a9a112b13daabda87726e0e3ca4cf1e0c0c6ff9689bdd49f854e2e5887a84ccd7975abef43a43b75ecf8a5236ce
+DIST hackrf-2018.01.1.tar.xz 15464500 BLAKE2B 3a56305ce17b46660621b8f3e996e35909d7a8e7ab88ef643ed8f4c8d68f346e11dfe5fd2cb37aa23af62f202f28d9a8dc1da0cd8768fdbd6f293c65562f25a4 SHA512 89848fb58a8a29f7fe85bd817d5716117a2c7a5f2c4bb8582ad1ba8186831ca3054ea1314de943d1e923641eb18b6008cd8af79585e58fa50d55d5a7fd1b04e4
diff --git a/net-libs/libhackrf/libhackrf-2018.01.1.ebuild b/net-libs/libhackrf/libhackrf-2018.01.1.ebuild
new file mode 100644
index 000000000000..672fac64ed5f
--- /dev/null
+++ b/net-libs/libhackrf/libhackrf-2018.01.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2018 Gentoo Foundation
+# 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
+ KEYWORDS=""
+ 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(){
+ mycmakeargs=(
+ -DENABLE_INSTALL_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."
+}