1 |
commit: bc7455886c7fcca54684d558cab88937608e2319 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Mar 26 07:33:21 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 07:34:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc745588 |
7 |
|
8 |
sys-cluster/dyninst: add 12.1.0 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-cluster/dyninst/Manifest | 1 + |
13 |
sys-cluster/dyninst/dyninst-12.1.0.ebuild | 60 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/dyninst/Manifest b/sys-cluster/dyninst/Manifest |
17 |
index f17d4e2ab..b58638aa2 100644 |
18 |
--- a/sys-cluster/dyninst/Manifest |
19 |
+++ b/sys-cluster/dyninst/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST dyninst-11.0.1.tar.gz 9059074 BLAKE2B 5ef230d8c5c3253aa54c01387fbb8c6f1d57ea43cb7779e3761306c916cbcd00999ee48cb6d76daba3af45dca6388dcc4c71b527f176039a32130c1ef8f6d074 SHA512 9c439be0252edae0ed3fcfa05b38595b614a91b6627afa85db126df32d5c5de5dc9413a70caf52bee7ac2349d24947626f6370f0dbf19413916c39e01679444f |
22 |
+DIST dyninst-12.1.0.tar.gz 8572639 BLAKE2B 74c835a3c6c6cc9a90d416fff0ea3b4039a55941cb3a7fd63cebd19420a690d6b4fd3d574b728cc9cac53034a6075ffe2a6e9885a7aa87e2d9d0fd798f5e9a29 SHA512 ec09b83f288afefd6a30a3253c91554d421305a43c2f2384435207dcabf523d5498d64873f876817c3108c3fc0a43fd4c48ce2c1ca873c73fb98a2d823446549 |
23 |
|
24 |
diff --git a/sys-cluster/dyninst/dyninst-12.1.0.ebuild b/sys-cluster/dyninst/dyninst-12.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..7cfdd0b74 |
27 |
--- /dev/null |
28 |
+++ b/sys-cluster/dyninst/dyninst-12.1.0.ebuild |
29 |
@@ -0,0 +1,60 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
36 |
+ |
37 |
+inherit cmake |
38 |
+ |
39 |
+DESCRIPTION="Tools for binary instrumentation, analysis, and modification" |
40 |
+HOMEPAGE=" |
41 |
+ https://dyninst.org/dyninst |
42 |
+ https://github.com/dyninst/dyninst |
43 |
+" |
44 |
+SRC_URI="https://github.com/dyninst/dyninst/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="LGPL-2.1+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="doc openmp valgrind" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ dev-cpp/tbb |
53 |
+ dev-libs/boost:= |
54 |
+ virtual/libelf |
55 |
+ virtual/mpi |
56 |
+ valgrind? ( dev-util/valgrind ) |
57 |
+" |
58 |
+DEPEND="${RDEPEND}" |
59 |
+BDEPEND="doc? ( dev-texlive/texlive-latex )" |
60 |
+ |
61 |
+src_configure() { |
62 |
+ local mycmakeargs=( |
63 |
+ -DENABLE_STATIC_LIBS=NO |
64 |
+ -DSTERILE_BUILD=ON |
65 |
+ |
66 |
+ -DADD_VALGRIND_ANNOTATIONS=$(usex valgrind) |
67 |
+ -DBUILD_DOCS=$(usex doc) |
68 |
+ -DUSE_OpenMP=$(usex openmp) |
69 |
+ ) |
70 |
+ cmake_src_configure |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ cmake_src_install |
75 |
+ |
76 |
+ einstalldocs |
77 |
+ if use doc; then |
78 |
+ mv "${ED}"/usr/share/doc/*.pdf "${ED}/usr/share/doc/${PF}" || die |
79 |
+ fi |
80 |
+ |
81 |
+ if [[ ! -e "${ED}/usr/$(get_libdir)" ]]; then |
82 |
+ mv "${ED}/usr/lib" "${ED}/usr/$(get_libdir)" || die |
83 |
+ fi |
84 |
+ |
85 |
+ mkdir -p "${ED}/usr/include/dyninst" || die |
86 |
+ mv "${ED}"/usr/include/*.h* "${ED}/usr/include/dyninst" || die |
87 |
+ |
88 |
+ find "${ED}" -name '*.a' -delete || die |
89 |
+} |