1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 EGIT_REPO_URI="https://github.com/y-256/${PN}"
6 inherit cmake-utils multilib toolchain-funcs git-r3
8 DESCRIPTION="Suffix-sorting library (for BWT)"
9 HOMEPAGE="https://github.com/y-256/libdivsufsort"
18 [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
22 [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
26 cmake-utils_src_prepare
28 # will appreciate saner approach, if there is any
29 sed -i -e "s:\(DESTINATION \)lib:\1$(get_libdir):" \
30 */CMakeLists.txt || die
34 local mycmakeargs=("-DBUILD_DIVSUFSORT64=ON" "-DUSE_OPENMP=$(usex openmp)")
35 cmake-utils_src_configure