diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
commit | e9d044d4b9b71200a96adfa280848858c0f468c9 (patch) | |
tree | 1bd8ef816043a8cd340f1d774e79553a1a7d31d8 /dev-libs/hidapi | |
parent | fc2f1018fc323ef2c6572734a9b130427cba76a6 (diff) |
gentoo resync : 13.11.2021
Diffstat (limited to 'dev-libs/hidapi')
-rw-r--r-- | dev-libs/hidapi/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/hidapi/hidapi-0.11.0.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/hidapi/Manifest b/dev-libs/hidapi/Manifest index ff6ecb70da9b..624a265c2ef9 100644 --- a/dev-libs/hidapi/Manifest +++ b/dev-libs/hidapi/Manifest @@ -1,4 +1,6 @@ AUX hidapi-0.8.0_rc1_p20140719-autoconf-2.70.patch 300 BLAKE2B f82fe6a6e2ebfda10eb9762bbff1586346ecf8945996599a3b58658c37799d85dc573f8be54bba483f95e27177db3f421d99ac713e7012130d2e2b92252ebd87 SHA512 5b29caa5f7a9b61fffb16226cff9709a5b142c6ac36017c567ab5933b21f06cb17c78a93fa19e8c92cb1443f1cbe97c3687002845965bea2b3ef39eeaef1f4a2 +DIST hidapi-0.11.0.tgz 232631 BLAKE2B 770c0663b007aa36580af217d0d38be72923e0ad84cee137594ca3e174e589cebb9188003a50999e1c561b0e4e9ca68bd1af29029b89fde2b0a46020b12f9744 SHA512 0de4abc963600d159ce231416c468b9e81a8361e4d2c2202988d6eb2e58a923700e9b9be639fbddc6bc14625131848409e2e88dbc4b34a1f8a726c8fa4692d92 DIST hidapi-0.8.0_rc1_p20140719.tgz 103079 BLAKE2B f40a4c17cb8c5eed41f4eea84fac46a879ec2057f28212aa43c8fd718ceea68d760785cb4f4e2ea3bcd2a4345b65d75d0d278b93697ec61963be9270684a15cb SHA512 204934a707da4e67b834823650b0cfd9be7b413972071129cc5aeeb93465834dde2f5ee23283c55d35b56e3aed8b7ad5fe947399839081f4d895fb65c8cd3e3d +EBUILD hidapi-0.11.0.ebuild 1418 BLAKE2B 37ed27c4ddf04fe81e7e8eacbf82844560ea5304c1bfbb8880cf0047e36f3d8b4300ae0706b177602dfd098b5cc792d207562ba57ed412b3db2ae45ba8bc942d SHA512 b2a40de6a0434f3e7721d3624ca2df662b657d123691713f089e662689c45fa5d119e31aab52c5606bc14a411692f3c2ca5b2cded6fb446f2a6caaea555af37b EBUILD hidapi-0.8.0_rc1_p20140719-r1.ebuild 1851 BLAKE2B cdaa39c57a17a17720ba075f722339df5b6bdc84fca16e1d8e2eba26c3fdcdb749f40fb773961c40eebf13ad92f50d57fb1d0f01fe1c15c1e6f5b696bdecab09 SHA512 fb003b0a9dd3f64b2e4615bb27af95fa705e48dd62fea56a5b811e5467fd87b37cbfcc8d8be361555825bdc61c68d884bb45a3efe677db5f9dbae01a08d1f7b4 MISC metadata.xml 571 BLAKE2B 713eb7b09515bf42caa61286df10e947377a5d1c11deb35144caf0c1138da6e740d876070c4e37e8f47d05b46ba4ca5ef8d5873ab884533c8544fd1c86c2ae99 SHA512 46734233740eb28856db7c56381fd0a4cb84c6dd84ee489c00e537a5435eff4c6880b095a7341f73f606929818a88d74e197337bb441378d2705690eac0a10f6 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 +} |