From 068424b26532f3551a81421a9be67ed206e5c11a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Aug 2021 07:02:28 +0100 Subject: gentoo resync : 11.08.2021 --- sys-apps/usbutils/Manifest | 2 ++ sys-apps/usbutils/usbutils-014.ebuild | 56 +++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 sys-apps/usbutils/usbutils-014.ebuild (limited to 'sys-apps/usbutils') diff --git a/sys-apps/usbutils/Manifest b/sys-apps/usbutils/Manifest index 6094e140a069..1019c660974f 100644 --- a/sys-apps/usbutils/Manifest +++ b/sys-apps/usbutils/Manifest @@ -1,3 +1,5 @@ DIST usbutils-013.tar.xz 98056 BLAKE2B d6e7925e180ba90f27ca12f13ed985f34e51b230ec08188c91bf39bb8e64baa319aa63d473318e1a4cb21b53808e8610f837ea0bb85657072f1c70107d037873 SHA512 eb1751e5b82f7a1bdffc667662cebee6fd42f466e59d4eb4c98f0d3723d740305377da1df1ba5831402fddbbd1697bbfa2abd22d9ed175e2dee55d6d007e9e54 +DIST usbutils-014.tar.xz 165884 BLAKE2B aea4f8edd3c7d7bc400fd63a8702b6d0bb50b8ed07196c4a0ed20a615eacf6373794afb9e7d5d81408dc3382848e965ecf8bc1bbec20837e4d1f96ba47cc40b5 SHA512 43c9f6ed14f8d01e014ef39a5d50b3b09031c6bda8261e0945b4cb4287c9107104175b386c2adc61dc7f9f476afb30f9a647a6ece6dee26b4133a4f10af72792 EBUILD usbutils-013-r1.ebuild 1266 BLAKE2B e715e4c409dee03b1ea41f1fd1ba92d66034f3ce920831b7ed637d2c1a10ec09b887ce0b5173fcc762335c15a86df9584e76625a5a490e21aad03a3870ee0f66 SHA512 e41434a389bd60fc473427eb5f58f27a4856c5037016affffd8c3d09bd5661092e4af9b3504d6ad655981976c70040cdf0b68b08faccc504965642b33cea1f8e +EBUILD usbutils-014.ebuild 1321 BLAKE2B a1836fdc1ceda8e011a9f2cf7470f810ac86273effb79246fcc4688d82bc2f0c1e5e522b176e5acf122bb4ec59d04f7992ba587574858330c2f36a145c92905b SHA512 a621391f81992d173cfd6c8da77538a03cf43c2c9b1e176c42ec5853ffe2fec4d785a9e0a58ee46e90b81ee0a51e36339bef7dfe5523106d1d9a6ec326cfbc1c MISC metadata.xml 253 BLAKE2B 295e9d6d93aaa12af413972e1590c67087801cc09c9aa6b59d4606c0f4106d1dacf2baa9858559083b4c6d91beeef218d0729e8593a33788958da6d2897e8ce2 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 diff --git a/sys-apps/usbutils/usbutils-014.ebuild b/sys-apps/usbutils/usbutils-014.ebuild new file mode 100644 index 000000000000..14581fea76a9 --- /dev/null +++ b/sys-apps/usbutils/usbutils-014.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{8,9} ) + +inherit autotools 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 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND="virtual/libusb:1= + virtual/libudev:=" +BDEPEND=" + app-arch/xz-utils + virtual/pkgconfig + python? ( ${PYTHON_DEPS} )" +RDEPEND="${DEPEND} + sys-apps/hwids + python? ( ${PYTHON_DEPS} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf + use python && python_fix_shebang lsusb.py.in +} + +src_configure() { + local myeconfargs=( + --datarootdir="${EPREFIX}/usr/share" + --datadir="${EPREFIX}/usr/share/misc" + ) + 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 +} -- cgit v1.2.3