blob: 93a028638deb5fd2706839b1dca46cb2697da197 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Asynchronous HTTP/WebSocket server C++14 library"
HOMEPAGE="https://github.com/Stiffstream/restinio"
SRC_URI="https://github.com/Stiffstream/${PN}/archive/v.${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-v.${PV}/dev"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
# RESTinio is not compatible with catch2-v3
# https://github.com/Stiffstream/restinio/issues/158
RDEPEND="
dev-cpp/asio
<=dev-cpp/catch-3
dev-libs/boost
dev-libs/libfmt
dev-libs/libpcre
dev-libs/libpcre2
dev-libs/openssl
net-libs/http-parser
sys-libs/zlib
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
"-DRESTINIO_BENCH=OFF"
"-DRESTINIO_FIND_DEPS=ON"
"-DRESTINIO_SAMPLE=OFF"
"-DRESTINIO_TEST=$(usex test ON OFF)"
"-DRESTINIO_USE_EXTERNAL_HTTP_PARSER=ON"
"-DRESTINIO_USE_EXTERNAL_SOBJECTIZER=ON"
)
cmake_src_configure
}
src_test() {
# Some tests open a socket on port 8085
# Running these tests in parallel will cause
# failures since the port is already in use
cmake_src_test -j 1
}
|