Diff hidapi-0.11.0 with a hidapi-0.12.0

/usr/portage/dev-libs/hidapi/hidapi-0.12.0.ebuild 2023-10-09 14:52:29.500368350 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools multilib-minimal
6
inherit cmake-multilib
7 7

  
8 8
DESCRIPTION="A multi-platform library for USB and Bluetooth HID-Class devices"
9 9
HOMEPAGE="https://github.com/libusb/hidapi"
......
11 11

  
12 12
LICENSE="|| ( BSD GPL-3 HIDAPI )"
13 13
SLOT="0"
14
KEYWORDS="amd64 arm ~arm64 ppc ppc64 ~riscv x86"
15
IUSE="doc fox"
14
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
15
IUSE="doc"
16 16

  
17 17
RDEPEND="
18 18
	virtual/libusb:1[${MULTILIB_USEDEP}]
19 19
	virtual/libudev:0[${MULTILIB_USEDEP}]"
20
DEPEND="${RDEPEND}
21
	fox? ( x11-libs/fox )"
20
DEPEND="${RDEPEND}"
22 21
BDEPEND="
23 22
	virtual/pkgconfig
24 23
	doc? ( app-doc/doxygen )"
25 24

  
26 25
S="${WORKDIR}/${PN}-${P}"
27 26

  
28
src_prepare() {
29
	default
30

  
31
	if ! use fox; then
32
		sed -i -e 's:PKG_CHECK_MODULES(\[fox\], .*):AC_SUBST(fox_CFLAGS,[ ])AC_SUBST(fox_LIBS,[ ]):' configure.ac || die
33
	fi
34

  
35
	# Portage handles license texts itself, no need to install them
36
	sed -i -e 's/LICENSE.*/ # blank/' Makefile.am || die
37

  
38
	eautoreconf
39
}
40

  
41
multilib_src_configure() {
42
	ECONF_SOURCE="${S}" econf \
43
		--disable-static \
44
		$(multilib_native_use_enable fox testgui)
45
}
46

  
47 27
multilib_src_compile() {
48
	default
28
	cmake_src_compile
29

  
49 30
	if use doc && multilib_is_native_abi; then
50 31
		doxygen "${S}/doxygen/Doxyfile" || die
51 32
	fi
52 33
}
53 34

  
54 35
multilib_src_install() {
55
	emake install DESTDIR="${D}"
56
	find "${D}" -name '*.la' -delete || die
36
	cmake_src_install
57 37

  
58 38
	if use doc && multilib_is_native_abi; then
59 39
		local HTML_DOCS=( html/. )
Thank you!