Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libcbor/
Date: Mon, 30 Mar 2020 17:03:39
Message-Id: 1585587551.6ecfd1ca3f66b718f42a65b57ed5212199248d69.whissi@gentoo
1 commit: 6ecfd1ca3f66b718f42a65b57ed5212199248d69
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 30 16:59:11 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 30 16:59:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ecfd1ca
7
8 dev-libs/libcbor: bump to v0.6.1
9
10 Package-Manager: Portage-2.3.96, Repoman-2.3.22
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-libs/libcbor/Manifest | 1 +
14 dev-libs/libcbor/libcbor-0.6.1.ebuild | 68 +++++++++++++++++++++++++++++++++++
15 2 files changed, 69 insertions(+)
16
17 diff --git a/dev-libs/libcbor/Manifest b/dev-libs/libcbor/Manifest
18 index 727832f6f39..d9c19bffcc8 100644
19 --- a/dev-libs/libcbor/Manifest
20 +++ b/dev-libs/libcbor/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libcbor-0.5.0.tar.gz 719348 BLAKE2B 57e15e648159e7858d9d57a8b4cb7f3682f8153248610c9a3385cf9cbdea8babaf81d596b25d44bf6d59c75de23e76cce462fa7860b294019f46636726206d5a SHA512 5c2e9610d9fbb0bfc59f89a180f70b58539a1760fd39cad696af372c164a87828a23bb4d3a54d8e9d846be5271204800f0ad63656ef830f06a0ccdd10edfdb2c
23 DIST libcbor-0.6.0.tar.gz 262622 BLAKE2B 2d3bc10bdb69c9205430718a8f2652672a8fa580ba7951c4012bdc8b502a9d6dcb26f398740f5fd35dfe0634f8e3d8ddf7eff5b9ec35c95cdc5383e2dce9f0ab SHA512 6adbb32780d428140388295c5d740bd77b0ae7b21e3f73629ba56a3aa4e4ee5dbb715454061b0f6f67f2b19ea8366e0e5c24f4ffb1ba629afcb7a776a15045f7
24 +DIST libcbor-0.6.1.tar.gz 263486 BLAKE2B 9a2415c1dde7ed611075c3b03ea1d8ab63bcb00dfc0cae3d7a3bb225b6fbee2a8f576b1f0f97eb6f0cf14c1a6e9df1c77f69320bac041287b0dec37c073f8b85 SHA512 dc9bb7d18b934fe33faabe30010425cb272d7e135f3bf233554bc934b1701f85c7b662e0d5a6a1921c21cd46acb4393600e9adc05b09d1b2a8e3c92ca9d7e4e8
25
26 diff --git a/dev-libs/libcbor/libcbor-0.6.1.ebuild b/dev-libs/libcbor/libcbor-0.6.1.ebuild
27 new file mode 100644
28 index 00000000000..368f5493f9e
29 --- /dev/null
30 +++ b/dev-libs/libcbor/libcbor-0.6.1.ebuild
31 @@ -0,0 +1,68 @@
32 +# Copyright 2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +inherit python-any-r1 cmake-utils
39 +
40 +DESCRIPTION="CBOR protocol implementation for C and others"
41 +HOMEPAGE="https://github.com/pjk/libcbor"
42 +SRC_URI="https://github.com/PJK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0/1"
46 +KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
47 +IUSE="+custom-alloc doc test"
48 +
49 +BDEPEND="
50 + doc? (
51 + $(python_gen_any_dep '
52 + dev-python/sphinx[${PYTHON_USEDEP}]
53 + dev-python/breathe[${PYTHON_USEDEP}]
54 + ')
55 + )
56 + test? ( dev-util/cmocka )
57 +"
58 +
59 +RESTRICT="!test? ( test )"
60 +
61 +CMAKE_MAKEFILE_GENERATOR="emake"
62 +
63 +python_check_deps() {
64 + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
65 + has_version "dev-python/breathe[${PYTHON_USEDEP}]"
66 +}
67 +
68 +pkg_setup() {
69 + use doc && python-any-r1_pkg_setup
70 +}
71 +
72 +src_configure() {
73 + local -a mycmakeargs=(
74 + -DCMAKE_BUILD_TYPE=Release
75 + -DCBOR_CUSTOM_ALLOC=$(usex custom-alloc 'ON' 'OFF')
76 + -DWITH_TESTS=$(usex test 'ON' 'OFF')
77 + )
78 +
79 + cmake-utils_src_configure
80 +}
81 +
82 +src_compile() {
83 + cmake-utils_src_compile
84 +
85 + if use doc; then
86 + pushd doc >/dev/null || die
87 + emake html man
88 + popd >/dev/null || die
89 + fi
90 +}
91 +
92 +src_install() {
93 + cmake-utils_src_install
94 +
95 + if use doc; then
96 + dodoc -r doc/build/html
97 + doman doc/build/man/*
98 + fi
99 +}