blob: 701cfcf5915de974e85792154805717c3e3a94be (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit cmake-multilib
bench_ref="2c45d8c1c2b934e062baf378809201ac66d169a7"
cash_ref="38bcdedf7df5536899dd4373969e6653380d2a86"
sash_ref="75e68c37ccafbcb7b7da8c0afe564d59bcf10594"
opencl_ref="200eb3f43fb243515d0652324e6d606dede3f676"
riac_ref="83de14803c841a7113c4b13c94624a55f3eec984"
nexus_ref="254fbf76f83bb06e6001943b78838644345211a4"
DESCRIPTION="The C++ Actor Framework (CAF)"
HOMEPAGE="https://actor-framework.org/"
SRC_URI="https://github.com/actor-framework/actor-framework/archive/${PV}.tar.gz -> ${P}.tar.gz
benchmarks? ( https://github.com/actor-framework/benchmarks/archive/${bench_ref}.tar.gz -> CAF_${PV}-benchmarks.tar.gz )
cash? ( https://github.com/actor-framework/cash/archive/${cash_ref}.tar.gz -> CAF_${PV}-cash.tar.gz
https://github.com/Neverlord/sash/archive/${sash_ref}.tar.gz -> CAF_${PV}-sash_cash.tar.gz )
nexus? ( https://github.com/actor-framework/nexus/archive/${nexus_ref}.tar.gz -> CAF_${PV}-nexus.tar.gz )
opencl? ( https://github.com/actor-framework/opencl/archive/${opencl_ref}.tar.gz -> CAF_${PV}-opencl.tar.gz )
riac? ( https://github.com/actor-framework/riac/archive/${riac_ref}.tar.gz -> CAF_${PV}-riac.tar.gz )"
LICENSE="|| ( Boost-1.0 BSD )"
SLOT="0/14.5"
KEYWORDS="~amd64 ~x86"
IUSE="boost benchmarks cash debug doc examples +mem_management nexus opencl riac static test"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen
dev-texlive/texlive-latex
dev-tex/hevea
)"
RDEPEND="boost? ( dev-libs/boost[${MULTILIB_USEDEP}] )
net-misc/curl[${MULTILIB_USEDEP}]
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )"
REQUIRED_USE="cash? ( riac )"
src_unpack() {
unpack ${A}
for i in cash nexus; do
if use ${i}; then
mv "${i}"*/* "${S}/${i}/" || die "died copying sources for ${i}"
fi
done
for i in opencl riac; do
if use ${i}; then
mv "${i}"*/* "${S}/libcaf_${i}/" || die "died copying sources for ${i}"
fi
done
if use cash; then
mv sash*/* "${S}/cash/sash/" || die "died copying sources for sash"
fi
if use benchmarks; then
mv "${WORKDIR}/benchmarks-"* "${WORKDIR}/benchmarks" || die "died moving benchmarks"
fi
}
src_prepare() {
find "${S}" -name CMakeLists.txt \
-exec sed -i 's#\(install(.* DESTINATION \)lib#\1${LIBRARY_OUTPUT_PATH}#g' \{\} + \
|| die
rm examples/CMakeLists.txt || die
append-cxxflags "-std=c++11 -pthread -Wextra -Wall -pedantic"
append-cflags "-std=c11 -pthread -Wextra -Wall -pedantic"
cmake-utils_src_prepare
}
multilib_src_configure() {
local mycmakeargs=(
-DCAF_NO_EXAMPLES=ON
-DCAF_NO_BENCHMARKS=ON
-DCAF_USE_ASIO=$(usex boost)
-DCAF_NO_CASH=$(usex cash OFF ON)
-DCAF_LOG_LEVEL=$(usex debug 3 0)
-DCAF_ENABLE_RUNTIME_CHECKS=$(usex debug)
-DCAF_ENABLE_ADDRESS_SANITIZER=$(usex debug)
-DCAF_NO_MEM_MANAGEMENT=$(usex mem_management OFF ON)
-DCAF_NO_NEXUS=$(usex nexus OFF ON)
-DCAF_NO_OPENCL=$(usex opencl OFF ON)
-DCAF_NO_RIAC=$(usex riac OFF ON)
-DCAF_BUILD_STATIC=$(usex static)
-DCAF_NO_UNIT_TESTS=$(usex test OFF ON )
-DLIBRARY_OUTPUT_PATH="$(get_libdir)"
)
cmake-utils_src_configure
}
multilib_src_compile() {
cmake-utils_src_compile
if use doc; then
emake doc
emake -C "${S}/manual/build-pdf"
emake -C "${S}/manual/build-html"
fi
}
multilib_src_install() {
DOCS=( README.md )
use examples && DOCS+=( "${S}/examples" )
use benchmarks && DOCS+=( "${WORKDIR}/benchmarks/" )
if use doc; then
HTML_DOCS=( "${S}/html/"* )
for i in pdf html; do
DOCS+=( "${S}"/manual/build-${i}/manual.${i} )
done
fi
cmake-utils_src_install
}
|