diff options
author | Ben Kohler <bkohler@gentoo.org> | 2023-10-09 10:21:47 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2023-10-09 11:06:39 -0500 |
commit | b6d6252a29314f1b13e746baa6f9fb2d6d33b72c (patch) | |
tree | 0a4db0222d046711dbdd6c390e226d7c2507bfab /dev-libs/libcpuid/libcpuid-0.6.4.ebuild | |
parent | dev-util/pwntools: add bash/zsh completion (diff) | |
download | gentoo-b6d6252a29314f1b13e746baa6f9fb2d6d33b72c.tar.gz gentoo-b6d6252a29314f1b13e746baa6f9fb2d6d33b72c.tar.bz2 gentoo-b6d6252a29314f1b13e746baa6f9fb2d6d33b72c.zip |
dev-libs/libcpuid: add 0.6.4
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'dev-libs/libcpuid/libcpuid-0.6.4.ebuild')
-rw-r--r-- | dev-libs/libcpuid/libcpuid-0.6.4.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/libcpuid/libcpuid-0.6.4.ebuild b/dev-libs/libcpuid/libcpuid-0.6.4.ebuild new file mode 100644 index 000000000000..75cb5bcb7074 --- /dev/null +++ b/dev-libs/libcpuid/libcpuid-0.6.4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=(python3_{9..11}) + +inherit autotools python-any-r1 + +DESCRIPTION="A small C library for x86 (and x86_64) CPU detection and feature extraction" +HOMEPAGE="http://libcpuid.sourceforge.net/" +SRC_URI="https://github.com/anrieff/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-2" +SLOT="0/16" +KEYWORDS="~amd64" +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( ${PYTHON_DEPS} )" + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf "$(use_enable static-libs static)" +} + +src_install() { + default + find "${ED}" -name "*.la" -delete || die +} |