commit: 0cba64b4edc4f87aa9a3267f372e986fea23f279 Author: tastytea <gentoo <AT> tastytea <DOT> de> AuthorDate: Sat Aug 26 10:35:14 2023 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Sat Aug 26 10:35:14 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0cba64b4
dev-cpp/trantor: add 1.5.13 Signed-off-by: tastytea <gentoo <AT> tastytea.de> dev-cpp/trantor/Manifest | 1 + dev-cpp/trantor/trantor-1.5.13.ebuild | 49 +++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-cpp/trantor/Manifest b/dev-cpp/trantor/Manifest index 56535ef234..4e81368c33 100644 --- a/dev-cpp/trantor/Manifest +++ b/dev-cpp/trantor/Manifest @@ -1,2 +1,3 @@ DIST trantor-1.5.10.tar.gz 112413 BLAKE2B 7ee04f57ba6f41edcc4c5334c63c7194e8a581edaec771ca6a2b2f6c444603da7a43d5ebf30ac89b9302f4302c4a54af9cee3c9532545345f0bf51b56b95dae3 SHA512 27ddc46b81747ba43f2abb5d6f3b82257ee6a7295f3cca3da0320dea2e6ef4b6276641a3fc3f61a082aa7ea360ee56663cebf4c6301ba79dcdbbdc96a450cb28 DIST trantor-1.5.11.tar.gz 113152 BLAKE2B 6ec0c8ae98835ad5fa94ab154ac3910496ddba2f67e307f90b48ee5bc39d3b4158adcac39b1bd2c2b7343a31f9fba394a6cbbb4fa86c1d1a8f1f28887d5a7955 SHA512 dd65938bebb2e6714e5603db3bfc82cd1a63395c17dce014147a41fdc74548cb526e1457a7472aa51bb80ce629a9935b4db9eeadf735efaf30899ef73f776a58 +DIST trantor-1.5.13.tar.gz 143230 BLAKE2B 298870f3b132d4dbacbab88b9689fd2e8fec7450dcca82fc985393b718a701008debea7a50f2d7814871a9399bb423f21b9a9454de59468f7bfade51b70a283d SHA512 4f4cef4103faa323e5213c1b59c0d86606831e97127594d5c9248481ba4ce66905c40c25c5d83d00e78936d53ba03b8450e6848199a85e9120bb8f2522bf7805 diff --git a/dev-cpp/trantor/trantor-1.5.13.ebuild b/dev-cpp/trantor/trantor-1.5.13.ebuild new file mode 100644 index 0000000000..42685e11c9 --- /dev/null +++ b/dev-cpp/trantor/trantor-1.5.13.ebuild @@ -0,0 +1,49 @@ +# Copyright 2021-2023 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/${PV}" +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_prepare() { + sed -i 's/ -Werror)$/)/' CMakeLists.txt || die "could not remove -Werror" + cmake_src_prepare +} + +src_configure() { + local -a mycmakeargs=( + "-DBUILD_SHARED_LIBS=YES" + "-DBUILD_DOC=$(usex doc)" + "-DBUILD_TESTING=$(usex test)" + "-DBUILD_C-ARES=$(usex adns)" + "-DTRANTOR_USE_TLS=$(usex ssl openssl none)" + ) + + cmake_src_configure +} + +src_install() { + use doc && HTML_DOCS="${BUILD_DIR}/docs/trantor/html/*" + + cmake_src_install +}
