summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2017-03-02 14:24:05 -0500
committerZero_Chaos <zerochaos@gentoo.org>2017-03-02 15:16:21 -0500
commit762128452d56e888e3673a63610d82d980a34cc9 (patch)
treec5a6adc0fcd54c4a64af26ba3a983fe7d93f4a93 /net-wireless
parentarch/sparc/package.use.mask: Unmask systemd's xkb USE flag. (diff)
downloadgentoo-762128452d56e888e3673a63610d82d980a34cc9.tar.gz
gentoo-762128452d56e888e3673a63610d82d980a34cc9.tar.bz2
gentoo-762128452d56e888e3673a63610d82d980a34cc9.zip
net-wireless/urh: version bump and no more automagic deps, thanks upstream :-)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/urh/Manifest2
-rw-r--r--net-wireless/urh/metadata.xml4
-rw-r--r--net-wireless/urh/urh-1.5.5.ebuild (renamed from net-wireless/urh/urh-1.5.2-r1.ebuild)15
3 files changed, 16 insertions, 5 deletions
diff --git a/net-wireless/urh/Manifest b/net-wireless/urh/Manifest
index 8f9bba4b4fde..633a3f05a414 100644
--- a/net-wireless/urh/Manifest
+++ b/net-wireless/urh/Manifest
@@ -1 +1 @@
-DIST urh-1.5.2.tar.gz 10288709 SHA256 25e8d4bcabcb165291c3f8c933f2eb566f5dbb4a68bafe3ef9e7db2ff171cb7b SHA512 adceff382495df01470225b600c8b05912ad1796baeaaae4991eea8fc033bae8732e956facdcb80a0d8c9d8c13f8e5989a907700a894b0196d06195ac7259c84 WHIRLPOOL 8819d5c6c859a7ccf85caeb598931cb6da3a5b64ab924dbfc3036b099d91ba422378f096a3c84617a2bcdb672004af11253489489e1e2d7b1e5768fcb9e69bbf
+DIST urh-1.5.5.tar.gz 10291006 SHA256 b7884cb57e1b40204fce011c1f652df04bff4120a57329a91144d09e30d83612 SHA512 bb4dae138042ffb53aac43368b47527909bbaad487cfb194385d7c2910f40e1f19e870d397596b87a333957ab83dc0418fba07038358519919c8ae90d6ef497b WHIRLPOOL 601a8376834fd2bee948e6b9ab0f8596a73a807e67a4a71b89553ac7e779c4ecebf57719b33c818733843f1ce0187921ec8ce55926d6253bf475da95341057fe
diff --git a/net-wireless/urh/metadata.xml b/net-wireless/urh/metadata.xml
index 54556ed6cd12..67fa06c322ff 100644
--- a/net-wireless/urh/metadata.xml
+++ b/net-wireless/urh/metadata.xml
@@ -11,6 +11,10 @@
</maintainer>
<longdescription lang="en">
</longdescription>
+ <use>
+ <flag name="hackrf">use native backend which directly uses <pkg>net-libs/libhackrf</pkg></flag>
+ <flag name="rtlsdr">use native backend which directly uses <pkg>net-wireless/rtl-sdr</pkg></flag>
+ </use>
<upstream>
<remote-id type="github">jopohl/urh</remote-id>
</upstream>
diff --git a/net-wireless/urh/urh-1.5.2-r1.ebuild b/net-wireless/urh/urh-1.5.5.ebuild
index a20cf22c1665..27b0f19a2c8c 100644
--- a/net-wireless/urh/urh-1.5.2-r1.ebuild
+++ b/net-wireless/urh/urh-1.5.5.ebuild
@@ -5,7 +5,7 @@
EAPI=6
PYTHON_COMPAT=( python{3_4,3_5} )
-inherit distutils-r1
+inherit distutils-r1 eutils
DESCRIPTION="Universal Radio Hacker: investigate wireless protocols like a boss"
HOMEPAGE="https://github.com/jopohl/urh"
@@ -14,14 +14,21 @@ SRC_URI="https://github.com/jopohl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="hackrf rtlsdr"
DEPEND="${PYTHON_DEPS}
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pyzmq[${PYTHON_USEDEP}]
- net-libs/libhackrf
- net-wireless/rtl-sdr"
+ hackrf? ( net-libs/libhackrf )
+ rtlsdr? ( net-wireless/rtl-sdr )"
RDEPEND="${DEPEND}
dev-python/PyQt5[${PYTHON_USEDEP}]
net-wireless/gr-osmosdr"
+
+python_configure_all() {
+ mydistutilsargs=(
+ $(use_with hackrf)
+ $(use_with rtlsdr)
+ )
+}