net-wireless/airspy: initial import
authorRick Farina <zerochaos@gentoo.org>
Sat, 9 Nov 2019 17:57:22 +0000 (12:57 -0500)
committerRick Farina <zerochaos@gentoo.org>
Sat, 9 Nov 2019 19:39:21 +0000 (14:39 -0500)
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
net-wireless/airspy/Manifest [new file with mode: 0644]
net-wireless/airspy/airspy-1.0.9.ebuild [new file with mode: 0644]
net-wireless/airspy/airspy-9999.ebuild [new file with mode: 0644]
net-wireless/airspy/metadata.xml [new file with mode: 0644]

diff --git a/net-wireless/airspy/Manifest b/net-wireless/airspy/Manifest
new file mode 100644 (file)
index 0000000..a2e3e8c
--- /dev/null
@@ -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 (file)
index 0000000..8a12043
--- /dev/null
@@ -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 (file)
index 0000000..5c68053
--- /dev/null
@@ -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 (file)
index 0000000..48e2501
--- /dev/null
@@ -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>