summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2021-02-01 13:01:53 +0300
committerSergey Popov <pinkbyte@gentoo.org>2021-02-01 13:01:59 +0300
commita6db9c5d3e4aad15aa6f33389b71fb75420fb702 (patch)
tree685409367a3ebfe50990ff2ac32f8e9e36a17e2f /net-libs/libyang
parentnet-libs/libyang: stable for amd64/x86 (diff)
downloadgentoo-a6db9c5d3e4aad15aa6f33389b71fb75420fb702.tar.gz
gentoo-a6db9c5d3e4aad15aa6f33389b71fb75420fb702.tar.bz2
gentoo-a6db9c5d3e4aad15aa6f33389b71fb75420fb702.zip
net-libs/libyang: version bump
Add support for package tests Add support for multilib builds Closes: https://github.com/gentoo/gentoo/pull/19273 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
Diffstat (limited to 'net-libs/libyang')
-rw-r--r--net-libs/libyang/Manifest1
-rw-r--r--net-libs/libyang/libyang-1.0.215.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/net-libs/libyang/Manifest b/net-libs/libyang/Manifest
index eb54f19c0726..0b81e19c630a 100644
--- a/net-libs/libyang/Manifest
+++ b/net-libs/libyang/Manifest
@@ -1 +1,2 @@
DIST libyang-1.0.184.tar.gz 1659420 BLAKE2B 55b54e5440fb08437a91df2c218e4add37740c0416b26e9ac3b5949a4a5ba25ded8c4c7668e0bf20c8ffcfbae95f7c4699673998285ce37c17604f121429fd4f SHA512 bb1c396b6048d848ea844cc462f1ee9f14b0dad848c7618ec0f9bd239d28db8a94f94550c5439ca07e01824a910a748ec6be699c58150b34072c2f9b76acd95c
+DIST libyang-1.0.215.tar.gz 1666478 BLAKE2B 66fc53458caf43e8473905ce9294efb9a49f0c73206a4c5ef96f7b79e72fff9429aa4245fdb29a7d2b4a23460d771d30a9397ca4d2ce76379675dc4a9f6427fd SHA512 042e7be3a658340eebb5aaf819169a516af5489c366c026b599d673b623811b01a5cc7b2fce0fe39c5deb5cce5b1e0e6dfc4eb85a331fb3203d415011e6d2dad
diff --git a/net-libs/libyang/libyang-1.0.215.ebuild b/net-libs/libyang/libyang-1.0.215.ebuild
new file mode 100644
index 000000000000..c98a1b7dd4b5
--- /dev/null
+++ b/net-libs/libyang/libyang-1.0.215.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~x86"
+
+IUSE="doc test"
+
+RDEPEND="dev-libs/libpcre[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ doc? ( app-doc/doxygen[dot] )
+"
+
+RESTRICT="!test? ( test )"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DENABLE_BUILD_TESTS=$(usex test)
+ -DENABLE_LYD_PRIV=yes
+ -DGEN_LANGUAGE_BINDINGS=no
+ )
+ 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 "${S}"/doc/*
+}