diff options
author | Stephan Hartmann <sultan@gentoo.org> | 2023-01-19 19:53:21 +0100 |
---|---|---|
committer | Stephan Hartmann <sultan@gentoo.org> | 2023-01-19 19:53:21 +0100 |
commit | 4882c7e28414448dd177c143c8e8552b30f8d7d8 (patch) | |
tree | 7301fd89cacc8cb8cf704b54608e2be10e9a819e /dev-libs/hidapi | |
parent | dev-libs/hidapi: 0.12.0-r1 with some fixs (diff) | |
download | gentoo-4882c7e28414448dd177c143c8e8552b30f8d7d8.tar.gz gentoo-4882c7e28414448dd177c143c8e8552b30f8d7d8.tar.bz2 gentoo-4882c7e28414448dd177c143c8e8552b30f8d7d8.zip |
dev-libs/hidapi: add 0.13.1
Bug: https://bugs.gentoo.org/891171
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'dev-libs/hidapi')
-rw-r--r-- | dev-libs/hidapi/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/hidapi/hidapi-0.13.1.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/hidapi/Manifest b/dev-libs/hidapi/Manifest index 7ae05883789e..bee64ebd160c 100644 --- a/dev-libs/hidapi/Manifest +++ b/dev-libs/hidapi/Manifest @@ -1,2 +1,3 @@ DIST hidapi-0.11.0.tgz 232631 BLAKE2B 770c0663b007aa36580af217d0d38be72923e0ad84cee137594ca3e174e589cebb9188003a50999e1c561b0e4e9ca68bd1af29029b89fde2b0a46020b12f9744 SHA512 0de4abc963600d159ce231416c468b9e81a8361e4d2c2202988d6eb2e58a923700e9b9be639fbddc6bc14625131848409e2e88dbc4b34a1f8a726c8fa4692d92 DIST hidapi-0.12.0.tgz 238751 BLAKE2B 25eddf337970275a026839dfe8c0c3beef58da892a6b192751f70faa7ca3ad12f9deab34c3800e053ef9bdefca481a863fac0c25aab51dbf172b44bd94e34e56 SHA512 866268927698db6fa553e000ead3c0c4b8df67ea768d36acac9c71f06f0bd8283778e90eee03f81aaa930f38dbb5719391906c7d2742b74479ffa436104f5fa4 +DIST hidapi-0.13.1.tgz 244666 BLAKE2B b3406114f8dd8b192eecac1673592866f930688af8023819d20f73c76226f0829c8d68f4b47051b4836ce4348fc3bbad8f9849f1d565563dcd0f993df43de4ca SHA512 07b224b9b5146caf693e6d67514fed236436ed68f38a3ada98ebf8352dfaa4e175f576902affb4b79da1bb8c9b47a1ee0831a93c7d3d210e93faee24632f7d53 diff --git a/dev-libs/hidapi/hidapi-0.13.1.ebuild b/dev-libs/hidapi/hidapi-0.13.1.ebuild new file mode 100644 index 000000000000..6f2ed465adcc --- /dev/null +++ b/dev-libs/hidapi/hidapi-0.13.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="A multi-platform library for USB and Bluetooth HID-Class devices" +HOMEPAGE="https://github.com/libusb/hidapi" +SRC_URI="https://github.com/libusb/hidapi/archive/${P}.tar.gz -> ${P}.tgz" + +LICENSE="|| ( BSD GPL-3 HIDAPI )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="doc" + +DEPEND=" + virtual/libusb:1[${MULTILIB_USEDEP}] + virtual/libudev:0[${MULTILIB_USEDEP}]" +RDEPEND="${DEPEND}" +BDEPEND=" + doc? ( app-doc/doxygen )" + +S="${WORKDIR}/${PN}-${P}" + +multilib_src_compile() { + cmake_src_compile + + if use doc && multilib_is_native_abi; then + cd "${S}/doxygen" + doxygen Doxyfile || die + fi +} + +multilib_src_install() { + cmake_src_install + + if use doc && multilib_is_native_abi; then + local HTML_DOCS=( "${S}/doxygen/html/." ) + fi + einstalldocs +} |