Install this version:
emerge -a =dev-cpp/drogon-1.9.5
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-cpp/drogon-1.9.5
Or alternatively:
emerge --autounmask-write -a =dev-cpp/drogon-1.9.5
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.9.5 | 8 | ~amd64 | 0 |
# Copyright 2021-2025 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:=
virtual/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
}
Manage flags for this package:
euse -i <flag> -p dev-cpp/drogon |
euse -E <flag> -p dev-cpp/drogon |
euse -D <flag> -p dev-cpp/drogon
>=dev-cpp/trantor-1.5.19:= dev-libs/jsoncpp:= virtual/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:= ) test? ( dev-cpp/gtest )
>=dev-cpp/trantor-1.5.19:= dev-libs/jsoncpp:= virtual/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:= )
doc? ( app-text/doxygen )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | drogon-1.9.5.tar.gz | 616261 bytes | https://github.com/drogonframework/drogon/archive/v1.9.5.tar.gz |
| DIST | trantor-1.5.19.tar.gz | 156467 bytes | https://github.com/an-tao/trantor/archive/v1.5.19.tar.gz |