1 |
commit: d20ae3238a177ece7076f78ef445dbb69d5e96e0 |
2 |
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> |
3 |
AuthorDate: Wed Oct 20 17:56:31 2021 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Wed Oct 20 19:03:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d20ae323 |
7 |
|
8 |
dev-cpp/trantor: Version bump 1.5.2. |
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.2.ebuild | 45 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 46 insertions(+) |
15 |
|
16 |
diff --git a/dev-cpp/trantor/Manifest b/dev-cpp/trantor/Manifest |
17 |
index e33bc9152..6121d49a9 100644 |
18 |
--- a/dev-cpp/trantor/Manifest |
19 |
+++ b/dev-cpp/trantor/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST trantor-1.5.1.tar.gz 102696 BLAKE2B 7670b2e2bb56b703aa387df463433261cff33b5a8682681071ff5159d14a516e11faebde7e2431232ba3651f6420a017491a7468ce3f90c4c099284808e27171 SHA512 9f6664abc94943598805192ee09a98340e6e20efb15e448aac5e21480f1798b0991782d18766f5ef54399251d4980c2f68aeda3136c7e058e3c31623c8f7ce3f |
22 |
+DIST trantor-1.5.2.tar.gz 104534 BLAKE2B d6c5a1d2eff46f5ddcd2d31d3908ee0ac71c96fde097eb3f46ec368f4292604c2dd0689018c9c7272f1a8479d908e6c486776689d517513c6e15b7392e0c7376 SHA512 e5977023c7b435bb7c9041a57e9b4488f34aa977e81709b3f20ae2c56ff6920ef8a4c64813be36705465ef87015c678537e22e349d1408aeb27b33f80eb38f1b |
23 |
|
24 |
diff --git a/dev-cpp/trantor/trantor-1.5.2.ebuild b/dev-cpp/trantor/trantor-1.5.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..2123d8f25 |
27 |
--- /dev/null |
28 |
+++ b/dev-cpp/trantor/trantor-1.5.2.ebuild |
29 |
@@ -0,0 +1,45 @@ |
30 |
+# Copyright 2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit cmake |
36 |
+ |
37 |
+DESCRIPTION="Non-blocking I/O tcp network lib based on c++14/17" |
38 |
+HOMEPAGE="https://github.com/an-tao/trantor" |
39 |
+SRC_URI="https://github.com/an-tao/trantor/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64" |
44 |
+IUSE="adns doc +ssl test" |
45 |
+RESTRICT="!test? ( test )" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ adns? ( net-dns/c-ares ) |
49 |
+ ssl? ( dev-libs/openssl ) |
50 |
+" |
51 |
+DEPEND=" |
52 |
+ ${RDEPEND} |
53 |
+ doc? ( app-doc/doxygen ) |
54 |
+ test? ( dev-cpp/gtest ) |
55 |
+" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ use ssl || sed -i '/find_package(OpenSSL)/d' CMakeLists.txt || die |
59 |
+ |
60 |
+ use doc && HTML_DOCS="${BUILD_DIR}/docs/trantor/html/*" |
61 |
+ |
62 |
+ cmake_src_prepare |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ local -a mycmakeargs=( |
67 |
+ "-DBUILD_TRANTOR_SHARED=YES" |
68 |
+ "-DBUILD_DOC=$(usex doc)" |
69 |
+ "-DBUILD_TESTING=$(usex test)" |
70 |
+ "-DBUILD_C-ARES=$(usex adns)" |
71 |
+ ) |
72 |
+ |
73 |
+ cmake_src_configure |
74 |
+} |