commit:     a1c7a401e511d9486877d7d5ef9fe3ab4d85b08b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 31 21:27:19 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 31 21:27:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1c7a401

dev-libs/mimalloc: add 2.1.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/mimalloc/Manifest              |  1 +
 dev-libs/mimalloc/mimalloc-2.1.0.ebuild | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/dev-libs/mimalloc/Manifest b/dev-libs/mimalloc/Manifest
index 7e3c24864946..6c1b878e7934 100644
--- a/dev-libs/mimalloc/Manifest
+++ b/dev-libs/mimalloc/Manifest
@@ -1 +1,2 @@
 DIST mimalloc-2.0.9.tar.gz 1143452 BLAKE2B 
55e91d8fc89ef5344078caa5e72efce8c0745e3aab7bfb682587abf806bda1903c1afeaa57660a4dbcf7c19c04c759caf69af9fb62d15ecbdf2ce5bcf6574625
 SHA512 
bf6945bfb600ade35dab34c7f570ee4f69a77612547ad874bbbd989a4e594a6a219c222a22c90c5e36f205aae4d5cd1a5e4651caed5433db275d414c6769bf49
+DIST mimalloc-2.1.0.tar.gz 1163080 BLAKE2B 
c452fc6b6f16ba8f207855bc560f11ebb6b7431b17331123ede59a49ebe2591bb81e91481a776a6cd24ab5c7f3ceabd59cf6ae41b05b558e883cf045b71628d6
 SHA512 
f766d6d9ad961cc129a561ed4824eb30e0857c2da4662e0c6fd095c7e193760a2c3238943efa7601099d3b44480b34f1755454d6172a91b6dd1e3fa3a19d4a9e

diff --git a/dev-libs/mimalloc/mimalloc-2.1.0.ebuild 
b/dev-libs/mimalloc/mimalloc-2.1.0.ebuild
new file mode 100644
index 000000000000..5c8b6056d6ae
--- /dev/null
+++ b/dev-libs/mimalloc/mimalloc-2.1.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+DESCRIPTION="A compact general purpose allocator with excellent performance"
+HOMEPAGE="https://github.com/microsoft/mimalloc";
+SRC_URI="https://github.com/microsoft/mimalloc/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/2"
+KEYWORDS="~amd64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="hardened test"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+       local mycmakeargs=(
+               -DMI_SECURE=$(usex hardened)
+               -DMI_INSTALL_TOPLEVEL=ON
+               -DMI_BUILD_TESTS=$(usex test)
+
+               -DMI_BUILD_OBJECT=OFF
+               -DMI_BUILD_STATIC=OFF
+       )
+
+       cmake-multilib_src_configure
+}

Reply via email to