Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpfm/
Date: Sat, 27 Feb 2021 01:00:32
Message-Id: 1614387603.7a151047316051b18f580c0c9e92712789812967.sam@gentoo
1 commit: 7a151047316051b18f580c0c9e92712789812967
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 26 23:32:21 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 01:00:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a151047
7
8 dev-libs/libpfm: bump to 4.11.0
9
10 Package-Manager: Portage-3.0.15, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-libs/libpfm/Manifest | 1 +
14 dev-libs/libpfm/libpfm-4.11.0.ebuild | 38 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 39 insertions(+)
16
17 diff --git a/dev-libs/libpfm/Manifest b/dev-libs/libpfm/Manifest
18 index cb38241422a..8c43bf88594 100644
19 --- a/dev-libs/libpfm/Manifest
20 +++ b/dev-libs/libpfm/Manifest
21 @@ -1 +1,2 @@
22 DIST libpfm-4.10.1.tar.gz 1005988 BLAKE2B 7bdc64540cdf0404bfab0a631e506f37a79ca090d68c798fe4943f627ebc3e15e01f6c4530d4eec2c82a6f759845af518cbf34b3ad19ecc5fa48a874611aaa16 SHA512 33d99824216b4d83784e0db9f1aae3b39f84c2ba42dee64dde0b3c43cc5ee3a18c206d9044e75bf10867768add7cb9967c6318f7aa196f178f334271fa05e1aa
23 +DIST libpfm-4.11.0.tar.gz 1043686 BLAKE2B 99b4f1a5156316139603cf50cf42c13c548a0b196435bfc92bc26ebd3f8d7ec9584255978d4f3fbff45cddc937269961e9d2b65d065632ae635e9ca45c179a54 SHA512 633035b8a7b35973437572095cdc80d422b2a1a61e74e14f106db95fa8e44e4518e591699cc457f828b8f2fb63f60eef6d0c7535c6b4c9a6c3a70d4550b3c3c7
24
25 diff --git a/dev-libs/libpfm/libpfm-4.11.0.ebuild b/dev-libs/libpfm/libpfm-4.11.0.ebuild
26 new file mode 100644
27 index 00000000000..594f18ab5f6
28 --- /dev/null
29 +++ b/dev-libs/libpfm/libpfm-4.11.0.ebuild
30 @@ -0,0 +1,38 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="Hardware-based performance monitoring interface for Linux"
39 +HOMEPAGE="http://perfmon2.sourceforge.net"
40 +SRC_URI="mirror://sourceforge/perfmon2/${PN}4/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2 MIT"
43 +SLOT="0/4"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
45 +
46 +src_prepare() {
47 + default
48 +
49 + sed -e "s:SLDFLAGS=:SLDFLAGS=\$(LDFLAGS) :g" \
50 + -i lib/Makefile || die
51 + sed -e "s:LIBDIR=\$(PREFIX)/lib:LIBDIR=\$(PREFIX)/$(get_libdir):g" \
52 + -i config.mk || die
53 +}
54 +
55 +src_compile() {
56 + # 'DBG=' unsets '-Werror' and other optional flags, bug #664294
57 + emake AR=$(tc-getAR) CC=$(tc-getCC) DBG=
58 +}
59 +
60 +src_install() {
61 + emake DESTDIR="${D}" LDCONFIG=true PREFIX="${EPREFIX}/usr" install
62 + dodoc README
63 +
64 + find "${ED}" -name '*.a' -delete || die
65 +
66 + # Note: dev-libs/papi uses .la files to detect this package, so
67 + # don't remove them.
68 +}