dev-libs/libpfm: add 4.12.0

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus
2023-02-21 17:16:56 +01:00
parent db07b6799b
commit 092fa67ed9
2 changed files with 41 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST libpfm-4.11.0.tar.gz 1043686 BLAKE2B 99b4f1a5156316139603cf50cf42c13c548a0b196435bfc92bc26ebd3f8d7ec9584255978d4f3fbff45cddc937269961e9d2b65d065632ae635e9ca45c179a54 SHA512 633035b8a7b35973437572095cdc80d422b2a1a61e74e14f106db95fa8e44e4518e591699cc457f828b8f2fb63f60eef6d0c7535c6b4c9a6c3a70d4550b3c3c7
DIST libpfm-4.12.0.tar.gz 1109288 BLAKE2B 035133d98305317b8331de9f3d986bf37b290cc80d2b944e9bac1c48a8659984ac190a0af1abe64bd9e0fee465f31ca11e3a35702f8a8da8a8a480a1aa625ac7 SHA512 dc47d862d619241db4a077a98b3f71a68f04be1be41e10c7b7dd2e596e6c79e9e0ff1d1028798dfb280553f98296b4b57339b4e6675749e1497dc1c9de06d9f8

View File

@@ -0,0 +1,40 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Hardware-based performance monitoring interface for Linux"
HOMEPAGE="http://perfmon2.sourceforge.net"
SRC_URI="mirror://sourceforge/perfmon2/${PN}4/${P}.tar.gz"
LICENSE="GPL-2 MIT"
SLOT="0/4"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="static-libs"
src_prepare() {
default
sed -e "s:SLDFLAGS=:SLDFLAGS=\$(LDFLAGS) :g" \
-i lib/Makefile || die
sed -e "s:LIBDIR=\$(PREFIX)/lib:LIBDIR=\$(PREFIX)/$(get_libdir):g" \
-i config.mk || die
}
src_compile() {
# 'DBG=' unsets '-Werror' and other optional flags, bug #664294
emake AR="$(tc-getAR)" CC="$(tc-getCC)" DBG=
}
src_install() {
emake DESTDIR="${D}" LDCONFIG=true PREFIX="${EPREFIX}/usr" install
dodoc README
if ! use static-libs ; then
find "${ED}" -name '*.a' -delete || die
fi
find "${ED}" -name '*.la' -delete || die
}