HOMEPAGE="https://gitlab.com/mdds/mdds"
LICENSE="MIT"
-SLOT="1/1.5"
-IUSE="doc valgrind test"
+SLOT="1/1.5" # Check API version on version bumps!
+IUSE="doc openmp valgrind test"
RESTRICT="!test? ( test )"
BDEPEND="
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
}
$(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[@]}"
}
LICENSE="MIT"
SLOT="1/${PV%.*}" # Check API version on version bumps!
-IUSE="doc valgrind test"
+IUSE="doc openmp valgrind test"
RESTRICT="!test? ( test )"
BDEPEND="
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
}
$(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[@]}"
}