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/libyang-1.0.215.ebuild
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/libyang-1.0.215.ebuild')
-rw-r--r--net-libs/libyang/libyang-1.0.215.ebuild46
1 files changed, 46 insertions, 0 deletions
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/*
+}