From e9d044d4b9b71200a96adfa280848858c0f468c9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Nov 2021 13:10:00 +0000 Subject: gentoo resync : 13.11.2021 --- dev-libs/hidapi/hidapi-0.11.0.ebuild | 62 ++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 dev-libs/hidapi/hidapi-0.11.0.ebuild (limited to 'dev-libs/hidapi/hidapi-0.11.0.ebuild') diff --git a/dev-libs/hidapi/hidapi-0.11.0.ebuild b/dev-libs/hidapi/hidapi-0.11.0.ebuild new file mode 100644 index 000000000000..1ed0ca0f94db --- /dev/null +++ b/dev-libs/hidapi/hidapi-0.11.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="doc fox" + +RDEPEND=" + virtual/libusb:1[${MULTILIB_USEDEP}] + virtual/libudev:0[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + fox? ( x11-libs/fox )" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + default + + if ! use fox; then + sed -i -e 's:PKG_CHECK_MODULES(\[fox\], .*):AC_SUBST(fox_CFLAGS,[ ])AC_SUBST(fox_LIBS,[ ]):' configure.ac || die + fi + + # Portage handles license texts itself, no need to install them + sed -i -e 's/LICENSE.*/ # blank/' Makefile.am || die + + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --disable-static \ + $(multilib_native_use_enable fox testgui) +} + +multilib_src_compile() { + default + if use doc && multilib_is_native_abi; then + doxygen "${S}/doxygen/Doxyfile" || die + fi +} + +multilib_src_install() { + emake install DESTDIR="${D}" + find "${D}" -name '*.la' -delete || die + + if use doc && multilib_is_native_abi; then + local HTML_DOCS=( html/. ) + fi + einstalldocs +} -- cgit v1.2.3