Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpfm/
Date: Tue, 26 May 2020 21:56:11
Message-Id: 1590530159.30bb3c1680ce5a480efd80dc1dc3bea57c44a154.slyfox@gentoo
1 commit: 30bb3c1680ce5a480efd80dc1dc3bea57c44a154
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 26 21:44:11 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue May 26 21:55:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30bb3c16
7
8 dev-libs/libpfm: respect AR
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-libs/libpfm/libpfm-4.10.1-r1.ebuild | 38 +++++++++++++++++++++++++++++++++
14 1 file changed, 38 insertions(+)
15
16 diff --git a/dev-libs/libpfm/libpfm-4.10.1-r1.ebuild b/dev-libs/libpfm/libpfm-4.10.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..99cd8b0c3d9
19 --- /dev/null
20 +++ b/dev-libs/libpfm/libpfm-4.10.1-r1.ebuild
21 @@ -0,0 +1,38 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit multilib toolchain-funcs
28 +
29 +DESCRIPTION="Hardware-based performance monitoring interface for Linux"
30 +HOMEPAGE="http://perfmon2.sourceforge.net"
31 +SRC_URI="mirror://sourceforge/perfmon2/${PN}4/${P}.tar.gz"
32 +
33 +LICENSE="GPL-2 MIT"
34 +SLOT="0/4"
35 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
36 +IUSE="static-libs"
37 +
38 +DEPEND=""
39 +RDEPEND="${DEPEND}"
40 +
41 +src_prepare() {
42 + default
43 +
44 + sed -e "s:SLDFLAGS=:SLDFLAGS=\$(LDFLAGS) :g" \
45 + -i lib/Makefile || die
46 + sed -e "s:LIBDIR=\$(PREFIX)/lib:LIBDIR=\$(PREFIX)/$(get_libdir):g" \
47 + -i config.mk || die
48 +}
49 +
50 +src_compile() {
51 + # 'DBG=' unsets '-Werror' and other optional flags, bug #664294
52 + emake AR=$(tc-getAR) CC=$(tc-getCC) DBG=
53 +}
54 +
55 +src_install() {
56 + emake DESTDIR="${D}" LDCONFIG=true PREFIX="${EPREFIX}/usr" install
57 + use static-libs || find "${ED}" -name '*.a' -exec rm -f '{}' +
58 + dodoc README
59 +}