diff options
Diffstat (limited to 'dev-libs/libpfm')
-rw-r--r-- | dev-libs/libpfm/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libpfm/libpfm-4.13.0.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/libpfm/Manifest b/dev-libs/libpfm/Manifest index c28fc8a712d5..5bc7edb2faf3 100644 --- a/dev-libs/libpfm/Manifest +++ b/dev-libs/libpfm/Manifest @@ -1,2 +1,3 @@ DIST libpfm-4.11.0.tar.gz 1043686 BLAKE2B 99b4f1a5156316139603cf50cf42c13c548a0b196435bfc92bc26ebd3f8d7ec9584255978d4f3fbff45cddc937269961e9d2b65d065632ae635e9ca45c179a54 SHA512 633035b8a7b35973437572095cdc80d422b2a1a61e74e14f106db95fa8e44e4518e591699cc457f828b8f2fb63f60eef6d0c7535c6b4c9a6c3a70d4550b3c3c7 DIST libpfm-4.12.0.tar.gz 1109288 BLAKE2B 035133d98305317b8331de9f3d986bf37b290cc80d2b944e9bac1c48a8659984ac190a0af1abe64bd9e0fee465f31ca11e3a35702f8a8da8a8a480a1aa625ac7 SHA512 dc47d862d619241db4a077a98b3f71a68f04be1be41e10c7b7dd2e596e6c79e9e0ff1d1028798dfb280553f98296b4b57339b4e6675749e1497dc1c9de06d9f8 +DIST libpfm-4.13.0.tar.gz 1128221 BLAKE2B 71fddec8993acec5c14d140d80804d41a12ae2fe22368b74bf94f10f95f51946bf9150b4329ca481756228366fc86b1ff5f795a97de181d211dc175c374a5653 SHA512 e61b210aa2ce80f0e47603c88eee2e4f2fe30ca2c0e194a5472b6a8de3bf9dc1085e5261bbb9ddbe5b6531c4b391fb34f20d038e5ebd8e6f4c14c2112aee508f diff --git a/dev-libs/libpfm/libpfm-4.13.0.ebuild b/dev-libs/libpfm/libpfm-4.13.0.ebuild new file mode 100644 index 000000000000..e0a4d2729761 --- /dev/null +++ b/dev-libs/libpfm/libpfm-4.13.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Hardware-based performance monitoring interface for Linux" +HOMEPAGE="http://perfmon2.sourceforge.net" +SRC_URI="https://downloads.sourceforge.net/perfmon2/${PN}4/${P}.tar.gz" + +LICENSE="GPL-2 MIT" +SLOT="0/4" +KEYWORDS="~alpha ~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_test() { + cd tests || die + ./validate || die +} + +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 +} |