From 8daad7e751ac557efb5316b4178fd19188498ffd Mon Sep 17 00:00:00 2001 From: Rick Farina Date: Sat, 9 Nov 2019 12:57:22 -0500 Subject: [PATCH] net-wireless/airspy: initial import Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Rick Farina --- net-wireless/airspy/Manifest | 1 + net-wireless/airspy/airspy-1.0.9.ebuild | 47 +++++++++++++++++++++++++ net-wireless/airspy/airspy-9999.ebuild | 47 +++++++++++++++++++++++++ net-wireless/airspy/metadata.xml | 9 +++++ 4 files changed, 104 insertions(+) create mode 100644 net-wireless/airspy/Manifest create mode 100644 net-wireless/airspy/airspy-1.0.9.ebuild create mode 100644 net-wireless/airspy/airspy-9999.ebuild create mode 100644 net-wireless/airspy/metadata.xml diff --git a/net-wireless/airspy/Manifest b/net-wireless/airspy/Manifest new file mode 100644 index 000000000000..a2e3e8c75c4c --- /dev/null +++ b/net-wireless/airspy/Manifest @@ -0,0 +1 @@ +DIST airspy-1.0.9.tar.gz 216852 BLAKE2B 14cc4743b4398fec6fc6defe257b38c620ccca812c8e4da580fe78a99ac0e7a1b104cc05e83ba7b1423586e182da1a77d152485c515f41b4a52ff533e19d9903 SHA512 95030a39f687b0b72115d0279725845637240d8e8639fc2fb7b4b79d24be7aec85243d6d0e0643af358e7b4cf1e81b55b3c093b888411a47c7ed8a59a2aa497c diff --git a/net-wireless/airspy/airspy-1.0.9.ebuild b/net-wireless/airspy/airspy-1.0.9.ebuild new file mode 100644 index 000000000000..8a12043c0517 --- /dev/null +++ b/net-wireless/airspy/airspy-1.0.9.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=7 + +inherit cmake-utils udev + +DESCRIPTION="Usemode driver and associated tools for airspy" +HOMEPAGE="http://www.airspy.com" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/airspy/host.git" +else + SRC_URI="https://github.com/airspy/host/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/airspyone_host-${PV}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="+udev" + +DEPEND="virtual/udev + virtual/libusb:1" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DINSTALL_UDEV_RULES=$(usex udev) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if use udev; then + udev_newrules "${D}etc/udev/rules.d/52-airspy.rules" 52-airspy.rules + rm -rf "${D}etc" + fi +} + +pkg_postinst() { + use udev && udev_reload +} diff --git a/net-wireless/airspy/airspy-9999.ebuild b/net-wireless/airspy/airspy-9999.ebuild new file mode 100644 index 000000000000..5c680532bf97 --- /dev/null +++ b/net-wireless/airspy/airspy-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=7 + +inherit cmake-utils udev + +DESCRIPTION="Usemode driver and associated tools for airspy" +HOMEPAGE="http://www.airspy.com" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/airspy/host.git" +else + SRC_URI="https://github.com/airspy/host/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/airspyone_host-${PV}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="+udev" + +DEPEND="virtual/udev + virtual/libusb:0" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DINSTALL_UDEV_RULES=$(usex udev) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if use udev; then + udev_newrules "${D}etc/udev/rules.d/52-airspy.rules" 52-airspy.rules + rm -rf "${D}etc" + fi +} + +pkg_postinst() { + use udev && udev_reload +} diff --git a/net-wireless/airspy/metadata.xml b/net-wireless/airspy/metadata.xml new file mode 100644 index 000000000000..48e2501c039f --- /dev/null +++ b/net-wireless/airspy/metadata.xml @@ -0,0 +1,9 @@ + + + + + zerochaos@gentoo.org + + + + -- 2.26.2