dev-libs/memkind - 1.11.0 (science)

Search

Package Information

Description:
user extensible heap manager built on top of jemalloc
Homepage:
https://memkind.github.io/memkind/

Ebuild Details

Version EAPI Keywords Slot
1.11.0 7 ~amd64 ~x86 0
View Raw Ebuild
# 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/"

if [[ ${PV} == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/memkind/memkind"
else
	SRC_URI="https://github.com/memkind/memkind/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="BSD"
SLOT="0"
IUSE="+heap-manager openmp secure +tls"
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
}

USE Flags

heap-manager
Default: Enabled (+)
tls
Default: Enabled (+)

Dependencies

DEPEND

	sys-block/ndctl
	sys-process/numactl

RDEPEND

	sys-block/ndctl
	sys-process/numactl

Manifest for 1.11.0

Type File Size Source URLs
DIST memkind-1.11.0.tar.gz 1072455 bytes https://github.com/memkind/memkind/archive/v1.11.0.tar.gz