1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit cmake-utils multilib toolchain-funcs
7 DESCRIPTION="Suffix-sorting library (for BWT)"
8 HOMEPAGE="https://github.com/y-256/libdivsufsort"
9 SRC_URI="https://github.com/y-256/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
17 [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
21 [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
25 cmake-utils_src_prepare
27 # will appreciate saner approach, if there is any
28 sed -i -e "s:\(DESTINATION \)lib:\1$(get_libdir):" \
29 */CMakeLists.txt || die
33 local mycmakeargs=("-DBUILD_DIVSUFSORT64=ON" "-DUSE_OPENMP=$(usex openmp)")
34 cmake-utils_src_configure