mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
enable tests tests fail with asio but pass with either libuv or no flag (default epoll) Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
56 lines
1.4 KiB
Bash
56 lines
1.4 KiB
Bash
# Copyright 2019-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="tiny eventing, networking & crypto for async applications"
|
|
HOMEPAGE="https://github.com/uNetworking/uSockets"
|
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/uNetworking/uSockets.git"
|
|
else
|
|
COMMIT="c2c1bbfa1644f1f6eb7fc9375650f41c5f9b7b06"
|
|
SRC_URI="https://github.com/uNetworking/uSockets/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
S="${WORKDIR}/uSockets-${COMMIT}"
|
|
fi
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
IUSE="asio libuv +ssl test"
|
|
REQUIRED_USE="?? ( asio libuv ) test? ( ssl )"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
DEPEND="
|
|
asio? ( dev-cpp/asio[ssl(+)?] )
|
|
libuv? ( dev-libs/libuv )
|
|
ssl? ( >=dev-libs/openssl-1.1.0 )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-0.8.1_p20211023-Makefile.patch"
|
|
"${FILESDIR}/${PN}-0.8.1_p20211023-pkg-config.patch"
|
|
"${FILESDIR}/${PN}-0.8.1_p20211023-gen-ssl-config.patch"
|
|
"${FILESDIR}/${PN}-0.8.1_p20211023-hammer-test.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
tc-export CC CXX AR
|
|
export VERSION="${PV%_*}" \
|
|
LIB="$(get_libdir)" \
|
|
WITH_OPENSSL="$(usex ssl 1 0)" \
|
|
WITH_LIBUV="$(usex libuv 1 0)" \
|
|
WITH_ASIO="$(usex asio 1 0)"
|
|
default
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
einstalldocs
|
|
rm -f "${ED}/usr/$(get_libdir)/libusockets.a" || die
|
|
}
|