blob: b59b5e224ccd18bc59da6b55705b788e112fc122 (
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
|
# Copyright 1999-2024 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/6.0.1"
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/10/80/' \
-e '/ws_async_shutdown/s/10/80/' \
-e '/ipc_shutdown/s/40/80/' CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DNN_STATIC_LIB=OFF
-DNN_ENABLE_DOC=$(usex doc)
)
cmake_src_configure
}
|