diff options
Diffstat (limited to 'net-libs/libiio')
-rw-r--r-- | net-libs/libiio/Manifest | 4 | ||||
-rw-r--r-- | net-libs/libiio/libiio-0.25.ebuild | 54 | ||||
-rw-r--r-- | net-libs/libiio/libiio-9999.ebuild | 44 |
3 files changed, 93 insertions, 9 deletions
diff --git a/net-libs/libiio/Manifest b/net-libs/libiio/Manifest index 105c47020168..a6883a9ea321 100644 --- a/net-libs/libiio/Manifest +++ b/net-libs/libiio/Manifest @@ -1,4 +1,6 @@ DIST libiio-0.24.tar.gz 482936 BLAKE2B cd8dce7af7bbafcb10c08722871d3d9abe089cb22fc3a0ada97905a1c5f96c55905980b8511178d662e9316b7ffdada6e84c29b5cbf1ca92b2d53b02d1ac8cfe SHA512 4e7b54870e986e6ba5860ccd8ad6ece4808c21e27a9d3975065f096bac0b035e65bbc68931023c19e69b72006294c3863bfb7272853b5fb1401b77eec88a89fd +DIST libiio-0.25.tar.gz 518247 BLAKE2B 9b3190b5c69fc9fc624f4b0c686cace828fc34219a986a306ffba6b4c2a4f3b8c60cd8d5c67c350033d83ecdaeb010559318bbf76f0b0565bdbcbe119d85e097 SHA512 e0f2f5545b4c78d1f0f56b037db6e363aab01aad69af3a095b3546af74dab6effe0b00f5c336ef799a739f76c5f16ab76a6b8e823508861edd2745a9d3fd2599 EBUILD libiio-0.24.ebuild 861 BLAKE2B 991c35a32f296dbf1f0d74d9014f6b808b90c283d8588db6bd333ccad5ecbd99237ea84341d6297ffadc5fa1edc10efa943aa0eb6e070953125a764d189eae12 SHA512 f9838ba653221d2a554b32f62a1acf190b813479183b66bd29cc1186c388f7744f3048f5cbcd9cdd4c8d7f8ac11c50b06321232cebe588986179856ba150e414 -EBUILD libiio-9999.ebuild 646 BLAKE2B f0aab4ca851902093054483125caa8eb716837fa79068db1d161bb0c25452b31cb87b1309481c485bdb33796b24894a62985e6a2a44d950927304fe61a7bb63a SHA512 b5e15bcacc13feea24df1b35f288eb44a204c707ba321faac6a7ce13173e7e792a69c3698e3e941996e50c845cfcaa432dd76f407a4c5b093def967122c7d829 +EBUILD libiio-0.25.ebuild 1214 BLAKE2B 7f57d24bc038cd4b013b5c9a839b186a08e5229b7a6097d3e1bf561bb2e60790b3de455804f05ccc46ac24a8dbcd807178b718bf9e97fd23e016bacebb1bd89f SHA512 9539539d8043eb8de53899ecab1d40376e17764bd2df7ab12a219221f6f5d442ccf7d6f7b4882ceb5fba32d9f6f7f39ead477fa1ec85e3843de88dc182e1dc97 +EBUILD libiio-9999.ebuild 1214 BLAKE2B 7f57d24bc038cd4b013b5c9a839b186a08e5229b7a6097d3e1bf561bb2e60790b3de455804f05ccc46ac24a8dbcd807178b718bf9e97fd23e016bacebb1bd89f SHA512 9539539d8043eb8de53899ecab1d40376e17764bd2df7ab12a219221f6f5d442ccf7d6f7b4882ceb5fba32d9f6f7f39ead477fa1ec85e3843de88dc182e1dc97 MISC metadata.xml 507 BLAKE2B 505f5ab82f68dd736cfc6ee3433576894fcaa76cbce1c37e98973150fbd8e99026f6da3fe9c5a91626c61b2c1c9a7d85180a16ca822e5f0d0984902957eb5d7e SHA512 f7c7fd7619c757d20eb2255e6b5b2ccf1ae21e7b5fd1ce55210528d009fa8d516656bef0f7ef4ad7e99ed4cab26febfb4421b53de92a8203496558c6963eb6c8 diff --git a/net-libs/libiio/libiio-0.25.ebuild b/net-libs/libiio/libiio-0.25.ebuild new file mode 100644 index 000000000000..089cda96f936 --- /dev/null +++ b/net-libs/libiio/libiio-0.25.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 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 + python_fix_shebang "${ED}" + python_optimize +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} diff --git a/net-libs/libiio/libiio-9999.ebuild b/net-libs/libiio/libiio-9999.ebuild index 66f1603cbe68..089cda96f936 100644 --- a/net-libs/libiio/libiio-9999.ebuild +++ b/net-libs/libiio/libiio-9999.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 +PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake +inherit cmake udev python-single-r1 DESCRIPTION="Library for interfacing with IIO devices" HOMEPAGE="https://github.com/analogdevicesinc/libiio" @@ -12,15 +13,42 @@ if [ "${PV}" = "9999" ]; then inherit git-r3 else SRC_URI="https://github.com/analogdevicesinc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 ~arm ~riscv ~x86" fi LICENSE="LGPL-2.1" SLOT="0/${PV}" -IUSE="+aio +zeroconf" +IUSE="+aio python +zeroconf" -RDEPEND="dev-libs/libxml2:= - virtual/libusb:1= +BDEPEND="python? ( ${PYTHON_DEPS} )" +RDEPEND="python? ( ${PYTHON_DEPS} ) + dev-libs/libxml2 + virtual/libusb:1 aio? ( dev-libs/libaio ) - zeroconf? ( net-dns/avahi )" + 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 + python_fix_shebang "${ED}" + python_optimize +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} |