summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2017-02-20 13:48:16 -0500
committerZero_Chaos <zerochaos@gentoo.org>2017-02-20 14:33:36 -0500
commit94d859bd5f95d579837d5998d86e3b5db2e5e080 (patch)
treebe892d4684e53aa6cec640669fe3892ba417ba77
parentsci-libs/plplot: Fix .pc file by using full paths (diff)
downloadgentoo-94d859bd5f95d579837d5998d86e3b5db2e5e080.tar.gz
gentoo-94d859bd5f95d579837d5998d86e3b5db2e5e080.tar.bz2
gentoo-94d859bd5f95d579837d5998d86e3b5db2e5e080.zip
net-libs/libhackrf: bump to eapi 6, bump to 2017.02.1
Package-Manager: Portage-2.3.3, Repoman-2.3.1
-rw-r--r--net-libs/libhackrf/Manifest1
-rw-r--r--net-libs/libhackrf/libhackrf-2017.02.1.ebuild46
-rw-r--r--net-libs/libhackrf/libhackrf-9999.ebuild8
3 files changed, 51 insertions, 4 deletions
diff --git a/net-libs/libhackrf/Manifest b/net-libs/libhackrf/Manifest
index d69e61f55fe..cd92e588fae 100644
--- a/net-libs/libhackrf/Manifest
+++ b/net-libs/libhackrf/Manifest
@@ -1,3 +1,4 @@
DIST hackrf-2014.04.1.tar.xz 14375500 SHA256 83ef987d31d314d6d99a227a18c31c34a44e996a28841234e59e53c5d8ab5a72 SHA512 1929c7af1de0c9ad1afcf56d53c5db13ef362f3ef896f3549841eeea87aec5e1133c63da740688739278b13e772b70d510a4a1035440b5b6aad2e9438a694892 WHIRLPOOL 0fa45438b4aa84e3e16b975949cead0010f6271ec89b8e2f69fcfdbd5c5a722d803a6f7d017b272b3c71773768b32bbeae00a6a43879a9268c7d84315282a93a
DIST hackrf-2014.08.1.tar.xz 14376904 SHA256 624c46163161896b8347a73e9edeb1188433f032df7cd00eda9a242c2a5bc98a SHA512 2bb2e9398479f635fc4cb73875d9728c689f5d29bfbdcaae661d98ecafe51d38ac8768dd4f38b87766195d9ed08757e76d790030edf6f6f572d547146287c073 WHIRLPOOL c33430279d0757e104f09ecafce2df859f33f8de9139dd6491a11d86ed3e241ba3ef298d1d0994113e695c46ab211daf573262815a8a1fc5349fd44642da3910
DIST hackrf-2015.07.2.tar.xz 14415212 SHA256 5e3d9c36928b88cdbc0d66ee54e24e8682972dba478abfca0e31069515b870b6 SHA512 a4f7b7800ece9b260d5c8c374f5544aa55cd2e97e10c6a0b33cf476e2ad4811321ffb1308d9dfb2168b2624cd3af616d1c314ad86bcd6f4c3fd0897319fa2cbd WHIRLPOOL 8dfee4fb55be913f44d8ab905fc7c6b1fd703e16b01aa41191e97ab726a3b04d6a78670ae47c2d3bada64e38d42cabcf7f39b646fba55b436cbcab312be1f198
+DIST hackrf-2017.02.1.tar.xz 15409352 SHA256 1dd1fbec98bf2fa56c92f82fd66eb46801a2248c019c4707b3971bc187cb973a SHA512 7cd6ad9aa8fef8afed41c48a3358bff18c6b2a9a112b13daabda87726e0e3ca4cf1e0c0c6ff9689bdd49f854e2e5887a84ccd7975abef43a43b75ecf8a5236ce WHIRLPOOL 96b057560237e554465e1a8ad336f72a53409574612b6449b1e09c8842278c365274f274c118adfca15a17ec69fd20f42d739e658fc06f65024e54ac6657c7f4
diff --git a/net-libs/libhackrf/libhackrf-2017.02.1.ebuild b/net-libs/libhackrf/libhackrf-2017.02.1.ebuild
new file mode 100644
index 00000000000..bb786815345
--- /dev/null
+++ b/net-libs/libhackrf/libhackrf-2017.02.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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=(
+ $(cmake-utils_use_enable udev INSTALL_UDEV_RULES)
+ )
+ 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."
+}
diff --git a/net-libs/libhackrf/libhackrf-9999.ebuild b/net-libs/libhackrf/libhackrf-9999.ebuild
index 7444a7def65..bb786815345 100644
--- a/net-libs/libhackrf/libhackrf-9999.ebuild
+++ b/net-libs/libhackrf/libhackrf-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
inherit cmake-utils udev
@@ -11,9 +11,9 @@ HOMEPAGE="http://greatscottgadgets.com/hackrf/"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/mossmann/hackrf.git"
- inherit git-2
+ inherit git-r3
KEYWORDS=""
- EGIT_SOURCEDIR="${WORKDIR}/hackrf"
+ EGIT_CHECKOUT_DIR="${WORKDIR}/hackrf"
S="${WORKDIR}/hackrf/host/libhackrf"
else
S="${WORKDIR}/hackrf-${PV}/host/libhackrf"