summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2019-11-09 12:57:22 -0500
committerRick Farina <zerochaos@gentoo.org>2019-11-09 14:39:21 -0500
commit8daad7e751ac557efb5316b4178fd19188498ffd (patch)
treecf28c69ff85de58a9295cd9a2ab976bb6a915d64 /net-wireless
parentdev-tex/aastex: bump EAPI and stuff (diff)
downloadgentoo-8daad7e751ac557efb5316b4178fd19188498ffd.tar.gz
gentoo-8daad7e751ac557efb5316b4178fd19188498ffd.tar.bz2
gentoo-8daad7e751ac557efb5316b4178fd19188498ffd.zip
net-wireless/airspy: initial import
Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/airspy/Manifest1
-rw-r--r--net-wireless/airspy/airspy-1.0.9.ebuild47
-rw-r--r--net-wireless/airspy/airspy-9999.ebuild47
-rw-r--r--net-wireless/airspy/metadata.xml9
4 files changed, 104 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zerochaos@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>