mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-13 17:13:00 -04:00
sys-cluster/dyninst: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
sys-cluster/dyninst/Manifest
Normal file
1
sys-cluster/dyninst/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST dyninst-11.0.1.tar.gz 9059074 BLAKE2B 5ef230d8c5c3253aa54c01387fbb8c6f1d57ea43cb7779e3761306c916cbcd00999ee48cb6d76daba3af45dca6388dcc4c71b527f176039a32130c1ef8f6d074 SHA512 9c439be0252edae0ed3fcfa05b38595b614a91b6627afa85db126df32d5c5de5dc9413a70caf52bee7ac2349d24947626f6370f0dbf19413916c39e01679444f
|
||||
58
sys-cluster/dyninst/dyninst-11.0.1.ebuild
Normal file
58
sys-cluster/dyninst/dyninst-11.0.1.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
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
|
||||
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=YES
|
||||
|
||||
-DADD_VALGRIND_ANNOTATIONS=$(usex valgrind)
|
||||
-DBUILD_DOCS=$(usex doc)
|
||||
-DUSE_OpenMP=$(usex openmp)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
einstalldocs
|
||||
use doc && mv "${ED}"/usr/share/doc/*.pdf "${ED}/usr/share/doc/${PF}" || die
|
||||
|
||||
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
|
||||
}
|
||||
16
sys-cluster/dyninst/metadata.xml
Normal file
16
sys-cluster/dyninst/metadata.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">dyninst/dyninst</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="openmp">Enable parallel code parsing</flag>
|
||||
<!--<flag name="rtlib">Build the RT library as a separate project so we can change compilers</flag>-->
|
||||
<flag name="valgrind">Enable annotations for Valgrind analysis</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user