1 |
commit: a6db9c5d3e4aad15aa6f33389b71fb75420fb702 |
2 |
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 10:01:53 2021 +0000 |
4 |
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 10:01:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6db9c5d |
7 |
|
8 |
net-libs/libyang: version bump |
9 |
|
10 |
Add support for package tests |
11 |
Add support for multilib builds |
12 |
|
13 |
Closes: https://github.com/gentoo/gentoo/pull/19273 |
14 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
15 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
16 |
Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org> |
17 |
|
18 |
net-libs/libyang/Manifest | 1 + |
19 |
net-libs/libyang/libyang-1.0.215.ebuild | 46 +++++++++++++++++++++++++++++++++ |
20 |
2 files changed, 47 insertions(+) |
21 |
|
22 |
diff --git a/net-libs/libyang/Manifest b/net-libs/libyang/Manifest |
23 |
index eb54f19c072..0b81e19c630 100644 |
24 |
--- a/net-libs/libyang/Manifest |
25 |
+++ b/net-libs/libyang/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST libyang-1.0.184.tar.gz 1659420 BLAKE2B 55b54e5440fb08437a91df2c218e4add37740c0416b26e9ac3b5949a4a5ba25ded8c4c7668e0bf20c8ffcfbae95f7c4699673998285ce37c17604f121429fd4f SHA512 bb1c396b6048d848ea844cc462f1ee9f14b0dad848c7618ec0f9bd239d28db8a94f94550c5439ca07e01824a910a748ec6be699c58150b34072c2f9b76acd95c |
28 |
+DIST libyang-1.0.215.tar.gz 1666478 BLAKE2B 66fc53458caf43e8473905ce9294efb9a49f0c73206a4c5ef96f7b79e72fff9429aa4245fdb29a7d2b4a23460d771d30a9397ca4d2ce76379675dc4a9f6427fd SHA512 042e7be3a658340eebb5aaf819169a516af5489c366c026b599d673b623811b01a5cc7b2fce0fe39c5deb5cce5b1e0e6dfc4eb85a331fb3203d415011e6d2dad |
29 |
|
30 |
diff --git a/net-libs/libyang/libyang-1.0.215.ebuild b/net-libs/libyang/libyang-1.0.215.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..c98a1b7dd4b |
33 |
--- /dev/null |
34 |
+++ b/net-libs/libyang/libyang-1.0.215.ebuild |
35 |
@@ -0,0 +1,46 @@ |
36 |
+# Copyright 2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+CMAKE_ECLASS=cmake |
42 |
+inherit cmake-multilib |
43 |
+ |
44 |
+DESCRIPTION="YANG data modeling language library" |
45 |
+HOMEPAGE="https://github.com/CESNET/libyang" |
46 |
+SRC_URI="https://github.com/CESNET/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+ |
52 |
+IUSE="doc test" |
53 |
+ |
54 |
+RDEPEND="dev-libs/libpcre[${MULTILIB_USEDEP}]" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+BDEPEND=" |
57 |
+ sys-devel/bison |
58 |
+ sys-devel/flex |
59 |
+ doc? ( app-doc/doxygen[dot] ) |
60 |
+" |
61 |
+ |
62 |
+RESTRICT="!test? ( test )" |
63 |
+ |
64 |
+multilib_src_configure() { |
65 |
+ local mycmakeargs=( |
66 |
+ -DENABLE_BUILD_TESTS=$(usex test) |
67 |
+ -DENABLE_LYD_PRIV=yes |
68 |
+ -DGEN_LANGUAGE_BINDINGS=no |
69 |
+ ) |
70 |
+ cmake_src_configure |
71 |
+} |
72 |
+ |
73 |
+multilib_src_compile() { |
74 |
+ cmake_src_compile |
75 |
+ |
76 |
+ multilib_is_native_abi && use doc && cmake_src_compile doc |
77 |
+} |
78 |
+ |
79 |
+multilib_src_install_all() { |
80 |
+ use doc && dodoc -r "${S}"/doc/* |
81 |
+} |