blob: 73f7851f7dd1e52e8c60252ed1d7fbbe19099493 (
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-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-multilib
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 ~x86"
IUSE="doc static-libs"
DEPEND="doc? ( dev-ruby/asciidoctor )"
RDEPEND=""
multilib_src_configure() {
local mycmakeargs=(
-DNN_STATIC_LIB=$(usex static-libs ON OFF)
)
if multilib_is_native_abi; then
mycmakeargs+=(
-DNN_ENABLE_DOC=$(usex doc ON OFF)
)
else
mycmakeargs+=(
-DNN_ENABLE_DOC=OFF
-DNN_ENABLE_TOOLS=OFF
-DNN_ENABLE-NANOCAT=OFF
)
fi
cmake-utils_src_configure
}
|