From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BACF0158043 for ; Fri, 12 Apr 2024 23:09:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BAA0E2A3E; Fri, 12 Apr 2024 23:09:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1418E2A3E for ; Fri, 12 Apr 2024 23:09:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AE88A343348 for ; Fri, 12 Apr 2024 23:09:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 107FD16D3 for ; Fri, 12 Apr 2024 23:08:59 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1712963312.15f16720e9f9b74677b391de0245acdb10ed7311.tastytea@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/drogon/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-cpp/drogon/Manifest dev-cpp/drogon/drogon-1.9.3.ebuild dev-cpp/drogon/metadata.xml X-VCS-Directories: dev-cpp/drogon/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: 15f16720e9f9b74677b391de0245acdb10ed7311 X-VCS-Branch: dev Date: Fri, 12 Apr 2024 23:08:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 23ec3666-855e-4b4d-a7bc-66beeb255978 X-Archives-Hash: 508c0e283b9ae4ff0cd9fe256adac22a commit: 15f16720e9f9b74677b391de0245acdb10ed7311 Author: tastytea tastytea de> AuthorDate: Fri Apr 12 23:07:29 2024 +0000 Commit: Ronny Gutbrod tastytea de> CommitDate: Fri Apr 12 23:08:32 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=15f16720 dev-cpp/drogon: add 1.9.3 Signed-off-by: tastytea tastytea.de> dev-cpp/drogon/Manifest | 2 + dev-cpp/drogon/drogon-1.9.3.ebuild | 92 ++++++++++++++++++++++++++++++++++++++ dev-cpp/drogon/metadata.xml | 6 +-- 3 files changed, 96 insertions(+), 4 deletions(-) diff --git a/dev-cpp/drogon/Manifest b/dev-cpp/drogon/Manifest index 7029e49a97..ebe276fc83 100644 --- a/dev-cpp/drogon/Manifest +++ b/dev-cpp/drogon/Manifest @@ -1,4 +1,6 @@ DIST drogon-1.9.0.tar.gz 566471 BLAKE2B ce7b64748e8b8022527cdeeb4ad8f52e6179a3c6d80576eddd560bffac947fb7a8c4054410f455102fd07f4ff00a515edbcf6af0cb0af342f06fba7ee2c5a236 SHA512 2732bea50e913bb13b251c03da62e2935dcb8c2e48dcc85286bfe1bf1ecdefb4bfd712d1c6cf00daab15705be1c3b6851a4ee8b5a0c7b7d2341baa2d9500d8a5 DIST drogon-1.9.1.tar.gz 567917 BLAKE2B 2da1c1a433c19388eb6ed9a474369309b02d9200ae275c513923bcef19d2e5a8955c9361467f581ad1b2b65b0d183214b728a2c4280b8ca2f1a36091d5a4e2e7 SHA512 05666166e0b03a6f349a3811ea1014f6e7d8a42a5e749e478502461722a647c6170f5538a4cba9820c3135551d577276094cd96eb0997946c3a37787b531ac49 +DIST drogon-1.9.3.tar.gz 611732 BLAKE2B a78a7f4e4e7bb3b650944f4ab2b50133e907d701df1cbb127ac646ea8006f441f05823254958ae8db3a3b3bc590d9b285d84679fb83e2228ab5a324825fcac6e SHA512 cb1ace1e6fcc9112c71c221d24b80dea62245b908037f5f1065b899c62142c568f0e3410a06210ddb599f7771b56ea8acd1c7b5070893f4effb07cfd4b61f8e4 DIST trantor-1.5.14.tar.gz 143236 BLAKE2B 843c67a3a4dedc8e476115438eae9a0ec99a6739fb5f29c79780c38d8d82dfe4b5add42d3c0c589c0be35662f7d24a89dfe037ac422fe8d53f00975b2a646f84 SHA512 468e5ffe9b47537992b9852ddec7714fb6e63147ff51ecfade7e1b0af02f5231ebc50b71d48d77c188f8d2af77c64c40fcbdc907f4f8d45d488aa2966f9406f9 DIST trantor-1.5.15.tar.gz 153133 BLAKE2B a69e46072269a8664d33d3b3b6575de07c645151a97f60bfe350d52972cf2b48c062a342c7b2ca57566fa213cc56b585b2fdf34b6d0a5f9c533d1c3f6bab2ba6 SHA512 f08bba448229d8121534cade55b74ac0d9cf5deb1c1116794c21fee37f8f8c3b3d5e6618d0806942a9bcf5eb30c87879ddaf1104417fb3fe14de0827670e03e8 +DIST trantor-1.5.17.tar.gz 155603 BLAKE2B 25631b3d8882cec58ff8eea2b449e805f846653d79af41a87b6ead6fff5c32dfc40559cdc734f51505a8ca1100b215cb8d66fa5fc5bf5baa96d6a3e93499a330 SHA512 43202240968b90d0e6d211d3b7a918567587e4ad26c360848efee2661cc1d49d35de408db5e2ff7314be879faac99ffa29ffa1f3735f9606d95874130db05250 diff --git a/dev-cpp/drogon/drogon-1.9.3.ebuild b/dev-cpp/drogon/drogon-1.9.3.ebuild new file mode 100644 index 0000000000..70912e1163 --- /dev/null +++ b/dev-cpp/drogon/drogon-1.9.3.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.17" # 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 +} diff --git a/dev-cpp/drogon/metadata.xml b/dev-cpp/drogon/metadata.xml index 4137a06082..9556c94910 100644 --- a/dev-cpp/drogon/metadata.xml +++ b/dev-cpp/drogon/metadata.xml @@ -12,10 +12,8 @@ Enable support for brotli compression Add support for the mariadb database - - Add support for the Redis database via - dev-libs/hiredis - + Add support for the Redis database via dev-libs/hiredis Add support for yaml config file + enable dev-libs/spdlog logging backend