Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/drogon/
Date: Wed, 24 Aug 2022 15:52:26
Message-Id: 1660915829.31153e33ebbed4e9961de40046be36042044f383.tastytea@gentoo
1 commit: 31153e33ebbed4e9961de40046be36042044f383
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Fri Aug 19 13:30:29 2022 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Fri Aug 19 13:30:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=31153e33
7
8 dev-cpp/drogon: rebuild when trantor updates
9
10 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
11
12 dev-cpp/drogon/drogon-1.7.5-r1.ebuild | 73 +++++++++++++++++++++++++++++++++++
13 1 file changed, 73 insertions(+)
14
15 diff --git a/dev-cpp/drogon/drogon-1.7.5-r1.ebuild b/dev-cpp/drogon/drogon-1.7.5-r1.ebuild
16 new file mode 100644
17 index 000000000..8fee28811
18 --- /dev/null
19 +++ b/dev-cpp/drogon/drogon-1.7.5-r1.ebuild
20 @@ -0,0 +1,73 @@
21 +# Copyright 2021-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +inherit cmake
27 +
28 +DESCRIPTION="C++14/17 based HTTP web application framework"
29 +HOMEPAGE="https://github.com/drogonframework/drogon"
30 +SRC_URI="https://github.com/drogonframework/drogon/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
31 +
32 +LICENSE="MIT"
33 +SLOT="0"
34 +KEYWORDS="~amd64"
35 +IUSE="+brotli doc examples mariadb postgres redis sqlite +ssl test"
36 +RESTRICT="!test? ( test )"
37 +
38 +RDEPEND="
39 + >=dev-cpp/trantor-1.5.5:=
40 + dev-libs/jsoncpp:=
41 + sys-libs/zlib
42 + brotli? ( app-arch/brotli:= )
43 + mariadb? ( dev-db/mariadb:= )
44 + postgres? ( dev-db/postgresql:= )
45 + redis? ( dev-libs/hiredis:= )
46 + sqlite? ( dev-db/sqlite:3 )
47 + ssl? ( dev-libs/openssl:= )
48 + elibc_Darwin? ( sys-libs/native-uuid )
49 + elibc_SunOS? ( sys-libs/libuuid )
50 + !elibc_Darwin? ( !elibc_SunOS? (
51 + sys-apps/util-linux
52 + ) )
53 +"
54 +DEPEND="${RDEPEND}
55 + test? ( dev-cpp/gtest )
56 +"
57 +BDEPEND="doc? ( app-doc/doxygen )"
58 +
59 +DOCS=( CONTRIBUTING.md ChangeLog.md README.md README.zh-CN.md README.zh-TW.md )
60 +
61 +src_prepare() {
62 + cmake_comment_add_subdirectory "trantor"
63 + sed -i '/${PROJECT_SOURCE_DIR}\/trantor\/trantor\/tests\/server.pem/d' \
64 + lib/tests/CMakeLists.txt || die
65 +
66 + use examples && DOCS+=( "${S}/examples" )
67 +
68 + cmake_src_prepare
69 +}
70 +
71 +src_configure() {
72 + local -a mycmakeargs=(
73 + -DBUILD_DOC=$(usex doc)
74 + -DBUILD_EXAMPLES=NO
75 + -DBUILD_DROGON_SHARED=YES
76 + -DBUILD_POSTGRESQL=$(usex postgres)
77 + -DBUILD_MYSQL=$(usex mariadb)
78 + -DBUILD_SQLITE=$(usex sqlite)
79 + -DBUILD_REDIS=$(usex redis)
80 + -DBUILD_TESTING=$(usex test)
81 + -DBUILD_BROTLI=$(usex brotli)
82 + $(cmake_use_find_package ssl OpenSSL)
83 + $(cmake_use_find_package doc Doxygen)
84 + )
85 + use doc && HTML_DOCS=( "${BUILD_DIR}/docs/drogon/html/." )
86 +
87 + cmake_src_configure
88 +}
89 +
90 +src_install() {
91 + docompress -x /usr/share/doc/${PF}/examples
92 + cmake_src_install
93 +}