mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-23 18:38:08 -07:00
Per the category metadata, app-doc/ is reserved for documentation *files* and not software. Move it to app-text/ where it seems a better fit. Signed-off-by: Michał Górny <mgorny@gentoo.org>
49 lines
997 B
Bash
49 lines
997 B
Bash
# Copyright 1999-2024 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"
|
|
|
|
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-text/doxygen )"
|
|
|
|
S="${WORKDIR}/${PN}-${P}"
|
|
|
|
multilib_src_configure() {
|
|
append-lfs-flags
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
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
|
|
}
|