commit:     6e395b29ce43e553687ce9d855b43d0fb3a746c3
Author:     tea <gentoo <AT> tastytea <DOT> de>
AuthorDate: Fri Jun 28 05:08:48 2024 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Fri Jun 28 06:17:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6e395b29

dev-cpp/drogon: add 1.9.5

Signed-off-by: tea <gentoo <AT> tastytea.de>

 dev-cpp/drogon/Manifest            |  2 +
 dev-cpp/drogon/drogon-1.9.5.ebuild | 92 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+)

diff --git a/dev-cpp/drogon/Manifest b/dev-cpp/drogon/Manifest
index f4dda375a..b8d2d1028 100644
--- a/dev-cpp/drogon/Manifest
+++ b/dev-cpp/drogon/Manifest
@@ -1,4 +1,6 @@
 DIST drogon-1.9.3.tar.gz 611732 BLAKE2B 
a78a7f4e4e7bb3b650944f4ab2b50133e907d701df1cbb127ac646ea8006f441f05823254958ae8db3a3b3bc590d9b285d84679fb83e2228ab5a324825fcac6e
 SHA512 
cb1ace1e6fcc9112c71c221d24b80dea62245b908037f5f1065b899c62142c568f0e3410a06210ddb599f7771b56ea8acd1c7b5070893f4effb07cfd4b61f8e4
 DIST drogon-1.9.4.tar.gz 612364 BLAKE2B 
d22d594f64423ee2db271f8b0b7242bffb0d9099e0aad9a6806e3d036d89f992da05dc26d3d2652bc5e2838524f031552913a32eb092ea49b4c9c656c687eae2
 SHA512 
0c58ed45aacbfd1916bbd9c52ecbd203abdc1032c7d6f908750a188443e293d749705d35c2b56eab54e30f36cc606b2437889e11a482ebda34d36035e8221499
+DIST drogon-1.9.5.tar.gz 616261 BLAKE2B 
0e34398be264d58b90b1e3545aeed0e2aefe17258b7007f69f103ba4b281226c71a6aac2b7f98c8d58603ba896c4ddc31e215cea8d943a88d2bf519d049a03d1
 SHA512 
453b0d1af2cd7e567539cf8512d87961d9285c3ac1cbeb58d49c27571c7247390b99cc7ea5ddb87c969c5638bcf7a958b9c4a2649c3d89ff7e081e278de33f6f
 DIST trantor-1.5.17.tar.gz 155603 BLAKE2B 
25631b3d8882cec58ff8eea2b449e805f846653d79af41a87b6ead6fff5c32dfc40559cdc734f51505a8ca1100b215cb8d66fa5fc5bf5baa96d6a3e93499a330
 SHA512 
43202240968b90d0e6d211d3b7a918567587e4ad26c360848efee2661cc1d49d35de408db5e2ff7314be879faac99ffa29ffa1f3735f9606d95874130db05250
 DIST trantor-1.5.18.tar.gz 155626 BLAKE2B 
7fdd5fdd310b783dbc23be7e3594fe3e4e5135c1fcd7c9c96e153ff28397e543a4be50153e54f4a4f648de21d6c9ca5ffa85518806b7e6d91485956f3b3627b3
 SHA512 
2dba27efad95155a76968959d9bd2510be8502b9424716493f385aebbce2481553cc8fae283076029aed4bef6f0aadb0bec3f9acb98fbca3ef4d49b936558f8c
+DIST trantor-1.5.19.tar.gz 156467 BLAKE2B 
9683cc3691389a48be1060e05c96329f826b976b4090b869d5ea097b30b33d22bd1f5373987d5900f5f2f587227eb59c442bbfb0126cce1636887472352af948
 SHA512 
76264df770b14702cae88bb77c8e863e85eb034fd14bb062d3414f981b759be61bff3ce5aa1c8cca44bf0ca0b3568ed77248c9986eb23b6715631cdae9445a02

diff --git a/dev-cpp/drogon/drogon-1.9.5.ebuild 
b/dev-cpp/drogon/drogon-1.9.5.ebuild
new file mode 100644
index 000000000..0565c3de1
--- /dev/null
+++ b/dev-cpp/drogon/drogon-1.9.5.ebuild
@@ -0,0 +1,92 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+MY_TRANTOR_V="1.5.19" # NOTE: needs to be updated on each bump
+
+DESCRIPTION="C++14/17 based HTTP web application framework"
+HOMEPAGE="https://github.com/drogonframework/drogon";
+SRC_URI="
+       https://github.com/drogonframework/drogon/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+       test? ( 
https://github.com/an-tao/trantor/archive/v${MY_TRANTOR_V}.tar.gz -> 
trantor-${MY_TRANTOR_V}.tar.gz )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+brotli doc examples mariadb postgres redis sqlite spdlog test +yaml"
+# REQUIRED_USE="test? ( postgres sqlite mariadb )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=dev-cpp/trantor-${MY_TRANTOR_V}:=
+       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 )
+       elibc_Darwin? ( sys-libs/native-uuid )
+       elibc_SunOS? ( sys-libs/libuuid )
+       !elibc_Darwin? ( !elibc_SunOS? (
+               sys-apps/util-linux
+       ) )
+       spdlog? (
+               dev-libs/spdlog:=
+               dev-libs/libfmt:=
+       )
+       yaml? ( dev-cpp/yaml-cpp:= )
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-cpp/gtest )
+"
+BDEPEND="doc? ( app-text/doxygen )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.8.4-fix-test-build.patch )
+
+DOCS=( CONTRIBUTING.md ChangeLog.md README.md README.zh-CN.md README.zh-TW.md )
+
+src_unpack() {
+       default
+
+       # the cert is in the trantor submodule normally, but we unbundle that
+       if use test; then
+               mkdir -p ${P}/trantor/trantor/tests || die
+               cp -v trantor-${MY_TRANTOR_V}/trantor/tests/server.{crt,key} \
+                       ${P}/trantor/trantor/tests/ \
+                       || die "could not copy test certificate and/or key"
+       fi
+}
+
+src_configure() {
+       use doc && HTML_DOCS=( "${BUILD_DIR}/docs/drogon/html/." )
+
+       local -a mycmakeargs=(
+               -DBUILD_DOC=$(usex doc)
+               -DBUILD_EXAMPLES=NO
+               -DBUILD_POSTGRESQL=$(usex postgres)
+               -DBUILD_MYSQL=$(usex mariadb)
+               -DBUILD_SQLITE=$(usex sqlite)
+               -DBUILD_REDIS=$(usex redis)
+               -DBUILD_TESTING=$(usex test)
+               -DBUILD_BROTLI=$(usex brotli)
+               -DBUILD_YAML_CONFIG=$(usex yaml)
+               -DUSE_SUBMODULE=NO
+               $(cmake_use_find_package doc Doxygen)
+               -DUSE_SPDLOG=$(usex spdlog)
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       use examples && DOCS+=( "${S}/examples" )
+       docompress -x /usr/share/doc/${PF}/examples
+
+       cmake_src_install
+}

Reply via email to