Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/msgpack/
Date: Tue, 29 Sep 2020 23:14:43
Message-Id: 1601421235.594e23cf5d3e125eab53fd7b606e3fc27748787f.sam@gentoo
1 commit: 594e23cf5d3e125eab53fd7b606e3fc27748787f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 29 23:13:55 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 29 23:13:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594e23cf
7
8 dev-libs/msgpack: bump to 3.3.0
9
10 Closes: https://bugs.gentoo.org/688936
11 Closes: https://bugs.gentoo.org/737586
12 Package-Manager: Portage-3.0.4, Repoman-3.0.1
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 dev-libs/msgpack/Manifest | 1 +
16 dev-libs/msgpack/msgpack-3.3.0.ebuild | 76 +++++++++++++++++++++++++++++++++++
17 2 files changed, 77 insertions(+)
18
19 diff --git a/dev-libs/msgpack/Manifest b/dev-libs/msgpack/Manifest
20 index bcf4475f85e..1f7dbe990d5 100644
21 --- a/dev-libs/msgpack/Manifest
22 +++ b/dev-libs/msgpack/Manifest
23 @@ -2,3 +2,4 @@ DIST msgpack-1.1.0.tar.gz 493551 BLAKE2B 3ee162fcba5ae61c7c69945a567ac4d39526e79
24 DIST msgpack-3.1.1.tar.gz 495858 BLAKE2B a99b7edb2a6de80e018d5c4084ea199518e34045a6293c622c8690147ae353abdb63856eb031962a02ce20903d4443ec2b01a3c033e756c339f8674ff801d4c3 SHA512 cc634ef38b3844bf994159024441fe72d99055c42b0a4d81245b0629fd1f3147587eb36537cfb85e4cae2edc1dc23d7fa400022efa5a10dca295f9a6acd38346
25 DIST msgpack-3.2.0.tar.gz 499188 BLAKE2B 6e5fd59a96ca726d3429b173b3db4c74163eaf6d314b289845237b6ace6208478dbbbb60397c630d515f6f6eed344b74f76225d1a4ca143b91ebb9b3a1369c14 SHA512 f3d011adfaa71b3c5d5f3eb43f0addbd461ae82b8ac22f367ddba7ef762d3bea500477501cf394d1770f0c47809bc363fc1088819ecfdfa668e93529885f4b88
26 DIST msgpack-3.2.1.tar.gz 1234733 BLAKE2B 97fb6cab5125463f10e7ad2c55ee478b2bf3dab5628a40ce1b0bcdd96cc002f5c99e495592c91f1342e6623d32b5594536de226b0bf80e1cb5290dae9b0566dc SHA512 68d06b05a1f00a3d9d7d39313a9e11f42828606c39d9d4c07673a48c9b88028a6316f2a964881cc8e4d185616a037711f02a7d3cd6029eadbacf52145603538b
27 +DIST msgpack-3.3.0.tar.gz 508001 BLAKE2B 3017c44689f8afbf078b9c498449e21b4e3b87591c50a37bf9ae73869dab550819f24d6e5179a3600df297aa2c024e5a7fe1defcbab7c0f1aff826870de2ab32 SHA512 ad3e32edc8c6afd70282b3d4b493c2ffe74a697c41bd1f39030c5b4752cccefaa965bc049d4c2e63103a210bf714dc3bddd474691bc067d1475ae017593f55e6
28
29 diff --git a/dev-libs/msgpack/msgpack-3.3.0.ebuild b/dev-libs/msgpack/msgpack-3.3.0.ebuild
30 new file mode 100644
31 index 00000000000..3d562eb7fed
32 --- /dev/null
33 +++ b/dev-libs/msgpack/msgpack-3.3.0.ebuild
34 @@ -0,0 +1,76 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +CMAKE_ECLASS=cmake
41 +inherit cmake-multilib
42 +
43 +if [[ ${PV} == 9999 ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/${PN}/${PN}-c.git"
46 +else
47 + SRC_URI="https://github.com/${PN}/${PN}-c/releases/download/cpp-${PV}/${P}.tar.gz"
48 + KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
49 +fi
50 +
51 +DESCRIPTION="MessagePack is a binary-based efficient data interchange format"
52 +HOMEPAGE="https://msgpack.org/ https://github.com/msgpack/msgpack-c/"
53 +
54 +LICENSE="Boost-1.0"
55 +SLOT="0/2"
56 +IUSE="boost +cxx doc examples static-libs test"
57 +RESTRICT="!test? ( test )"
58 +
59 +BDEPEND="doc? ( app-doc/doxygen[dot] )"
60 +RDEPEND="boost? ( dev-libs/boost[context,${MULTILIB_USEDEP}] )"
61 +DEPEND="${RDEPEND}
62 + test? (
63 + >=dev-cpp/gtest-1.6.0-r2[${MULTILIB_USEDEP}]
64 + sys-libs/zlib[${MULTILIB_USEDEP}]
65 + )
66 +"
67 +
68 +multilib_src_configure() {
69 + local mycmakeargs=(
70 + -DMSGPACK_BOOST="$(usex boost)"
71 + -DMSGPACK_ENABLE_CXX="$(usex cxx)"
72 + -DMSGPACK_ENABLE_STATIC="$(usex static-libs)"
73 + -DMSGPACK_BUILD_TESTS="$(usex test)"
74 + # don't build the examples
75 + -DMSGPACK_BUILD_EXAMPLES=OFF
76 + # enable C++11 by default
77 + -DMSGPACK_CXX11=ON
78 + )
79 +
80 + cmake_src_configure
81 +}
82 +
83 +multilib_src_compile() {
84 + cmake_src_compile
85 +
86 + if multilib_is_native_abi && use doc; then
87 + emake doxygen
88 + fi
89 +}
90 +
91 +multilib_src_install() {
92 + if multilib_is_native_abi; then
93 + if use doc; then
94 + local HTML_DOCS=( "${BUILD_DIR}"/docs/. )
95 +
96 + mkdir docs || die
97 + mv doc_c/html docs/c || die
98 +
99 + use cxx && mv doc_cpp/html docs/cpp || die
100 + fi
101 +
102 + if use examples; then
103 + docinto examples
104 + dodoc -r "${WORKDIR}/${P}/example/."
105 + docompress -x /usr/share/doc/${PF}/examples
106 + fi
107 + fi
108 +
109 + cmake_src_install
110 +}