commit:     fa52f51a9950b64c7262565ca2a4c0a848922a59
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Fri Jul 15 10:33:51 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Fri Jul 15 11:48:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fa52f51a

dev-cpp/trantor: add 1.5.6

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 dev-cpp/trantor/Manifest             |  1 +
 dev-cpp/trantor/trantor-1.5.6.ebuild | 44 ++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/dev-cpp/trantor/Manifest b/dev-cpp/trantor/Manifest
index 879cfd20a..f5e7e38da 100644
--- a/dev-cpp/trantor/Manifest
+++ b/dev-cpp/trantor/Manifest
@@ -1,2 +1,3 @@
 DIST trantor-1.5.4.tar.gz 104945 BLAKE2B 
bb4c038ef4b98eb127ddab313b9184af9829e1198d5bee295be49ae3d8f6941f11d8b3782056ebb7a779cb454f6e09daee464f597ce623ad1065df943ae47042
 SHA512 
adb98a78d254b19ec0866cf3bfa06011123fca4553e73702024ebe4cde6d95fb1de29d6894d89362339b82e1a6738b32ffc1a682cbb33ae94354df4a45cda8c7
 DIST trantor-1.5.5.tar.gz 106134 BLAKE2B 
52af020c2b862532f5a473b7714654d5a1ea93415059aa3675e0c48d630a1b5ef43782a60ca1d09752c1ef9b90dfec19155af39673e25eb0c99dfc40a9dc0ddb
 SHA512 
41068dcefcaf55908735126375b65a83a7d7085f30d5eb14e8d73fa255405ec77164c34b9ef0e5e6da3aeae3e66b9d57d4fca8901d63d4414bf8e857bd25dcd4
+DIST trantor-1.5.6.tar.gz 109719 BLAKE2B 
5465f1cddd014a9dee4dd1ea1f8e6f36a1eef3a16424305ff2102fb489838260b415d92e43d72a3fe99db924946987e8e8c64f6720488c2e9e0f42b1b031ca0a
 SHA512 
9c9827b1640fa23f2941c6c10ffe692d4207595de1cb149f94140c0f20d4fe6c45e3efcc50d464bd40aff80443dfe3bdd8db263302755ab8f639a920e497c0b3

diff --git a/dev-cpp/trantor/trantor-1.5.6.ebuild 
b/dev-cpp/trantor/trantor-1.5.6.ebuild
new file mode 100644
index 000000000..d7402bce9
--- /dev/null
+++ b/dev-cpp/trantor/trantor-1.5.6.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Non-blocking I/O tcp network lib based on c++14/17"
+HOMEPAGE="https://github.com/an-tao/trantor";
+SRC_URI="https://github.com/an-tao/trantor/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="adns doc +ssl test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       adns? ( net-dns/c-ares:= )
+       ssl? ( dev-libs/openssl:= )
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-cpp/gtest )
+"
+BDEPEND="doc? ( app-doc/doxygen[dot] )"
+
+src_configure() {
+       local -a mycmakeargs=(
+               "-DBUILD_SHARED_LIBS=YES"
+               "-DBUILD_DOC=$(usex doc)"
+               "-DBUILD_TESTING=$(usex test)"
+               "-DBUILD_C-ARES=$(usex adns)"
+               "$(cmake_use_find_package ssl OpenSSL)"
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       use doc && HTML_DOCS="${BUILD_DIR}/docs/trantor/html/*"
+
+       cmake_src_install
+}

Reply via email to