Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/trantor/
Date: Sun, 29 Jan 2023 11:39:20
Message-Id: 1674992346.27c6a433576bbad6b65da41749b242d3522f6fd8.tastytea@gentoo
1 commit: 27c6a433576bbad6b65da41749b242d3522f6fd8
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Sun Jan 29 11:33:06 2023 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Sun Jan 29 11:39:06 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=27c6a433
7
8 dev-cpp/trantor: add 1.5.10
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.10.ebuild | 49 +++++++++++++++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/dev-cpp/trantor/Manifest b/dev-cpp/trantor/Manifest
17 index 8dda1ccad..3d3abd4fa 100644
18 --- a/dev-cpp/trantor/Manifest
19 +++ b/dev-cpp/trantor/Manifest
20 @@ -1,2 +1,3 @@
21 +DIST trantor-1.5.10.tar.gz 112413 BLAKE2B 7ee04f57ba6f41edcc4c5334c63c7194e8a581edaec771ca6a2b2f6c444603da7a43d5ebf30ac89b9302f4302c4a54af9cee3c9532545345f0bf51b56b95dae3 SHA512 27ddc46b81747ba43f2abb5d6f3b82257ee6a7295f3cca3da0320dea2e6ef4b6276641a3fc3f61a082aa7ea360ee56663cebf4c6301ba79dcdbbdc96a450cb28
22 DIST trantor-1.5.7.tar.gz 112139 BLAKE2B f0584b762c9c4f4e34eaec06f7438ef9bc587f5f6333ee9ee26a8c65f60bafc159f1b9b52a9079d5454824ec0911015274c4dcedaf102d1a09b3edc6a9cf06d5 SHA512 52fe66a5eb4a682abffe90b69b5ebf4f5791d07e020bf8bbe88317b3fddbc9f3c04b6a2664aa3ca1851c5c9681433f99e3851458bb9a99be89452382ca33e837
23 DIST trantor-1.5.8.tar.gz 112315 BLAKE2B ee7b1805005fe33c8820fe84adf2af23a12e3758646fe18e681e2fc7a89109546f9bfa2b64cc03fd667a3d78d70377da31dfad67f76269b9afa3d9659163fee4 SHA512 6c90d3dbbc4e175500dfa8365dd42b1e260c5401b6551fb8f28e3673a6540b0937a66ca9f2ae0cc1ef6b1ba27c6232a053ef5402e5ef36835a51f841354de5c9
24
25 diff --git a/dev-cpp/trantor/trantor-1.5.10.ebuild b/dev-cpp/trantor/trantor-1.5.10.ebuild
26 new file mode 100644
27 index 000000000..85df49d01
28 --- /dev/null
29 +++ b/dev-cpp/trantor/trantor-1.5.10.ebuild
30 @@ -0,0 +1,49 @@
31 +# Copyright 2021-2023 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_prepare() {
59 + sed -i 's/ -Werror)$/)/' CMakeLists.txt || die "could not remove -Werror"
60 + cmake_src_prepare
61 +}
62 +
63 +src_configure() {
64 + local -a mycmakeargs=(
65 + "-DBUILD_SHARED_LIBS=YES"
66 + "-DBUILD_DOC=$(usex doc)"
67 + "-DBUILD_TESTING=$(usex test)"
68 + "-DBUILD_C-ARES=$(usex adns)"
69 + "$(cmake_use_find_package ssl OpenSSL)"
70 + )
71 +
72 + cmake_src_configure
73 +}
74 +
75 +src_install() {
76 + use doc && HTML_DOCS="${BUILD_DIR}/docs/trantor/html/*"
77 +
78 + cmake_src_install
79 +}