diff options
| -rw-r--r-- | net-libs/libnetconf2/Manifest | 1 | ||||
| -rw-r--r-- | net-libs/libnetconf2/libnetconf2-3.5.5.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/net-libs/libnetconf2/Manifest b/net-libs/libnetconf2/Manifest index a62e46dfc71e..9c12d331d9a3 100644 --- a/net-libs/libnetconf2/Manifest +++ b/net-libs/libnetconf2/Manifest @@ -1 +1,2 @@ DIST libnetconf2-2.1.31.tar.gz 323423 BLAKE2B 8a6a3e4e7eaf94ce2afba688555956159fb48ad83e802f187acc222dc3e3c62ab718758dfaa39abc81417895098c75cb0ee490ac64412634e88cef7389556ecb SHA512 f174aee332aa775308d8fbd7aff450af9531c94dfe76279a87acd3554f07957c468a1ef2d2c2c6a63748f87920790616426839cb9c3e0c50ec2c88c98273d8aa +DIST libnetconf2-3.5.5.tar.gz 454685 BLAKE2B 04e32fff3e97c07beddeb447d25608b942e71317009c71b6b50fc32f29cc7d796a5df050e2afd4dce8a1a5ad69c8d636db33911d2016ff5e278178e1814dfab6 SHA512 8de6ef5ca31581bdc17f3711175392bc328dbc7560dc491bbdf8d1742b390b01781e750ac40cff504b32a610b9eff978334bd0e0b02b0622439fed34af119398 diff --git a/net-libs/libnetconf2/libnetconf2-3.5.5.ebuild b/net-libs/libnetconf2/libnetconf2-3.5.5.ebuild new file mode 100644 index 000000000000..8a0097eae2b5 --- /dev/null +++ b/net-libs/libnetconf2/libnetconf2-3.5.5.ebuild @@ -0,0 +1,57 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="C library for building NETCONF servers and clients" +HOMEPAGE="https://github.com/CESNET/libnetconf2" +SRC_URI="https://github.com/CESNET/libnetconf2/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/openssl:0= + >=net-libs/libyang-2.0.194 + net-libs/libssh:0=[server] + virtual/libcrypt:=" +DEPEND="${RDEPEND} + test? ( dev-util/cmocka )" +BDEPEND=" + virtual/pkgconfig + doc? ( app-text/doxygen[dot] )" + +src_configure() { + # fails tests, but only with LTO. + # [ ERROR ] --- 0 != 0xffffffffffffffff + # [ LINE ] --- /var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31/tests/client/test_client_ssh.c:716: error: Failure! + # [ FAILED ] test_nc_client_ssh_ch_add_bind_listen + # + # https://bugs.gentoo.org/877449 + # https://github.com/CESNET/libnetconf2/issues/471 + filter-lto + + local mycmakeargs=( + -DENABLE_TESTS=$(usex test) + -DENABLE_VALGRIND_TESTS=OFF + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + use doc && cmake_src_compile doc +} + +src_install() { + cmake_src_install + + use doc && dodoc -r doc/. +} |
