diff options
Diffstat (limited to 'sys-apps/usbutils')
-rw-r--r-- | sys-apps/usbutils/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/usbutils/usbutils-010.ebuild | 51 |
2 files changed, 53 insertions, 0 deletions
diff --git a/sys-apps/usbutils/Manifest b/sys-apps/usbutils/Manifest index cd0b81124685..cb52886445d4 100644 --- a/sys-apps/usbutils/Manifest +++ b/sys-apps/usbutils/Manifest @@ -1,6 +1,8 @@ AUX usbutils-006-stdint.patch 701 BLAKE2B 511a0466d35f452c48bf6490415f1fdc3925fc2b613cd9f0f1d29258afae1e8fb03a5c6ea0ec9a1606b227af1e3e8160f07959b281a1e62d7115779a80779ab8 SHA512 8854846ec60652490401932a751e1e7ea61f59afa83447dd976ac351f898418777780b5e240c76771580aa8a879dbb63928adc053a3a95649dde5d9fab52798a DIST usbutils-008.tar.xz 287052 BLAKE2B eb9b998adb69938d004828585f782840e34f453327de54a32c563268db22a870fd7298cf839692e58ae42148e63037260e09bc2f1d5700ff96bcc451aff626ba SHA512 ab1ad36467ff79ff5ab0b924620001612cae44def58c05ade01a4e58d8a4d48df61c09faba49a20497b7d6314045bbaf137b51a9f4e6b65ed0ea3bb339bf1c45 DIST usbutils-009.tar.xz 309608 BLAKE2B bb5d7f756241377e81aa8f5b074bb0ba36bc778698afaebf7054cdb153149e4f3808a7b172019434756cae8b33410643cd6a03a36277f80ead9b0f4446385fd9 SHA512 e5936a42615690c13e618655fc5eb4f414d9a84f85b860eaeb3bcf737258e05d299b09d1c5388d50c718626036ec8cac5d670ad567ceadfaab85f401f0744a8a +DIST usbutils-010.tar.xz 308344 BLAKE2B 5f0ba85564acaf60faad0e187e7ed5c870056cf80a1e1ae888fa498429a7a9e28eaced49047f8f793bad3c59f3b515557054860286b17d9f89f915d0db5943cc SHA512 8bc197307bc34b38c406c58c939be32f0b20ce9d3e7c977472fe4c3d47e791765432e381fd8d7393df621bbd4bf159ca24a08b22441770e7ae464e767f99a2e3 EBUILD usbutils-008-r1.ebuild 1244 BLAKE2B 65d0f771202bf1e39d243c6f46d3f45d818033b7bd40ba198e834038416498a68e329c7182ec0ba756479ee6bd54aac11556e4513b44baa98c0dcee320b1801a SHA512 5384707b65c9801744ec1838e94396ee421ea007ec25c5afc1503134c2d7bf0231fdd1d9dce8b6af9892177b1dbe16b30303c810bb4e1d82b2082c2f32fe5964 EBUILD usbutils-009.ebuild 1150 BLAKE2B 6d32e478cf57e97d44f352c785c5f2d2690de91b99566024d455a63cd8e36d762fc63516b2fddcbfdfc05044c7627550224a631a253e02535089bab34bd7351b SHA512 5c8a91a7d257b5dd8a9fc04fe52a4138756ea203d53b7912710cad0ccb8ce81a031e6306ed11d55daef0a7257641f54b6ad33e6a59662d9db7fa3420f16d5765 +EBUILD usbutils-010.ebuild 1204 BLAKE2B 5ba8ce207ceeec0297ec554ec40c288f77eb6973926648294535fa2c63997fb8f5d9b4efb64700c891399f2421e814ee44819f791f232b6596b45b38b8e82679 SHA512 671d130588c07e24c793b4cc8d929c390baeec46001b2344e2c09cd862fa1bad9445a22292be54a98d762047cf782a0cc60f4de43fec650d9763f6b4143fcb2a MISC metadata.xml 253 BLAKE2B 295e9d6d93aaa12af413972e1590c67087801cc09c9aa6b59d4606c0f4106d1dacf2baa9858559083b4c6d91beeef218d0729e8593a33788958da6d2897e8ce2 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 diff --git a/sys-apps/usbutils/usbutils-010.ebuild b/sys-apps/usbutils/usbutils-010.ebuild new file mode 100644 index 000000000000..7ae5f0e8c309 --- /dev/null +++ b/sys-apps/usbutils/usbutils-010.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{4,5,6} ) + +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="mirror://kernel/linux/utils/usb/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +CDEPEND="virtual/libusb:1= + virtual/libudev:=" +DEPEND="${CDEPEND} + app-arch/xz-utils + virtual/pkgconfig" +RDEPEND="${CDEPEND} + sys-apps/hwids + 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=( + --datarootdir="${EPREFIX}/usr/share" + --datadir="${EPREFIX}/usr/share/misc" + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + newdoc usbhid-dump/NEWS NEWS.usbhid-dump + + use python || rm -f "${ED%/}"/usr/bin/lsusb.py +} |