mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
dev-cpp/drogon: Remove old ebuild.
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST drogon-1.7.1.tar.gz 465299 BLAKE2B 72ddcc050333f6ff8d0749c3de5a4db80cf5f36613253d90abcbf8983aa53db44a6a4e71b73cc42c0596684b7a56a1cb69faa348652c0fc673e6be7d3ad383b3 SHA512 8a7cb8aa87cc48b130a5b47558b3c9e2a0af13cd8b76681e42d14a366dac75c88e389f2e2fe03b4f0f1e0e31971a47eee2bf5df8fcb4b79f8ed00d2a592315b6
|
||||
DIST drogon-1.7.2.tar.gz 475266 BLAKE2B dff7cdf76b4d30a7cd44f50efcf3b683eefe06e7b0be1fe167f1891370c55ee76b8f6e14582cbfdf0f2b129211301fd9b97e4dc4db313f28fccb21ca6271a57a SHA512 0546a7a6a1a1e9e1ec068cd45d747ccdd62a9bd9042db4941c004fbe795d051b8d115a71f8000352a2d284f141ebad9b66438dfabc255bb24c92bd5a3dc0ed8a
|
||||
DIST drogon-1.7.3.tar.gz 483306 BLAKE2B b5b89f678f285de6533480d403725f172b40f1c97057b3234dc5a9456c1e13f3d3b2a11769e78a16199495584a9a411ccdd375090b3770acdff24054bba75060 SHA512 20146bf59898704f3b44778fa46e919d9124ef8a33eb1cfcce7f437507c20920829a0074e1c9e2493a1764b8a36b1a91b03f117fd78e740253b15d2146dca628
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
# 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
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
From 318327104fa444f764caccc9ad7ae40ae3452ea9 Mon Sep 17 00:00:00 2001
|
||||
From: tastytea <tastytea@tastytea.de>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user