diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-10-01 20:54:53 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-10-01 20:54:53 +0100 |
commit | 391b5b359a346aff490103da7dddc85047f83830 (patch) | |
tree | 29eea460a0bd7e1ff21d43b9d6df9af4d8a175e1 /dev-libs/bitset/bitset-2.8.4-r2.ebuild | |
parent | c719fdcee603a5a706a45d10cb598762d56a727d (diff) |
gentoo resync : 01.10.2021
Diffstat (limited to 'dev-libs/bitset/bitset-2.8.4-r2.ebuild')
-rw-r--r-- | dev-libs/bitset/bitset-2.8.4-r2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-libs/bitset/bitset-2.8.4-r2.ebuild b/dev-libs/bitset/bitset-2.8.4-r2.ebuild new file mode 100644 index 000000000000..a40c6612612d --- /dev/null +++ b/dev-libs/bitset/bitset-2.8.4-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="A compressed bitset with supporting data structures and algorithms" +HOMEPAGE="https://github.com/chriso/bitset" +SRC_URI="https://github.com/chriso/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="jemalloc static-libs tcmalloc" +KEYWORDS="amd64 ~arm x86" + +RDEPEND=" + tcmalloc? ( dev-util/google-perftools:= ) + jemalloc? ( >=dev-libs/jemalloc-3.2 ) +" +DEPEND="${RDEPEND}" + +REQUIRED_USE="?? ( jemalloc tcmalloc )" + +DOCS=( README.md ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local tcmalloc_lib_name='tcmalloc' + + has_version dev-util/google-perftools[minimal] && tcmalloc_lib_name='tcmalloc_minimal' + + local myeconfargs=( + --enable-portable-binary \ + $(use_with jemalloc) \ + $(use_with tcmalloc) \ + $(use_with tcmalloc tcmalloc-lib "${tcmalloc_lib_name}") + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} |