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.
gentoo-overlay/dev-libs/nanomsg/nanomsg-0.9.ebuild

40 lines
801 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-multilib
DESCRIPTION="High-performance messaging interface for distributed applications"
HOMEPAGE="http://nanomsg.org/"
SRC_URI="https://github.com/nanomsg/nanomsg/archive/${PV}-beta.tar.gz"
LICENSE="MIT"
SLOT="0/5.0.0"
KEYWORDS="~amd64"
IUSE="doc static-libs"
DEPEND="doc? ( dev-ruby/asciidoctor )"
RDEPEND=""
S="${WORKDIR}/${P}-beta"
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
}