summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2024-02-24 13:16:10 +0100
committerJakov Smolić <jsmolic@gentoo.org>2024-02-24 13:39:59 +0100
commit4ef3fd3810dd755363861bfef5011f4422534c3b (patch)
treeca5441ccc7ad3b1559827743f9b67debbd1f0579 /net-libs
parentsys-fs/genimage: add 17 (diff)
downloadgentoo-4ef3fd3810dd755363861bfef5011f4422534c3b.tar.gz
gentoo-4ef3fd3810dd755363861bfef5011f4422534c3b.tar.bz2
gentoo-4ef3fd3810dd755363861bfef5011f4422534c3b.zip
net-libs/libyang: add 2.1.148
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libyang/Manifest1
-rw-r--r--net-libs/libyang/libyang-2.1.148.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/net-libs/libyang/Manifest b/net-libs/libyang/Manifest
index 03d2e8d161aa..53fbb61ffd82 100644
--- a/net-libs/libyang/Manifest
+++ b/net-libs/libyang/Manifest
@@ -1 +1,2 @@
+DIST libyang-2.1.148.tar.gz 1266532 BLAKE2B e955958319a4ad8c241720c3a425ab2a298916b8ba34e91ff2b43bafaae65fb0d41c904af894d3c5025ab253a40cb6f4732137b195169785628f6cedeb054acb SHA512 548628e6879f37cd27b0b39197a389c140b4372d11309f588ab93a4d74889b59f891f5b6bc447b491e24544559a42e93a1dbfa49827506aed30b226cf61ca400
DIST libyang-2.1.55.tar.gz 1201664 BLAKE2B b23d886163b1082c8895d1450113f364288eb6f77c4c73f7da1576877c35312b5558dbaf90e43268e18dd9348b024547c8cc4ee3a7ddabfb3762ffe67c47dc17 SHA512 dd0b58aec7e2d84f62636c62c9e7f67f0b4819e8d5ce9236874a3531607aa6fb58ccdcf537534eae8bfa700c37b8e3524be659929f4e7e03f8f67968bc352cb4
diff --git a/net-libs/libyang/libyang-2.1.148.ebuild b/net-libs/libyang/libyang-2.1.148.ebuild
new file mode 100644
index 000000000000..3941774937b6
--- /dev/null
+++ b/net-libs/libyang/libyang-2.1.148.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+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"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-util/cmocka )
+"
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( app-text/doxygen[dot] )
+"
+
+src_configure() {
+ 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/.
+}