dev-libs/memkind: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-06-30 18:56:43 +02:00
parent 3ab48d5abf
commit d05258d472
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST memkind-1.11.0.tar.gz 1072455 BLAKE2B 2de2cf053687ba2150f694e8c4143eeca74fc377feee2b6892067b661d8c58d7d5fcacb021fc92a47dad27f52aa4cbc6408cfede3141ab1f8ae81147b49aa6a7 SHA512 0b5bde35b3565c730fa954aebfe2ccbecd1e120c920d05acdbc0a74914731a90aeef8d57101f1f47bd35fd310bc143fa517bc871b32e592b8412384ff652fc05

View File

@@ -0,0 +1,48 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools linux-info
DESCRIPTION="user extensible heap manager built on top of jemalloc"
HOMEPAGE="https://memkind.github.io/memkind"
SRC_URI="https://github.com/memkind/memkind/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="BSD"
SLOT="0"
IUSE="+heap-manager openmp secure +tls" #daxctl
#RESTRICT="test"
DEPEND="
sys-block/ndctl
sys-process/numactl
"
RDEPEND="${DEPEND}"
src_prepare() {
default
eautoreconf
cd jemalloc && eautoreconf
}
src_configure() {
local myconf=(
--disable-silent-rules
--enable-shared
--enable-static
--enable-daxctl
$(use_enable heap-manager)
$(use_enable openmp)
$(use_enable secure)
$(use_enable tls)
)
econf "${myconf[@]}"
}
src_test() {
addwrite /proc/sys/vm/nr_hugepages
echo 3000 > /proc/sys/vm/nr_hugepages
emake check
}

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<description>co-maintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<remote-id type="github">memkind/memkind</remote-id>
</upstream>
<use>
<flag name="heap-manager">Allow switching allocator at runtime</flag>
<flag name="secure">Build libraries with security enhancements</flag>
<flag name="tls">Enable thread local storage</flag>
</use>
</pkgmetadata>