# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake DESCRIPTION="An implementation of Actor, Publish-Subscribe, and CSP" HOMEPAGE="https://github.com/Stiffstream/sobjectizer" SRC_URI="https://github.com/Stiffstream/${PN}/archive/v.${PV}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}/${PN}-v.${PV}" CMAKE_USE_DIR="${S}/dev" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" IUSE="examples test" RESTRICT="!test? ( test )" PATCHES=( "${FILESDIR}/cmake-5.7.4.3.patch" ) src_configure() { local mycmakeargs=( $(usex examples -DBUILD_EXAMPLES=ON -DBUILD_EXAMPLES=OFF) $(usex test -DBUILD_TESTS=ON -DBUILD_TESTS=OFF) ) cmake_src_configure }