commit: b90be910ff90c7e6650b9f6e211303feff5791c4
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 8 22:45:36 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Aug 8 22:45:43 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b90be910
sys-apps/usbutils: disable py3.7, fix BDEPEND, missing die
- Drop Python 3.7 (it's a noop, support is gone from the eclass)
- We need Python as a BDEPEND if USE=python too
- Add missing die
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/usbutils/usbutils-014.ebuild | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/sys-apps/usbutils/usbutils-014.ebuild
b/sys-apps/usbutils/usbutils-014.ebuild
index c92094e848b..14581fea76a 100644
--- a/sys-apps/usbutils/usbutils-014.ebuild
+++ b/sys-apps/usbutils/usbutils-014.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{8,9} )
inherit autotools python-single-r1
@@ -21,7 +21,8 @@ DEPEND="virtual/libusb:1=
virtual/libudev:="
BDEPEND="
app-arch/xz-utils
- virtual/pkgconfig"
+ virtual/pkgconfig
+ python? ( ${PYTHON_DEPS} )"
RDEPEND="${DEPEND}
sys-apps/hwids
python? ( ${PYTHON_DEPS} )"
@@ -49,5 +50,7 @@ src_install() {
newdoc usbhid-dump/NEWS NEWS.usbhid-dump
dobin usbreset # noinst_PROGRAMS, but installed by other distros
- use python || rm -f "${ED}"/usr/bin/lsusb.py
+ if ! use python ; then
+ rm -f "${ED}"/usr/bin/lsusb.py || die
+ fi
}