Gentoo Archives: gentoo-commits

From: Samuel Bernardo <samuelbernardo.mail@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/ssnb:master commit in: sys-apps/pcm/
Date: Sun, 26 May 2019 00:53:29
Message-Id: 1558831985.5040564561c5c04532bc2b081ae00532052be8b6.samuelbernardo@gentoo
1 commit: 5040564561c5c04532bc2b081ae00532052be8b6
2 Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
3 AuthorDate: Sun May 26 00:53:05 2019 +0000
4 Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
5 CommitDate: Sun May 26 00:53:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=50405645
7
8 Add pcm ebuild
9
10 Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com>
11
12 sys-apps/pcm/Manifest | 3 ++
13 sys-apps/pcm/metadata.xml | 9 ++++++
14 sys-apps/pcm/pcm-201902.0.ebuild | 1 +
15 sys-apps/pcm/pcm-999999.ebuild | 69 ++++++++++++++++++++++++++++++++++++++++
16 4 files changed, 82 insertions(+)
17
18 diff --git a/sys-apps/pcm/Manifest b/sys-apps/pcm/Manifest
19 new file mode 100644
20 index 0000000..e043455
21 --- /dev/null
22 +++ b/sys-apps/pcm/Manifest
23 @@ -0,0 +1,3 @@
24 +EBUILD pcm-201902.0.ebuild 1295 BLAKE2B ebaf7bf7b2781efeb9787bf534c9fbb99ef274d49d289d435ae7e44eeb89ec6c34d079caa13751681ef15157a6a26b387c0abfe76a6c32ec853b358fb90f4440 SHA512 991f4c0514379083bb86cb83c8625a89f621a9779b3df09d45880e1b87338765eace020096b5834bb27bbba3a2336f7af20b38185c633bb3b9bbafcc070c5a2c
25 +EBUILD pcm-999999.ebuild 1295 BLAKE2B ebaf7bf7b2781efeb9787bf534c9fbb99ef274d49d289d435ae7e44eeb89ec6c34d079caa13751681ef15157a6a26b387c0abfe76a6c32ec853b358fb90f4440 SHA512 991f4c0514379083bb86cb83c8625a89f621a9779b3df09d45880e1b87338765eace020096b5834bb27bbba3a2336f7af20b38185c633bb3b9bbafcc070c5a2c
26 +MISC metadata.xml 465 BLAKE2B ec83d6c09feb51ff6b91e9369c26c9a1e3749489cc9f36d9cac9a32d1eb3c4a2ac4087ed8c40b47c1c30faac92ead54b0f73d27acf8ed0a4fd551dda0c1b4dd5 SHA512 4978d475dbdc8667bb3d7157c28c7975605ec85a5a6af7200e3e6a4812b6c8ef2be7ce55c0c8703c8b317ee9d1e6f41b38b28d5711a5f098786b61daa563e9cc
27
28 diff --git a/sys-apps/pcm/metadata.xml b/sys-apps/pcm/metadata.xml
29 new file mode 100644
30 index 0000000..00bcf7b
31 --- /dev/null
32 +++ b/sys-apps/pcm/metadata.xml
33 @@ -0,0 +1,9 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>samuelbernardo.mail@×××××.com</email>
39 + <name>Samuel Bernardo</name>
40 + <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</description>
41 + </maintainer>
42 +</pkgmetadata>
43
44 diff --git a/sys-apps/pcm/pcm-201902.0.ebuild b/sys-apps/pcm/pcm-201902.0.ebuild
45 new file mode 120000
46 index 0000000..096e097
47 --- /dev/null
48 +++ b/sys-apps/pcm/pcm-201902.0.ebuild
49 @@ -0,0 +1 @@
50 +pcm-999999.ebuild
51 \ No newline at end of file
52
53 diff --git a/sys-apps/pcm/pcm-999999.ebuild b/sys-apps/pcm/pcm-999999.ebuild
54 new file mode 100644
55 index 0000000..ac2f2db
56 --- /dev/null
57 +++ b/sys-apps/pcm/pcm-999999.ebuild
58 @@ -0,0 +1,69 @@
59 +# Copyright 1999-2016 Gentoo Foundation
60 +# Distributed under the terms of the GNU General Public License v2
61 +# $Header: $
62 +
63 +EAPI=7
64 +
65 +inherit eutils multilib git-r3
66 +
67 +
68 +DESCRIPTION="A Qt-based program for syncing your MEGA account in your PC. This is the official app."
69 +HOMEPAGE="http://mega.co.nz"
70 +if [[ ${PV} == *999999* ]];then
71 + EGIT_REPO_URI="https://github.com/meganz/MEGAsync"
72 + KEYWORDS=""
73 + EGIT_SUBMODULES=( '*' )
74 +else
75 + MYPV=$(ver_cut 1)
76 + EGIT_REPO_URI="https://github.com/opcm/pcm.git"
77 + EGIT_COMMIT="${MYPV}"
78 + EGIT_SUBMODULES=( '*' )
79 + KEYWORDS="~x86 ~amd64"
80 + S="${WORKDIR}/${PN}"
81 +fi
82 +
83 +LICENSE="Intel"
84 +SLOT="0"
85 +IUSE=""
86 +
87 +#DEPEND=""
88 +#RDEPEND="${DEPEND}"
89 +
90 +PATCHES=( )
91 +
92 +if [[ ${PV} != *999999* ]];then
93 + src_prepare(){
94 + default
95 + }
96 +fi
97 +
98 +src_configure(){
99 + true
100 +}
101 +
102 +src_compile(){
103 + cd "${S}"
104 + emake INSTALL_ROOT="${D}" || die
105 +}
106 +
107 +src_install(){
108 + insinto usr/share/licenses/${PN}
109 + doins LICENCE
110 +
111 + newbin pcm.x pcm
112 + newbin pcm-numa.x pcm-numa
113 + newbin pcm-latency.x pcm-latency
114 + newbin pcm-power.x pcm-power
115 + newbin pcm-sensor.x pcm-sensor
116 + newbin pcm-msr.x pcm-msr
117 + newbin pcm-memory.x pcm-memory
118 + newbin pcm-tsx.x pcm-tsx
119 + newbin pcm-pcie.x pcm-pcie
120 + newbin pcm-core.x pcm-core
121 + newbin pcm-iio.x pcm-iio
122 + newbin pcm-lspci.x pcm-lspci
123 + newbin pcm-pcicfg.x pcm-pcicfg
124 +
125 + into usr/lib/${PN}
126 + dolib.a libPCM.a
127 +}