From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8F944138331 for ; Thu, 29 Mar 2018 22:18:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4EE6E099B; Thu, 29 Mar 2018 22:18:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CA58E099B for ; Thu, 29 Mar 2018 22:18:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2C28E335D2C for ; Thu, 29 Mar 2018 22:18:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 396F026E for ; Thu, 29 Mar 2018 22:18:42 +0000 (UTC) From: "Chris Reffett" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Chris Reffett" Message-ID: <1522361828.fe073e3f00b119bcde017ad96e011a63046c7e65.creffett@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libhackrf/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libhackrf/Manifest net-libs/libhackrf/libhackrf-2018.01.1.ebuild X-VCS-Directories: net-libs/libhackrf/ X-VCS-Committer: creffett X-VCS-Committer-Name: Chris Reffett X-VCS-Revision: fe073e3f00b119bcde017ad96e011a63046c7e65 X-VCS-Branch: master Date: Thu, 29 Mar 2018 22:18:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1508e093-7bd8-495a-9c37-411db934c370 X-Archives-Hash: a2f6bd8849d52cf00bcf21371d44a905 commit: fe073e3f00b119bcde017ad96e011a63046c7e65 Author: Chris Reffett gentoo org> AuthorDate: Thu Mar 29 22:17:08 2018 +0000 Commit: Chris Reffett gentoo org> CommitDate: Thu Mar 29 22:17:08 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe073e3f net-libs/libhackrf: Version bump Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-libs/libhackrf/Manifest | 1 + net-libs/libhackrf/libhackrf-2018.01.1.ebuild | 45 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/net-libs/libhackrf/Manifest b/net-libs/libhackrf/Manifest index 35eb98c41e8..b40a43e37cb 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 00000000000..672fac64ed5 --- /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." +}