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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C83BB1586A6 for ; Tue, 17 Aug 2021 16:46:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C067E07FA; Tue, 17 Aug 2021 16:46:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8C640E0809 for ; Tue, 17 Aug 2021 16:46:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 721D1335D20 for ; Tue, 17 Aug 2021 16:46:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0DD048B3 for ; Tue, 17 Aug 2021 16:46:10 +0000 (UTC) From: "Jian Lin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jian Lin" Message-ID: <1629148115.adce6ec38af302335c76c031a4806e0b24ba4caa.jian@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/drogon/, dev-cpp/drogon/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-cpp/drogon/Manifest dev-cpp/drogon/drogon-1.7.1.ebuild dev-cpp/drogon/files/drogon-1.7.1_GNUInstallDirs.patch dev-cpp/drogon/metadata.xml X-VCS-Directories: dev-cpp/drogon/ dev-cpp/drogon/files/ X-VCS-Committer: jian X-VCS-Committer-Name: Jian Lin X-VCS-Revision: adce6ec38af302335c76c031a4806e0b24ba4caa X-VCS-Branch: master Date: Tue, 17 Aug 2021 16:46:10 +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: 24735cb3-6ce9-4171-aa9c-1ab3e29056b3 X-Archives-Hash: 675eaa67c1ba624340570420256d132c commit: adce6ec38af302335c76c031a4806e0b24ba4caa Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Mon Aug 16 21:02:34 2021 +0000 Commit: Jian Lin outlook com> CommitDate: Mon Aug 16 21:08:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=adce6ec3 dev-cpp/drogon: New package. C++14/17 based HTTP web application framework Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> dev-cpp/drogon/Manifest | 1 + dev-cpp/drogon/drogon-1.7.1.ebuild | 64 ++++++++++++++++++++++ .../drogon/files/drogon-1.7.1_GNUInstallDirs.patch | 33 +++++++++++ dev-cpp/drogon/metadata.xml | 17 ++++++ 4 files changed, 115 insertions(+) diff --git a/dev-cpp/drogon/Manifest b/dev-cpp/drogon/Manifest new file mode 100644 index 000000000..58b45827d --- /dev/null +++ b/dev-cpp/drogon/Manifest @@ -0,0 +1 @@ +DIST drogon-1.7.1.tar.gz 465299 BLAKE2B 72ddcc050333f6ff8d0749c3de5a4db80cf5f36613253d90abcbf8983aa53db44a6a4e71b73cc42c0596684b7a56a1cb69faa348652c0fc673e6be7d3ad383b3 SHA512 8a7cb8aa87cc48b130a5b47558b3c9e2a0af13cd8b76681e42d14a366dac75c88e389f2e2fe03b4f0f1e0e31971a47eee2bf5df8fcb4b79f8ed00d2a592315b6 diff --git a/dev-cpp/drogon/drogon-1.7.1.ebuild b/dev-cpp/drogon/drogon-1.7.1.ebuild new file mode 100644 index 000000000..ce75c0321 --- /dev/null +++ b/dev-cpp/drogon/drogon-1.7.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 examples mariadb postgres redis sqlite +ssl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-cpp/trantor + 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 ) + ssl? ( dev-libs/openssl ) +" +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) + +" + +PATCHES=( "${FILESDIR}/${PN}-1.7.1_GNUInstallDirs.patch" ) + +DOCS=( CONTRIBUTING.md ChangeLog.md README.md README.zh-CN.md README.zh-TW.md ) + +src_prepare() { + sed -i '/add_subdirectory(trantor)/d' CMakeLists.txt || die + sed -i '/${PROJECT_SOURCE_DIR}\/trantor\/trantor\/tests\/server.pem/d' \ + lib/tests/CMakeLists.txt || die + use brotli || sed -i '/find_package(Brotli)/d' CMakeLists.txt || die + use ssl || sed -i '/find_package(OpenSSL)/d' CMakeLists.txt || die + + use examples && DOCS+=( "${S}/examples" ) + + cmake_src_prepare +} + +src_configure() { + # NOTE: Next version has BUILD_DOC switch. + local -a mycmakeargs=( + "-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)" + ) + + cmake_src_configure +} diff --git a/dev-cpp/drogon/files/drogon-1.7.1_GNUInstallDirs.patch b/dev-cpp/drogon/files/drogon-1.7.1_GNUInstallDirs.patch new file mode 100644 index 000000000..bd52972bb --- /dev/null +++ b/dev-cpp/drogon/files/drogon-1.7.1_GNUInstallDirs.patch @@ -0,0 +1,33 @@ +From 318327104fa444f764caccc9ad7ae40ae3452ea9 Mon Sep 17 00:00:00 2001 +From: tastytea +Date: Mon, 16 Aug 2021 22:19:46 +0200 +Subject: [PATCH] cmake: Use GNUInstallDirs to figure out install dirs. + +--- + CMakeLists.txt | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 821cf09..9634bfc 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -33,11 +33,12 @@ set(DROGON_VERSION + ${DROGON_MAJOR_VERSION}.${DROGON_MINOR_VERSION}.${DROGON_PATCH_VERSION}) + set(DROGON_VERSION_STRING "${DROGON_VERSION}") + ++include(GNUInstallDirs) + # Offer the user the choice of overriding the installation directories +-set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries") +-set(INSTALL_BIN_DIR bin CACHE PATH "Installation directory for executables") +-set(INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files") +-set(DEF_INSTALL_DROGON_CMAKE_DIR lib/cmake/Drogon) ++set(INSTALL_LIB_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Installation directory for libraries") ++set(INSTALL_BIN_DIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Installation directory for executables") ++set(INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "Installation directory for header files") ++set(DEF_INSTALL_DROGON_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/Drogon) + set(INSTALL_DROGON_CMAKE_DIR ${DEF_INSTALL_DROGON_CMAKE_DIR} + CACHE PATH "Installation directory for cmake files") + +-- +2.31.1 + diff --git a/dev-cpp/drogon/metadata.xml b/dev-cpp/drogon/metadata.xml new file mode 100644 index 000000000..80e637052 --- /dev/null +++ b/dev-cpp/drogon/metadata.xml @@ -0,0 +1,17 @@ + + + + + gentoo@tastytea.de + Ronny (tastytea) Gutbrod + + + https://drogon.docsforge.com/ + + + Enable support for brotli compression + Add support for the mariadb database + Add support for the Redis database via + dev-libs/hiredis + +