blob: 7ad15d6f2f3351427e7af3006d2ea89663247a04 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
inherit cmake
DESCRIPTION="Tools for binary instrumentation, analysis, and modification"
HOMEPAGE="
https://dyninst.org/dyninst
https://github.com/dyninst/dyninst
"
SRC_URI="https://github.com/dyninst/dyninst/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc openmp valgrind"
RDEPEND="
<dev-cpp/tbb-2021
dev-libs/boost:=
virtual/libelf
virtual/mpi
valgrind? ( dev-util/valgrind )
"
DEPEND="${RDEPEND}"
BDEPEND="doc? ( dev-texlive/texlive-latex )"
src_configure() {
local mycmakeargs=(
-DENABLE_STATIC_LIBS=NO
-DSTERILE_BUILD=ON
-DADD_VALGRIND_ANNOTATIONS=$(usex valgrind)
-DBUILD_DOCS=$(usex doc)
-DUSE_OpenMP=$(usex openmp)
)
cmake_src_configure
}
src_install() {
cmake_src_install
einstalldocs
if use doc; then
mv "${ED}"/usr/share/doc/*.pdf "${ED}/usr/share/doc/${PF}" || die
fi
if [[ ! -e "${ED}/usr/$(get_libdir)" ]]; then
mv "${ED}/usr/lib" "${ED}/usr/$(get_libdir)" || die
fi
mkdir -p "${ED}/usr/include/dyninst" || die
mv "${ED}"/usr/include/*.h* "${ED}/usr/include/dyninst" || die
find "${ED}" -name '*.a' -delete || die
}
|