diff options
author | Yixun Lan <dlan@gentoo.org> | 2023-09-22 05:37:47 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2023-09-22 05:37:47 +0000 |
commit | 29c9e221ed6588fb338f20c66bc0192d7bf6069c (patch) | |
tree | e36950cdfac8f713a8812d20724a04b750876603 /dev-libs/libgpiod/libgpiod-1.6.4.ebuild | |
parent | dev-qt/qtwebengine: replace -g3+ for -g unless custom-cflags (qt6) (diff) | |
download | gentoo-29c9e221ed6588fb338f20c66bc0192d7bf6069c.tar.gz gentoo-29c9e221ed6588fb338f20c66bc0192d7bf6069c.tar.bz2 gentoo-29c9e221ed6588fb338f20c66bc0192d7bf6069c.zip |
dev-libs/libgpiod: add 1.6.4
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-libs/libgpiod/libgpiod-1.6.4.ebuild')
-rw-r--r-- | dev-libs/libgpiod/libgpiod-1.6.4.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/libgpiod/libgpiod-1.6.4.ebuild b/dev-libs/libgpiod/libgpiod-1.6.4.ebuild new file mode 100644 index 000000000000..89067dc6f4b6 --- /dev/null +++ b/dev-libs/libgpiod/libgpiod-1.6.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info + +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="+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 +DEPEND=" + test? ( + >=dev-libs/glib-2.50 + >=sys-apps/kmod-18 + >=sys-apps/util-linux-2.33.1 + >=virtual/libudev-215 + ) +" + +pkg_setup() { + CONFIG_CHECK="~GPIO_CDEV_V1" + linux-info_pkg_setup +} + +src_configure() { + local myconf=( + $(use_enable tools) + $(use_enable cxx bindings-cxx) + $(use_enable test tests) + $(use_enable python bindings-python) + ) + + econf "${myconf[@]}" +} + +src_install() { + default + + find "${D}" -name '*.la' -type f -delete || die + find "${D}" -name "*.a" -delete || die +} |