You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
803 B

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="High-performance messaging interface for distributed applications"
HOMEPAGE="https://nanomsg.org/"
SRC_URI="https://github.com/nanomsg/nanomsg/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/5.0.0"
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~riscv x86"
IUSE="doc"
BDEPEND="doc? ( dev-ruby/asciidoctor )"
src_prepare() {
# Old CPUs like HPPA fails test because of timeout
sed -i \
-e '/inproc_shutdown/s/5/80/' \
-e '/ws_async_shutdown/s/5/80/' \
-e '/ipc_shutdown/s/30/80/' CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DNN_STATIC_LIB=OFF
-DNN_ENABLE_DOC=$(usex doc)
)
cmake_src_configure
}