summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2022-03-21 15:29:18 +0100
committerJakov Smolić <jsmolic@gentoo.org>2022-03-21 19:48:27 +0100
commitac551fff1510887528c2f172ba1ea3f247c13f18 (patch)
treee6ae4ca6cc077b8a3c50e1b56f109be76f23fd73 /net-libs/libyang
parentsci-calculators/orpie: fix command not found (diff)
downloadgentoo-ac551fff1510887528c2f172ba1ea3f247c13f18.tar.gz
gentoo-ac551fff1510887528c2f172ba1ea3f247c13f18.tar.bz2
gentoo-ac551fff1510887528c2f172ba1ea3f247c13f18.zip
net-libs/libyang: add 2.0.164
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'net-libs/libyang')
-rw-r--r--net-libs/libyang/Manifest1
-rw-r--r--net-libs/libyang/libyang-2.0.164.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/net-libs/libyang/Manifest b/net-libs/libyang/Manifest
index 930612c50d83..e9db1af2db41 100644
--- a/net-libs/libyang/Manifest
+++ b/net-libs/libyang/Manifest
@@ -1 +1,2 @@
DIST libyang-2.0.112.tar.gz 1075308 BLAKE2B 13c5dee1817f93ec24580d24cfc5d1c066de54dec3d1de60e6f7d67caad527b13e40864301d5e5086b3d92b8769e200674168dd874bc2c786bd5101ec3aa958f SHA512 5da463b86656b9fc944925777a488b3306ef1a1e7efdaf4af677960a04b5544605126bb7e0441e55686b80f97fca70fe86605d0e7c64f634b4297dcc7bd779db
+DIST libyang-2.0.164.tar.gz 1120619 BLAKE2B 7b9fc93ae4c7d42c3d818a26448bf1f7fc8df21634668f46e14256d094997ef22f74ae5e8f46807692e1bab176dd14d9d3036712013bf83716f6069664a74436 SHA512 016e450110e968665195bec692ef1eca6889636de79bd873f74cddde6a58859ac1df4d1fb2bc3024ff05d82ff4c2b0f4eb8df06ddfd4b04d3a0c5f5fed44af65
diff --git a/net-libs/libyang/libyang-2.0.164.ebuild b/net-libs/libyang/libyang-2.0.164.ebuild
new file mode 100644
index 000000000000..4f71c69760dd
--- /dev/null
+++ b/net-libs/libyang/libyang-2.0.164.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_ECLASS=cmake
+inherit cmake-multilib
+
+DESCRIPTION="YANG data modeling language library"
+HOMEPAGE="https://github.com/CESNET/libyang"
+SRC_URI="https://github.com/CESNET/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-libs/libpcre2[${MULTILIB_USEDEP}]"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-util/cmocka )
+"
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen[dot] )
+"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DENABLE_TESTS=$(usex test)
+ -DENABLE_VALGRIND_TESTS=OFF
+ )
+ cmake_src_configure
+}
+
+multilib_src_compile() {
+ cmake_src_compile
+
+ multilib_is_native_abi && use doc && cmake_src_compile doc
+}
+
+multilib_src_install_all() {
+ use doc && dodoc -r doc/.
+}