You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
4 years ago
|
inherit autotools
|
||
11 years ago
|
|
||
|
DESCRIPTION="A compressed bitset with supporting data structures and algorithms"
|
||
9 years ago
|
HOMEPAGE="https://github.com/chriso/bitset"
|
||
11 years ago
|
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"
|
||
11 years ago
|
KEYWORDS="amd64 ~arm x86"
|
||
11 years ago
|
|
||
4 years ago
|
RDEPEND="
|
||
|
tcmalloc? ( dev-util/google-perftools:= )
|
||
|
jemalloc? ( >=dev-libs/jemalloc-3.2 )
|
||
|
"
|
||
11 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
REQUIRED_USE="?? ( jemalloc tcmalloc )"
|
||
|
|
||
|
DOCS=( README.md )
|
||
|
|
||
4 years ago
|
src_prepare() {
|
||
|
default
|
||
3 years ago
|
|
||
|
# Disable aggressive optimization, which does not respect CFLAGS
|
||
|
# with new autoconf, bug #815637
|
||
|
sed -i -e '/AX_CC_MAXOPT/d' configure.ac || die
|
||
|
|
||
4 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
11 years ago
|
src_configure() {
|
||
11 years ago
|
local tcmalloc_lib_name='tcmalloc'
|
||
4 years ago
|
|
||
11 years ago
|
has_version dev-util/google-perftools[minimal] && tcmalloc_lib_name='tcmalloc_minimal'
|
||
4 years ago
|
|
||
11 years ago
|
local myeconfargs=(
|
||
|
$(use_with jemalloc) \
|
||
11 years ago
|
$(use_with tcmalloc) \
|
||
|
$(use_with tcmalloc tcmalloc-lib "${tcmalloc_lib_name}")
|
||
11 years ago
|
)
|
||
4 years ago
|
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
find "${ED}" -name '*.la' -delete || die
|
||
11 years ago
|
}
|