blob: 3f41ae50f51db1a614c71ea4dd5528204199ffaf (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=7
inherit eutils multilib git-r3
DESCRIPTION="Processor Counter Monitor (PCM) is an application programming interface (API) and a set of tools based on the API to monitor performance and energy metrics of Intel processors"
HOMEPAGE="https://github.com/opcm/pcm"
if [[ ${PV} == *999999* ]];then
EGIT_REPO_URI="https://github.com/opcm/pcm.git"
KEYWORDS=""
EGIT_SUBMODULES=( '*' )
else
MYPV=$(ver_cut 1)
EGIT_REPO_URI="https://github.com/opcm/pcm.git"
EGIT_COMMIT="${MYPV}"
EGIT_SUBMODULES=( '*' )
KEYWORDS="~x86 ~amd64"
S="${WORKDIR}/${PN}"
fi
LICENSE="Intel"
SLOT="0"
IUSE=""
#DEPEND=""
#RDEPEND="${DEPEND}"
PATCHES=( )
if [[ ${PV} != *999999* ]];then
src_prepare(){
default
}
fi
src_configure(){
true
}
src_compile(){
cd "${S}"
emake INSTALL_ROOT="${D}" || die
}
src_install(){
insinto usr/share/licenses/${PN}
doins LICENCE
newbin pcm.x pcm
newbin pcm-numa.x pcm-numa
newbin pcm-latency.x pcm-latency
newbin pcm-power.x pcm-power
newbin pcm-sensor.x pcm-sensor
newbin pcm-msr.x pcm-msr
newbin pcm-memory.x pcm-memory
newbin pcm-tsx.x pcm-tsx
newbin pcm-pcie.x pcm-pcie
newbin pcm-core.x pcm-core
newbin pcm-iio.x pcm-iio
newbin pcm-lspci.x pcm-lspci
newbin pcm-pcicfg.x pcm-pcicfg
into usr/lib/${PN}
dolib.a libPCM.a
}
|