From f9eaf32074191f03dc152ff9456b5c44db17a392 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 21 Jul 2022 10:54:23 -0400 Subject: dev-libs/libgpiod: check for CONFIG_GPIO_CDEV_V1 in kernel config Closes: https://bugs.gentoo.org/807334 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Anthony G. Basile --- dev-libs/libgpiod/libgpiod-1.6.3-r1.ebuild | 53 ++++++++++++++++++++++++++++++ dev-libs/libgpiod/libgpiod-1.6.3.ebuild | 48 --------------------------- 2 files changed, 53 insertions(+), 48 deletions(-) create mode 100644 dev-libs/libgpiod/libgpiod-1.6.3-r1.ebuild delete mode 100644 dev-libs/libgpiod/libgpiod-1.6.3.ebuild (limited to 'dev-libs') diff --git a/dev-libs/libgpiod/libgpiod-1.6.3-r1.ebuild b/dev-libs/libgpiod/libgpiod-1.6.3-r1.ebuild new file mode 100644 index 000000000000..a0b6d335709c --- /dev/null +++ b/dev-libs/libgpiod/libgpiod-1.6.3-r1.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-mod 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-mod_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 +} diff --git a/dev-libs/libgpiod/libgpiod-1.6.3.ebuild b/dev-libs/libgpiod/libgpiod-1.6.3.ebuild deleted file mode 100644 index 8f3fe8c74ec2..000000000000 --- a/dev-libs/libgpiod/libgpiod-1.6.3.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit 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 - -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 -} -- cgit v1.2.3-65-gdbad