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.
66 lines
1.4 KiB
66 lines
1.4 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
if [[ ${PV} == *9999* ]]; then
|
||
|
EGIT_REPO_URI="https://gitlab.com/mdds/mdds.git"
|
||
|
inherit git-r3
|
||
|
else
|
||
|
SRC_URI="https://kohei.us/files/${PN}/src/${P}.tar.xz"
|
||
|
# Unkeyworded while libreoffice has no release making use of this slot
|
||
|
# KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||
|
fi
|
||
|
inherit autotools toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Collection of multi-dimensional data structure and indexing algorithm"
|
||
|
HOMEPAGE="https://gitlab.com/mdds/mdds"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="1/2.0" # Check API version on version bumps!
|
||
|
IUSE="doc openmp valgrind test"
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
BDEPEND="
|
||
|
doc? (
|
||
|
app-doc/doxygen
|
||
|
dev-python/sphinx
|
||
|
)
|
||
|
valgrind? ( dev-util/valgrind )
|
||
|
"
|
||
|
DEPEND="dev-libs/boost:="
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
PATCHES=( "${FILESDIR}/${PN}-1.5.0-buildsystem.patch" )
|
||
|
|
||
|
pkg_pretend() {
|
||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||
|
}
|
||
|
|
||
|
pkg_setup() {
|
||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myeconfargs=(
|
||
|
$(use_enable doc docs)
|
||
|
$(use_enable valgrind memory_tests)
|
||
|
)
|
||
|
if use openmp && tc-has-openmp; then
|
||
|
myeconfargs+=( --enable-openmp )
|
||
|
else
|
||
|
myeconfargs+=( --disable-openmp )
|
||
|
fi
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
tc-export CXX
|
||
|
default
|
||
|
}
|