net-libs/libiio: add 0.26

Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Thomas Beierlein 2025-03-23 09:37:03 +01:00
parent 6226964036
commit 328c36dbac
No known key found for this signature in database
GPG Key ID: AF4C8CF6B6C40570
2 changed files with 57 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST libiio-0.25.tar.gz 518247 BLAKE2B 9b3190b5c69fc9fc624f4b0c686cace828fc34219a986a306ffba6b4c2a4f3b8c60cd8d5c67c350033d83ecdaeb010559318bbf76f0b0565bdbcbe119d85e097 SHA512 e0f2f5545b4c78d1f0f56b037db6e363aab01aad69af3a095b3546af74dab6effe0b00f5c336ef799a739f76c5f16ab76a6b8e823508861edd2745a9d3fd2599
DIST libiio-0.26.tar.gz 519150 BLAKE2B d420963a4044330cd5bcc99bf7add3b11579aee7bdada7bdd92c1c1731635ec0460ba7d9fea1364876dc7dc95a600a22826b4866e651e24292b04902d8dd9e6e SHA512 f2febe8223149602e9d34957fb04892ff1d7449abf2923d0428d0db43148445a0b5595eb6d00013687c73001685b6aaaa5aa098ff67f51ec1950200330481bba

View File

@ -0,0 +1,56 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit cmake udev python-single-r1
DESCRIPTION="Library for interfacing with IIO devices"
HOMEPAGE="https://github.com/analogdevicesinc/libiio"
if [ "${PV}" = "9999" ]; then
EGIT_REPO_URI="https://github.com/analogdevicesinc/libiio"
inherit git-r3
else
SRC_URI="https://github.com/analogdevicesinc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~riscv ~x86"
fi
LICENSE="LGPL-2.1"
SLOT="0/${PV}"
IUSE="+aio python +zeroconf"
BDEPEND="python? ( ${PYTHON_DEPS} )"
RDEPEND="python? ( ${PYTHON_DEPS} )
dev-libs/libxml2
virtual/libusb:1
aio? ( dev-libs/libaio )
zeroconf? ( net-dns/avahi[dbus] )"
DEPEND="${RDEPEND}"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
src_configure() {
local mycmakeargs=(
-DHAVE_DNS_SD="$(usex zeroconf)"
-DWITH_AIO="$(usex aio)"
-DPYTHON_BINDINGS="$(usex python)"
)
use python && mycmakeargs+=(-DPYTHON_EXECUTABLE="${PYTHON}")
cmake_src_configure
}
src_install() {
cmake_src_install
if use python; then
python_fix_shebang "${ED}"
python_optimize
fi
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}