mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
net-libs/usockets: update EAPI 7 -> 8
Also: - avoid downloading submodules for live (boringssl is quite bulky) - fix test Closes: https://bugs.gentoo.org/820296 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Copyright 2019-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
@@ -11,6 +11,7 @@ HOMEPAGE="https://github.com/uNetworking/uSockets"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/uNetworking/uSockets.git"
|
||||
EGIT_SUBMODULES=( '-*' ) # We don't use any of bundled libraries from submodules
|
||||
else
|
||||
SRC_URI="https://github.com/uNetworking/uSockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
@@ -19,9 +20,10 @@ fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="asio libuv +ssl test"
|
||||
REQUIRED_USE="?? ( asio libuv ) test? ( ssl )"
|
||||
RESTRICT="!test? ( test )"
|
||||
IUSE="asio libuv +ssl"
|
||||
REQUIRED_USE="?? ( asio libuv )"
|
||||
# Our only half-assed test requires ssl
|
||||
RESTRICT="!ssl? ( test )"
|
||||
|
||||
DEPEND="
|
||||
asio? ( dev-cpp/asio:= )
|
||||
@@ -47,6 +49,18 @@ src_configure() {
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local saved_ulimit=$(ulimit -n)
|
||||
# see https://bugs.gentoo.org/820296
|
||||
if ! ulimit -n 10240; then
|
||||
ewarn "Failed to set ulimit; ${PN} require ulimit -n 10240 to reliably pass tests"
|
||||
ulimit -n 2048 || die "${PN} requires ulimit -n set to at least 2048 for tests"
|
||||
fi
|
||||
|
||||
emake test
|
||||
ulimit -n "${saved_ulimit}" || die "Failed restore ulimit to its original value"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
einstalldocs
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Copyright 2019-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
@@ -11,6 +11,7 @@ HOMEPAGE="https://github.com/uNetworking/uSockets"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/uNetworking/uSockets.git"
|
||||
EGIT_SUBMODULES=( '-*' ) # We don't use any of bundled libraries from submodules
|
||||
else
|
||||
SRC_URI="https://github.com/uNetworking/uSockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
@@ -19,9 +20,10 @@ fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="asio libuv +ssl test"
|
||||
REQUIRED_USE="?? ( asio libuv ) test? ( ssl )"
|
||||
RESTRICT="!test? ( test )"
|
||||
IUSE="asio libuv +ssl"
|
||||
REQUIRED_USE="?? ( asio libuv )"
|
||||
# Our only half-assed test requires ssl
|
||||
RESTRICT="!ssl? ( test )"
|
||||
|
||||
DEPEND="
|
||||
asio? ( dev-cpp/asio:= )
|
||||
@@ -47,6 +49,18 @@ src_configure() {
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local saved_ulimit=$(ulimit -n)
|
||||
# see https://bugs.gentoo.org/820296
|
||||
if ! ulimit -n 10240; then
|
||||
ewarn "Failed to set ulimit; ${PN} require ulimit -n 10240 to reliably pass tests"
|
||||
ulimit -n 2048 || die "${PN} requires ulimit -n set to at least 2048 for tests"
|
||||
fi
|
||||
|
||||
emake test
|
||||
ulimit -n "${saved_ulimit}" || die "Failed restore ulimit to its original value"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
einstalldocs
|
||||
|
||||
Reference in New Issue
Block a user