From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1456890-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 23DAC158020
	for <garchives@archives.gentoo.org>; Tue, 15 Nov 2022 20:19:56 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E1193E0AEF;
	Tue, 15 Nov 2022 20:19:54 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id BD5A1E0AED
	for <gentoo-commits@lists.gentoo.org>; Tue, 15 Nov 2022 20:19:54 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D1E07340D17
	for <gentoo-commits@lists.gentoo.org>; Tue, 15 Nov 2022 20:19:53 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 706E2599
	for <gentoo-commits@lists.gentoo.org>; Tue, 15 Nov 2022 20:19:52 +0000 (UTC)
From: "Matthew Smith" <matthew@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" <matthew@gentoo.org>
Message-ID: <1668543561.39d0d23f5fdc7788505cb4c5e89b98d853a5e0ab.matthew@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mimalloc/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/mimalloc/Manifest dev-libs/mimalloc/metadata.xml dev-libs/mimalloc/mimalloc-2.0.7.ebuild
X-VCS-Directories: dev-libs/mimalloc/
X-VCS-Committer: matthew
X-VCS-Committer-Name: Matthew Smith
X-VCS-Revision: 39d0d23f5fdc7788505cb4c5e89b98d853a5e0ab
X-VCS-Branch: master
Date: Tue, 15 Nov 2022 20:19:52 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3a2a2c53-a4d7-4b3a-991a-2f6c704dd049
X-Archives-Hash: fb485c657562b01aca00d8597c05cfc5

commit:     39d0d23f5fdc7788505cb4c5e89b98d853a5e0ab
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 15 20:13:58 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 20:19:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39d0d23f

dev-libs/mimalloc: add 2.0.7

Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 dev-libs/mimalloc/Manifest              |  1 +
 dev-libs/mimalloc/metadata.xml          |  3 +++
 dev-libs/mimalloc/mimalloc-2.0.7.ebuild | 30 ++++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+)

diff --git a/dev-libs/mimalloc/Manifest b/dev-libs/mimalloc/Manifest
index a28d7d65ebac..73116aa109bb 100644
--- a/dev-libs/mimalloc/Manifest
+++ b/dev-libs/mimalloc/Manifest
@@ -1 +1,2 @@
 DIST mimalloc-2.0.6.tar.gz 1127052 BLAKE2B bd8a38cc0eab6ad950a63f494f24e6a91c50d2104335e9ce70963a7baadd26c7a2b7440b2fcabe502d9961549222873d017cb525bf5b32da967cf51aa167603c SHA512 f2fc0fbfb6384e85959897f129e5d5d9acc51bda536d5cabcd7d4177dbda9fb735b8a8c239b961f8bea31d37c9ae10f66da23aa91d497f95393253d4ac792bb3
+DIST mimalloc-2.0.7.tar.gz 1137057 BLAKE2B dc7ca7443507b14967168e4899464d137da425bdbc3863d44faef7adfe62e983cec0a7950937f010d003ff4df3c4368ff2f9753c3fda19641ab12f91fc73055c SHA512 120f89eef50ba83130e8ceb974a6148c84a7f3d975d1efaa094142518afb4ff6d9e24f8e75e9aa0bb02dc80bf497eced4b8ae1f2f5914fdabd773317e1341ea1

diff --git a/dev-libs/mimalloc/metadata.xml b/dev-libs/mimalloc/metadata.xml
index 465023490e6b..62ab55808822 100644
--- a/dev-libs/mimalloc/metadata.xml
+++ b/dev-libs/mimalloc/metadata.xml
@@ -9,6 +9,9 @@
 		<email>sam@gentoo.org</email>
 		<name>Sam James</name>
 	</maintainer>
+	<use>
+		<flag name="hardened">Enable exploit mitigations</flag>
+	</use>
 	<upstream>
 		<remote-id type="github">microsoft/mimalloc</remote-id>
 	</upstream>

diff --git a/dev-libs/mimalloc/mimalloc-2.0.7.ebuild b/dev-libs/mimalloc/mimalloc-2.0.7.ebuild
new file mode 100644
index 000000000000..313ecbb034c5
--- /dev/null
+++ b/dev-libs/mimalloc/mimalloc-2.0.7.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2022 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 ~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
+}