commit: 4774cc3b8afddf7c7460c8cf0c07fb80dfe0cb70 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> AuthorDate: Sat Nov 12 14:48:46 2022 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Sat Nov 12 14:49:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4774cc3b
dev-libs/libcpuid: add 0.6.2 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> dev-libs/libcpuid/Manifest | 1 + dev-libs/libcpuid/libcpuid-0.6.2.ebuild | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/dev-libs/libcpuid/Manifest b/dev-libs/libcpuid/Manifest index a897f5fb7bf9..6eca8b0a8353 100644 --- a/dev-libs/libcpuid/Manifest +++ b/dev-libs/libcpuid/Manifest @@ -1,3 +1,4 @@ DIST libcpuid-0.5.1.tar.gz 166522 BLAKE2B 3471c11bbe4b0eaac7b00ac20a27556a95991f1b678269ae6f142a0fe2db066ebb756722ae2e76f95158742c93e29a35da6e735226d32b746034acae3ec2a5b7 SHA512 d725bc82e5aa2db69cea7b3590afbe11d6028cf4802fde8d498b4f1cc6d823e73d71b89a453d81bf996d97b36a71f6c00d0f6e8292b72f2be8a64b5d59c01861 DIST libcpuid-0.6.0.tar.gz 240709 BLAKE2B 6be56956d17aab774282b3e2be83b02f0180153af9cea665dbf8a8a216b35fd8c030b053184d09ac3946d163943281ecb906134290516d8063380749944339e8 SHA512 9f80f0d45f408d35d9ee657d8f53c99bb14e37d26a8a7b6a914546f0446f83a3d75eb06d261c7708a810ba10ce6fadaef54ba7c94cbf22cd113a9f2210c1a708 DIST libcpuid-0.6.1.tar.gz 255938 BLAKE2B 80239930d7259b76289f6130c720d1700ae3a10be2a29b118cc8db38fb72f821b1d1a01afef06e00b2a3678b91b660ccd101eaf50af442a80166a508eb435294 SHA512 ccdb486a848f01a4f977c6f6b7ca59a2e65a7e04665e1a04bc3a57f1e8a68617f8bfbb2a71a1c93465bbaa7cc060fd7d120bbcb1a17fa004981e1074a4788818 +DIST libcpuid-0.6.2.tar.gz 265896 BLAKE2B 27f7c6c6a8bce6f27ca2f537c0255d8e8efa4ca5a7a278deecdb7b5c122830cc49e7e4524a2b2c0c39c0a43b3d05649c5e95a1bee843b6ddd981e3bee33383ab SHA512 36175387ae86e6f602544c516a875ac7fe0a3bde52e3e3c09f8852a804dd252694e17c638723aa3d36219d4588981cfd2261086bcf561d175e7c038e3a69e2ff diff --git a/dev-libs/libcpuid/libcpuid-0.6.2.ebuild b/dev-libs/libcpuid/libcpuid-0.6.2.ebuild new file mode 100644 index 000000000000..c3576366dccf --- /dev/null +++ b/dev-libs/libcpuid/libcpuid-0.6.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 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 +}