diff options
author | Sam James <sam@gentoo.org> | 2021-02-26 23:32:21 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-27 01:00:03 +0000 |
commit | 7a151047316051b18f580c0c9e92712789812967 (patch) | |
tree | e7ff8ecc346044de0f08399c9ef8291b90ebd4ac /dev-libs/libpfm/libpfm-4.11.0.ebuild | |
parent | dev-libs/maloc: port to EAPI 7 (diff) | |
download | gentoo-7a151047316051b18f580c0c9e92712789812967.tar.gz gentoo-7a151047316051b18f580c0c9e92712789812967.tar.bz2 gentoo-7a151047316051b18f580c0c9e92712789812967.zip |
dev-libs/libpfm: bump to 4.11.0
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libpfm/libpfm-4.11.0.ebuild')
-rw-r--r-- | dev-libs/libpfm/libpfm-4.11.0.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/libpfm/libpfm-4.11.0.ebuild b/dev-libs/libpfm/libpfm-4.11.0.ebuild new file mode 100644 index 000000000000..594f18ab5f6a --- /dev/null +++ b/dev-libs/libpfm/libpfm-4.11.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 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 ~ppc ~ppc64 ~riscv ~x86" + +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 + + find "${ED}" -name '*.a' -delete || die + + # Note: dev-libs/papi uses .la files to detect this package, so + # don't remove them. +} |