From a3cdf43b7f8c03f93cf30fe09984c72cc14dc360 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 7 Feb 2020 18:47:43 +0100 Subject: net-wireless/mousejack: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../mousejack/mousejack-0.0_p20160726-r1.ebuild | 45 --------------------- .../mousejack/mousejack-0.0_p20160726-r2.ebuild | 47 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 45 deletions(-) delete mode 100644 net-wireless/mousejack/mousejack-0.0_p20160726-r1.ebuild create mode 100644 net-wireless/mousejack/mousejack-0.0_p20160726-r2.ebuild (limited to 'net-wireless/mousejack') diff --git a/net-wireless/mousejack/mousejack-0.0_p20160726-r1.ebuild b/net-wireless/mousejack/mousejack-0.0_p20160726-r1.ebuild deleted file mode 100644 index 207ef24f16c2..000000000000 --- a/net-wireless/mousejack/mousejack-0.0_p20160726-r1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 ) -inherit python-single-r1 - -DESCRIPTION="Firmware and research tools for nRF24LU1+ based USB dongles and breakout boards" -HOMEPAGE="https://www.mousejack.com/" -COMMIT="02b84d1c4e59c0fb98263c83b2e7c7f9863a3b93" -SRC_URI="https://github.com/BastilleResearch/nrf-research-firmware/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/nrf-research-firmware-${COMMIT}" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -REQUIRED_USE=${PYTHON_REQUIRED_USE} - -DEPEND="dev-embedded/sdcc[device-lib,mcs51,sdbinutils]" -RDEPEND="${DEPEND} - ${PYTHON_DEPS} - dev-python/pyusb[${PYTHON_USEDEP}]" - -src_prepare() { - mv tools/lib tools/nrf24 || die - for file in tools/nrf24-*; do - sed -i 's#from lib#from nrf24#' ${file} || die - done - default -} -src_install() { - insinto /usr/share/${PN} - doins bin/dongle.{bin,formatted.bin,formatted.ihx} - - python_domodule tools/nrf24 - python_doscript tools/nrf24-* - - python_scriptinto /usr/share/${PN}/prog - python_doscript prog/usb-flasher/usb-flash.py - python_doscript prog/usb-flasher/logitech-usb-flash.py - python_doscript prog/usb-flasher/unifying.py - - dosbin "${FILESDIR}/mousejack" -} diff --git a/net-wireless/mousejack/mousejack-0.0_p20160726-r2.ebuild b/net-wireless/mousejack/mousejack-0.0_p20160726-r2.ebuild new file mode 100644 index 000000000000..f5149a462303 --- /dev/null +++ b/net-wireless/mousejack/mousejack-0.0_p20160726-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +inherit python-single-r1 + +DESCRIPTION="Firmware and research tools for nRF24LU1+ based USB dongles and breakout boards" +HOMEPAGE="https://www.mousejack.com/" +COMMIT="02b84d1c4e59c0fb98263c83b2e7c7f9863a3b93" +SRC_URI="https://github.com/BastilleResearch/nrf-research-firmware/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/nrf-research-firmware-${COMMIT}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +DEPEND="dev-embedded/sdcc[device-lib,mcs51,sdbinutils]" +RDEPEND="${DEPEND} + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pyusb[${PYTHON_MULTI_USEDEP}] + ')" + +src_prepare() { + mv tools/lib tools/nrf24 || die + for file in tools/nrf24-*; do + sed -i 's#from lib#from nrf24#' ${file} || die + done + default +} +src_install() { + insinto /usr/share/${PN} + doins bin/dongle.{bin,formatted.bin,formatted.ihx} + + python_domodule tools/nrf24 + python_doscript tools/nrf24-* + + python_scriptinto /usr/share/${PN}/prog + python_doscript prog/usb-flasher/usb-flash.py + python_doscript prog/usb-flasher/logitech-usb-flash.py + python_doscript prog/usb-flasher/unifying.py + + dosbin "${FILESDIR}/mousejack" +} -- cgit v1.2.3-65-gdbad