From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 85A5A158020 for ; Sat, 3 Dec 2022 11:30:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA631E0E33; Sat, 3 Dec 2022 11:30:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B5CCE0E33 for ; Sat, 3 Dec 2022 11:30:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 835B23413D2 for ; Sat, 3 Dec 2022 11:30:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B01155BF for ; Sat, 3 Dec 2022 11:30:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1670066971.5019d9ddfad881a124e9e3202408f2b1fb501bfb.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/usbutils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/usbutils/Manifest sys-apps/usbutils/usbutils-015.ebuild X-VCS-Directories: sys-apps/usbutils/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5019d9ddfad881a124e9e3202408f2b1fb501bfb X-VCS-Branch: master Date: Sat, 3 Dec 2022 11:30:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 839010be-1526-45f4-b67e-3bdb0205e17e X-Archives-Hash: 0c317370b35596dc61ac8c786b182706 commit: 5019d9ddfad881a124e9e3202408f2b1fb501bfb Author: Sam James gentoo org> AuthorDate: Sat Dec 3 11:29:31 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Dec 3 11:29:31 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5019d9dd sys-apps/usbutils: add 015 Signed-off-by: Sam James gentoo.org> sys-apps/usbutils/Manifest | 1 + sys-apps/usbutils/usbutils-015.ebuild | 64 +++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/sys-apps/usbutils/Manifest b/sys-apps/usbutils/Manifest index ccd382febf6b..04613be30805 100644 --- a/sys-apps/usbutils/Manifest +++ b/sys-apps/usbutils/Manifest @@ -1 +1,2 @@ DIST usbutils-014.tar.xz 165884 BLAKE2B aea4f8edd3c7d7bc400fd63a8702b6d0bb50b8ed07196c4a0ed20a615eacf6373794afb9e7d5d81408dc3382848e965ecf8bc1bbec20837e4d1f96ba47cc40b5 SHA512 43c9f6ed14f8d01e014ef39a5d50b3b09031c6bda8261e0945b4cb4287c9107104175b386c2adc61dc7f9f476afb30f9a647a6ece6dee26b4133a4f10af72792 +DIST usbutils-015.tar.xz 167472 BLAKE2B 1074c7159e9e6729f03f98e1f38fa0b3fef3e744b5297e6d97a5fc44ea374e2d5a0c481e14b2a034bca201048b1305c3877dbb15e3c4c04b228b4036048d8904 SHA512 cda0070138400703d7429d39dee49130aedaa704292531e6af57b347cc62422ca609540650926e74335f71d67d7d4655418be4824e1eb8a2b065c7b395feaa87 diff --git a/sys-apps/usbutils/usbutils-015.ebuild b/sys-apps/usbutils/usbutils-015.ebuild new file mode 100644 index 000000000000..5a0c51428be7 --- /dev/null +++ b/sys-apps/usbutils/usbutils-015.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10} ) +inherit python-single-r1 + +DESCRIPTION="USB enumeration utilities" +HOMEPAGE="https://www.kernel.org/pub/linux/utils/usb/usbutils/ + https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/" +SRC_URI="https://www.kernel.org/pub/linux/utils/usb/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + virtual/libusb:1= + virtual/libudev:= +" +RDEPEND=" + ${DEPEND} + python? ( + ${PYTHON_DEPS} + sys-apps/hwdata + ) +" +BDEPEND=" + virtual/pkgconfig + python? ( ${PYTHON_DEPS} ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + use python && python_fix_shebang lsusb.py.in +} + +src_configure() { + local myeconfargs=( + --cache-file="${S}"/config.cache + --datarootdir="${EPREFIX}/usr/share" + --datadir="${EPREFIX}/usr/share/hwdata" + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + newdoc usbhid-dump/NEWS NEWS.usbhid-dump + dobin usbreset # noinst_PROGRAMS, but installed by other distros + + if ! use python ; then + rm -f "${ED}"/usr/bin/lsusb.py || die + fi +}