commit: b63872552463bee7d9d061c4d1cd0e0f62331fad Author: Fabrice Delliaux <netbox253 <AT> gmail <DOT> com> AuthorDate: Sun Jan 8 15:49:57 2023 +0000 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org> CommitDate: Thu Jan 19 18:49:46 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6387255
dev-libs/hidapi: 0.12.0-r1 with some fixs 1. remove virtual/pkgconfig from BDEPEND (used by deprecated autotools build system) 2. swap DEPEND and RDEPEND 3. fix doxygen documentation generation : With USE="doc" enabled you'll get these warnings at compile phase : > warning: tag INPUT: input source '../hidapi' does not exist > warning: source '../hidapi' is not a readable file or directory... skipping. > warning: No files to be processed, please check your settings, in particular > INPUT, FILE_PATTERNS, and RECURSIVE > Doxygen version used: 1.9.5 Signed-off-by: Fabrice Delliaux <netbox253 <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/29020 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org> dev-libs/hidapi/hidapi-0.12.0-r1.ebuild | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/dev-libs/hidapi/hidapi-0.12.0-r1.ebuild b/dev-libs/hidapi/hidapi-0.12.0-r1.ebuild new file mode 100644 index 000000000000..6f2ed465adcc --- /dev/null +++ b/dev-libs/hidapi/hidapi-0.12.0-r1.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 +}
