56 lines
1.0 KiB
Bash
56 lines
1.0 KiB
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="RESTinio is a C++17 library that gives you an embedded HTTP/Websocket server"
|
|
HOMEPAGE="https://stiffstream.com"
|
|
|
|
if [[ "${PV}" == 9999* ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/Stiffstream/restinio/${PN}"
|
|
else
|
|
SRC_URI="https://github.com/Stiffstream/restinio/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~x86"
|
|
fi
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
DEPEND="
|
|
dev-libs/libfmt
|
|
dev-cpp/asio
|
|
net-libs/llhttp
|
|
dev-cpp/expected-lite
|
|
dev-cpp/catch
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
"
|
|
|
|
S="${WORKDIR}/${P}/dev"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DRESTINIO_TEST=Off
|
|
-DRESTINIO_SAMPLE=Off
|
|
-DRESTINIO_BENCHMARK=Off
|
|
-DRESTINIO_WITH_SOBJECTIZER=Off
|
|
-DRESTINIO_DEP_STANDALONE_ASIO=system
|
|
-DRESTINIO_DEP_LLHTTP=system
|
|
-DRESTINIO_DEP_FMT=system
|
|
-DRESTINIO_DEP_EXPECTED_LITE=system
|
|
-Wno-dev
|
|
)
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cmake_src_install
|
|
}
|