Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/trantor/
Date: Tue, 27 Sep 2022 20:43:53
Message-Id: 1664266071.804da0aa80c929b22616f47d4c6762810601cc10.lanodan@gentoo
1 commit: 804da0aa80c929b22616f47d4c6762810601cc10
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Tue Sep 27 08:07:51 2022 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Tue Sep 27 08:07:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=804da0aa
7
8 dev-cpp/trantor: add 1.5.7
9
10 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
11
12 dev-cpp/trantor/Manifest | 1 +
13 dev-cpp/trantor/trantor-1.5.7.ebuild | 44 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/dev-cpp/trantor/Manifest b/dev-cpp/trantor/Manifest
17 index 1807896af..fe93ce8cd 100644
18 --- a/dev-cpp/trantor/Manifest
19 +++ b/dev-cpp/trantor/Manifest
20 @@ -1,2 +1,3 @@
21 DIST trantor-1.5.6.tar.gz 109719 BLAKE2B 5465f1cddd014a9dee4dd1ea1f8e6f36a1eef3a16424305ff2102fb489838260b415d92e43d72a3fe99db924946987e8e8c64f6720488c2e9e0f42b1b031ca0a SHA512 9c9827b1640fa23f2941c6c10ffe692d4207595de1cb149f94140c0f20d4fe6c45e3efcc50d464bd40aff80443dfe3bdd8db263302755ab8f639a920e497c0b3
22 DIST trantor-1.5.6_p20220801.tar.gz 109915 BLAKE2B f9ef51274e2f67a474239482013ab0460265ed60238ada88d1a6aeb3b3883992424a2aa75c4726e8018083c54fef7f2fb5f3fbb781a1feecfd84e2b187937fc8 SHA512 fb1517eeaaf6a3f374e24767cc64183bc8966635f78d37ba213b2aeeef54b9763c59e376fb42b38892fc0468708e940a421d81f4b5809bfe65404e1e75ffa5ad
23 +DIST trantor-1.5.7.tar.gz 112139 BLAKE2B f0584b762c9c4f4e34eaec06f7438ef9bc587f5f6333ee9ee26a8c65f60bafc159f1b9b52a9079d5454824ec0911015274c4dcedaf102d1a09b3edc6a9cf06d5 SHA512 52fe66a5eb4a682abffe90b69b5ebf4f5791d07e020bf8bbe88317b3fddbc9f3c04b6a2664aa3ca1851c5c9681433f99e3851458bb9a99be89452382ca33e837
24
25 diff --git a/dev-cpp/trantor/trantor-1.5.7.ebuild b/dev-cpp/trantor/trantor-1.5.7.ebuild
26 new file mode 100644
27 index 000000000..f28b11d3f
28 --- /dev/null
29 +++ b/dev-cpp/trantor/trantor-1.5.7.ebuild
30 @@ -0,0 +1,44 @@
31 +# Copyright 2021-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit cmake
37 +
38 +DESCRIPTION="Non-blocking I/O tcp network lib based on c++14/17"
39 +HOMEPAGE="https://github.com/an-tao/trantor"
40 +SRC_URI="https://github.com/an-tao/trantor/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="BSD"
43 +SLOT="0/${PV}"
44 +KEYWORDS="~amd64"
45 +IUSE="adns doc +ssl test"
46 +RESTRICT="!test? ( test )"
47 +
48 +RDEPEND="
49 + adns? ( net-dns/c-ares:= )
50 + ssl? ( dev-libs/openssl:= )
51 +"
52 +DEPEND="
53 + ${RDEPEND}
54 + test? ( dev-cpp/gtest )
55 +"
56 +BDEPEND="doc? ( app-doc/doxygen[dot] )"
57 +
58 +src_configure() {
59 + local -a mycmakeargs=(
60 + "-DBUILD_SHARED_LIBS=YES"
61 + "-DBUILD_DOC=$(usex doc)"
62 + "-DBUILD_TESTING=$(usex test)"
63 + "-DBUILD_C-ARES=$(usex adns)"
64 + "$(cmake_use_find_package ssl OpenSSL)"
65 + )
66 +
67 + cmake_src_configure
68 +}
69 +
70 +src_install() {
71 + use doc && HTML_DOCS="${BUILD_DIR}/docs/trantor/html/*"
72 +
73 + cmake_src_install
74 +}