aboutsummaryrefslogtreecommitdiff
blob: 38ae1b432d6af194652bce78ffdd6a2d38c78db3 (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
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Intel Instrumentation and Tracing Technology and Just-In-Time API "
HOMEPAGE="https://github.com/intel/ittapi"
SRC_URI="https://github.com/intel/ittapi/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="|| ( GPL-2 BSD )"
SLOT="0"
KEYWORDS="~amd64"

src_prepare() {
	# Make it a shared library
	sed -i -e 's/STATIC/SHARED/g' CMakeLists.txt || die
	cmake_src_prepare
}

src_install() {
	dolib.so "${BUILD_DIR}/bin/"*.so
	doheader -r "${S}/include/"*
	einstalldocs
}