aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-08-19 15:30:29 +0200
committerRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-08-19 15:30:29 +0200
commit31153e33ebbed4e9961de40046be36042044f383 (patch)
treedcf963b3b785c112fe0974bda65ca23c32e453c3 /dev-cpp/drogon
parentdev-cpp/trantor: add subslot (diff)
downloadguru-31153e33ebbed4e9961de40046be36042044f383.tar.gz
guru-31153e33ebbed4e9961de40046be36042044f383.tar.bz2
guru-31153e33ebbed4e9961de40046be36042044f383.zip
dev-cpp/drogon: rebuild when trantor updates
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
Diffstat (limited to 'dev-cpp/drogon')
-rw-r--r--dev-cpp/drogon/drogon-1.7.5-r1.ebuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/dev-cpp/drogon/drogon-1.7.5-r1.ebuild b/dev-cpp/drogon/drogon-1.7.5-r1.ebuild
new file mode 100644
index 000000000..8fee28811
--- /dev/null
+++ b/dev-cpp/drogon/drogon-1.7.5-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="C++14/17 based HTTP web application framework"
+HOMEPAGE="https://github.com/drogonframework/drogon"
+SRC_URI="https://github.com/drogonframework/drogon/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+brotli doc examples mariadb postgres redis sqlite +ssl test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-cpp/trantor-1.5.5:=
+ dev-libs/jsoncpp:=
+ sys-libs/zlib
+ brotli? ( app-arch/brotli:= )
+ mariadb? ( dev-db/mariadb:= )
+ postgres? ( dev-db/postgresql:= )
+ redis? ( dev-libs/hiredis:= )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( dev-libs/openssl:= )
+ elibc_Darwin? ( sys-libs/native-uuid )
+ elibc_SunOS? ( sys-libs/libuuid )
+ !elibc_Darwin? ( !elibc_SunOS? (
+ sys-apps/util-linux
+ ) )
+"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )
+"
+BDEPEND="doc? ( app-doc/doxygen )"
+
+DOCS=( CONTRIBUTING.md ChangeLog.md README.md README.zh-CN.md README.zh-TW.md )
+
+src_prepare() {
+ cmake_comment_add_subdirectory "trantor"
+ sed -i '/${PROJECT_SOURCE_DIR}\/trantor\/trantor\/tests\/server.pem/d' \
+ lib/tests/CMakeLists.txt || die
+
+ use examples && DOCS+=( "${S}/examples" )
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local -a mycmakeargs=(
+ -DBUILD_DOC=$(usex doc)
+ -DBUILD_EXAMPLES=NO
+ -DBUILD_DROGON_SHARED=YES
+ -DBUILD_POSTGRESQL=$(usex postgres)
+ -DBUILD_MYSQL=$(usex mariadb)
+ -DBUILD_SQLITE=$(usex sqlite)
+ -DBUILD_REDIS=$(usex redis)
+ -DBUILD_TESTING=$(usex test)
+ -DBUILD_BROTLI=$(usex brotli)
+ $(cmake_use_find_package ssl OpenSSL)
+ $(cmake_use_find_package doc Doxygen)
+ )
+ use doc && HTML_DOCS=( "${BUILD_DIR}/docs/drogon/html/." )
+
+ cmake_src_configure
+}
+
+src_install() {
+ docompress -x /usr/share/doc/${PF}/examples
+ cmake_src_install
+}