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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CA339158095 for ; Tue, 16 Aug 2022 14:12:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0E12E09DB; Tue, 16 Aug 2022 14:12:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8EDB7E09DB for ; Tue, 16 Aug 2022 14:12:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 816A8340EF3 for ; Tue, 16 Aug 2022 14:12:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E1E7A521 for ; Tue, 16 Aug 2022 14:12:31 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1660659140.71322ac179aa1c261ce14331972c51b18cda7ab0.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgpiod/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild X-VCS-Directories: dev-libs/libgpiod/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 71322ac179aa1c261ce14331972c51b18cda7ab0 X-VCS-Branch: master Date: Tue, 16 Aug 2022 14:12:31 +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: a29c7bc7-a757-48bf-9db4-c533bb41d1cd X-Archives-Hash: 362bc56efe2d71c6b6dc7d4df9500d3b commit: 71322ac179aa1c261ce14331972c51b18cda7ab0 Author: Anthony G. Basile gentoo org> AuthorDate: Tue Aug 16 14:12:20 2022 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Tue Aug 16 14:12:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71322ac1 dev-libs/libgpiod: switch to more forgiving linux-info Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Anthony G. Basile gentoo.org> dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild b/dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild new file mode 100644 index 000000000000..ef44116bea42 --- /dev/null +++ b/dev-libs/libgpiod/libgpiod-1.6.3-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info multilib-minimal + +DESCRIPTION="C library and tools for interacting with the linux GPIO character device" +HOMEPAGE="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/" +SRC_URI="https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/${P}.tar.xz" + +LICENSE="LGPL-2.1" +# Reflects the ABI of libgpiod.so +SLOT="0/2" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +IUSE="static-libs +tools cxx python test" +RESTRICT="!test? ( test )" + +# --enable-tests enable libgpiod tests [default=no] +# --enable-bindings-cxx enable C++ bindings [default=no] +# --enable-bindings-python + +pkg_setup() { + CONFIG_CHECK="GPIO_CDEV_V1" + linux-info_pkg_setup +} + +multilib_src_configure() { + local myconf=( + $(use_enable tools) + $(use_enable cxx bindings-cxx) + $(use_enable test tests) + $(multilib_native_use_enable python bindings-python) + ) + + if ! multilib_is_native_abi; then + myconf+=( + --disable-tools + ) + fi + + ECONF_SOURCE="${S}" econf "${myconf[@]}" +} + +multilib_src_install() { + default + + find "${D}" -name '*.la' -type f -delete || die + + if ! use static-libs; then + find "${D}" -name "*.a" -delete || die + fi +}