diff options
author | 2024-08-12 10:37:15 +0000 | |
---|---|---|
committer | 2024-08-12 10:40:37 +0000 | |
commit | 524e86eba42abf6d8abfa6f6c4c78b10d86e0418 (patch) | |
tree | 961153637ac2e4fe42adea56ff17be7e78ec2d5c /dev-libs/libgpiod/libgpiod-2.1.3.ebuild | |
parent | dev-libs/rocksdb: add 9.4.0, drop 9.3.1 (diff) | |
download | gentoo-524e86eba42abf6d8abfa6f6c4c78b10d86e0418.tar.gz gentoo-524e86eba42abf6d8abfa6f6c4c78b10d86e0418.tar.bz2 gentoo-524e86eba42abf6d8abfa6f6c4c78b10d86e0418.zip |
dev-libs/libgpiod: add 2.1.3, drop 2.1.1
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-libs/libgpiod/libgpiod-2.1.3.ebuild')
-rw-r--r-- | dev-libs/libgpiod/libgpiod-2.1.3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-libs/libgpiod/libgpiod-2.1.3.ebuild b/dev-libs/libgpiod/libgpiod-2.1.3.ebuild new file mode 100644 index 000000000000..63f9fafa352e --- /dev/null +++ b/dev-libs/libgpiod/libgpiod-2.1.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools 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/3" +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 +# --enable-bindings-rust +DEPEND=" + test? ( + >=dev-libs/glib-2.50 + >=sys-apps/kmod-18 + >=sys-apps/util-linux-2.33.1 + >=virtual/libudev-215 + cxx? ( <dev-cpp/catch-3.5:0 ) + ) +" + +pkg_setup() { + CONFIG_CHECK="~GPIO_CDEV_V1" + linux-info_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf=( + $(use_enable tools) + $(use_enable cxx bindings-cxx) + $(use_enable test tests) + $(use_enable python bindings-python) + --enable-examples + --disable-profiling + --disable-bindings-rust + ) + + econf "${myconf[@]}" +} + +src_install() { + default + + find "${D}" -name '*.la' -type f -delete || die + find "${D}" -name "*.a" -delete || die +} |