Install this version:
emerge -a =net-libs/restbed-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-libs/restbed-9999
Or alternatively:
emerge --autounmask-write -a =net-libs/restbed-9999
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="For applications that require seamless and secure communication over HTTP"
HOMEPAGE="https://github.com/Corvusoft/${PN}"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Corvusoft/${PN}.git"
EGIT_SUBMODULES=()
else
MY_PV=$(replace_version_separator 2 '-')
MY_P=${PN}-${MY_PV}
SRC_URI="https://github.com/Corvusoft/${PN}/archive/${MY_PV^^}.tar.gz -> ${MY_P}.tar.gz"
S=${WORKDIR}/${PN}-${MY_PV^^}
fi
KEYWORDS="~amd64 ~x86"
LICENSE="AGPL-3"
SLOT="0"
IUSE="examples doc ssl static-libs test"
CMAKE_MIN_VERSION="2.8.10"
RDEPEND="dev-cpp/asio
dev-cpp/kashmir
virtual/zlib
examples? (
sys-libs/pam
virtual/logger
)
ssl? ( dev-libs/openssl:= )"
DEPEND="${RDEPEND}
test? ( dev-cpp/catch )"
src_prepare() {
if use doc ; then DOCS=( README.md
documentation/API.md
documentation/DESIGN.md
documentation/STANDARDS.md
documentation/UML.md
)
else rm README.md
fi
if use examples; then
sed -r -i \
-e 's/(set\( EXAMPLE_INSTALL_DIR ).*\)/\1\$\{CMAKE_INSTALL_PREFIX\}\/share\/corvusoft\/restbed \)/' \
example/CMakeLists.txt || die
fi
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED=$(usex static-libs OFF ON)
-DBUILD_TESTS=$(usex test ON OFF)
)
for x in {examples,ssl}; do
mycmakeargs+=( -DBUILD_${x^^}=$(usex $x ON OFF) )
done
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p net-libs/restbed |
euse -E <flag> -p net-libs/restbed |
euse -D <flag> -p net-libs/restbed
dev-cpp/asio dev-cpp/kashmir virtual/zlib examples? ( sys-libs/pam virtual/logger ) ssl? ( dev-libs/openssl:= ) test? ( dev-cpp/catch )
dev-cpp/asio dev-cpp/kashmir virtual/zlib examples? ( sys-libs/pam virtual/logger ) ssl? ( dev-libs/openssl:= )