From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 48E641382C5 for ; Sat, 23 Jan 2021 23:38:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65F25E0815; Sat, 23 Jan 2021 23:38:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2D85AE0826 for ; Sat, 23 Jan 2021 23:38:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EA776340861 for ; Sat, 23 Jan 2021 23:38:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 95E9632B for ; Sat, 23 Jan 2021 23:38:04 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1611445068.5cc501e6d416e4d7cca4322118a3ea2623b517bd.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/hidapi/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/hidapi/hidapi-0.8.0_rc1_p20140719-r1.ebuild X-VCS-Directories: dev-libs/hidapi/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 5cc501e6d416e4d7cca4322118a3ea2623b517bd X-VCS-Branch: master Date: Sat, 23 Jan 2021 23:38:04 +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: 4aae3ac8-b1ca-4978-9a55-55933295b82e X-Archives-Hash: f9331098011cc124a78f3bad85bc2b20 commit: 5cc501e6d416e4d7cca4322118a3ea2623b517bd Author: David Seifert gentoo org> AuthorDate: Sat Jan 23 23:37:48 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Jan 23 23:37:48 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc501e6 dev-libs/hidapi: Port to EAPI 7 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: David Seifert gentoo.org> .../hidapi/hidapi-0.8.0_rc1_p20140719-r1.ebuild | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/dev-libs/hidapi/hidapi-0.8.0_rc1_p20140719-r1.ebuild b/dev-libs/hidapi/hidapi-0.8.0_rc1_p20140719-r1.ebuild new file mode 100644 index 00000000000..869fc66c099 --- /dev/null +++ b/dev-libs/hidapi/hidapi-0.8.0_rc1_p20140719-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multilib-minimal + +# If github is desired, the following may be used. +#EGIT_REPO_URI="https://github.com/signal11/hidapi.git" +#EGIT_BRANCH="master" +EGIT_COMMIT="d17db57b9d4354752e0af42f5f33007a42ef2906" + +DESCRIPTION="A multi-platform library for USB and Bluetooth HID-Class devices" +HOMEPAGE="http://www.signal11.us/oss/hidapi/" +SRC_URI="https://github.com/signal11/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tgz" +# When 0.8.0 is officially available the following link should be used. +#SRC_URI="https://github.com/downloads/signal11/${PN}/${P}.zip" + +LICENSE="|| ( BSD GPL-3 HIDAPI )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~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}-${EGIT_COMMIT}" + +PATCHES=( "${FILESDIR}"/${P}-autoconf-2.70.patch ) + +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 + + # Fix bashisms in the configure.ac file. + sed -i -e 's:\([A-Z_]\+\)+="\(.*\)":\1="${\1}\2":g' \ + -e 's:\([A-Z_]\+\)+=`\(.*\)`:\1="${\1}\2":g' configure.ac || die + + # 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_install_all() { + if use doc; then + doxygen doxygen/Doxyfile || die + HTML_DOCS=( html/. ) + fi + + einstalldocs + + # no static archives + find "${ED}" -name '*.la' -delete || die +}