From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DB2B81580EB for ; Wed, 28 May 2025 10:05:16 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C3512342FF7 for ; Wed, 28 May 2025 10:05:16 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id BFBAC110287; Wed, 28 May 2025 10:05:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id B61B8110287 for ; Wed, 28 May 2025 10:05:15 +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 693F5342FA8 for ; Wed, 28 May 2025 10:05:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D86D4254C for ; Wed, 28 May 2025 10:05:13 +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: <1748426685.5880cd4e9f5854b65ff0cfc8f9402abb59db05de.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/hidapi/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/hidapi/Manifest dev-libs/hidapi/hidapi-0.15.0.ebuild X-VCS-Directories: dev-libs/hidapi/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5880cd4e9f5854b65ff0cfc8f9402abb59db05de X-VCS-Branch: master Date: Wed, 28 May 2025 10:05:13 +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: 530c0819-d2d5-4df3-b3b1-2f4f2b51412d X-Archives-Hash: 69482154843b49821cee15360e75a797 commit: 5880cd4e9f5854b65ff0cfc8f9402abb59db05de Author: Johannes Huber gmx de> AuthorDate: Tue May 27 14:40:03 2025 +0000 Commit: Sam James gentoo org> CommitDate: Wed May 28 10:04:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5880cd4e dev-libs/hidapi: add 0.15.0 Closes: https://bugs.gentoo.org/951683 Signed-off-by: Johannes Huber gmx.de> Part-of: https://github.com/gentoo/gentoo/pull/42282 Closes: https://github.com/gentoo/gentoo/pull/42282 Signed-off-by: Sam James gentoo.org> dev-libs/hidapi/Manifest | 1 + dev-libs/hidapi/hidapi-0.15.0.ebuild | 52 ++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/dev-libs/hidapi/Manifest b/dev-libs/hidapi/Manifest index f6646bc12414..288c5d3a386d 100644 --- a/dev-libs/hidapi/Manifest +++ b/dev-libs/hidapi/Manifest @@ -1 +1,2 @@ DIST hidapi-0.14.0.tgz 348221 BLAKE2B 6472bfe5863d75a8901983a763191f3b6c18c25934b652b79f33141a6818619f816d35ed2480435254cecc51598d1e07e53c8c8c4f35a10cf28c1e4374bb450d SHA512 66a045144f90b41438898b82f0398e80223323ebfe6e4f197d2713696bb3ae60f36aea5a37a9999b34b12294783fd7e4c28c6e785462559cbe21276009da1eac +DIST hidapi-0.15.0.tgz 363838 BLAKE2B 7fc962e1279d61839245d0bcc3dcd5b7876bbf0be1deeb32ef95797ec4c54ef7b5bdf364f8124c967b5f6b2ffd6f49da02dbd730789efef85aabe7bd15da1147 SHA512 a4ddd13a80a84956872fa52aa861b40e4959f301d8d91afe0feaf9dbd87394561e1fdd20cbf8cf47200845f80a8db8a934bc2e3025fe6f16435e37c17621e7b6 diff --git a/dev-libs/hidapi/hidapi-0.15.0.ebuild b/dev-libs/hidapi/hidapi-0.15.0.ebuild new file mode 100644 index 000000000000..27a5519c1816 --- /dev/null +++ b/dev-libs/hidapi/hidapi-0.15.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib flag-o-matic + +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" +S="${WORKDIR}/${PN}-${P}" + +LICENSE="|| ( BSD GPL-3 HIDAPI )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc" + +DEPEND=" + virtual/libusb:1[${MULTILIB_USEDEP}] + virtual/libudev:0[${MULTILIB_USEDEP}] +" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( app-text/doxygen )" + +multilib_src_configure() { + append-lfs-flags + + local mycmakeargs=( + # Doesn't do anything as of 0.14.0 + -DHIDAPI_WITH_TESTS=OFF + ) + + cmake_src_configure +} + +multilib_src_compile() { + cmake_src_compile + + if use doc && multilib_is_native_abi; then + cd "${S}/doxygen" || die + 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 +}