mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/libdivsufsort: add openmp support
Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: François-Xavier Carton <fx.carton91@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/10559 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
committed by
Michał Górny
parent
4188f4f7f0
commit
911129d310
@@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit cmake-utils multilib
|
||||
inherit cmake-utils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Suffix-sorting library (for BWT)"
|
||||
HOMEPAGE="https://github.com/y-256/libdivsufsort"
|
||||
@@ -11,7 +11,15 @@ SRC_URI="https://github.com/y-256/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
IUSE="openmp"
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
@@ -22,6 +30,6 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=("-DBUILD_DIVSUFSORT64=ON")
|
||||
local mycmakeargs=("-DBUILD_DIVSUFSORT64=ON" "-DUSE_OPENMP=$(usex openmp)")
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=6
|
||||
EGIT_REPO_URI="https://github.com/y-256/${PN}"
|
||||
inherit cmake-utils multilib git-r3
|
||||
inherit cmake-utils multilib toolchain-funcs git-r3
|
||||
|
||||
DESCRIPTION="Suffix-sorting library (for BWT)"
|
||||
HOMEPAGE="https://github.com/y-256/libdivsufsort"
|
||||
@@ -12,7 +12,15 @@ SRC_URI=""
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
IUSE="openmp"
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
@@ -23,6 +31,6 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=("-DBUILD_DIVSUFSORT64=ON")
|
||||
local mycmakeargs=("-DBUILD_DIVSUFSORT64=ON" "-DUSE_OPENMP=$(usex openmp)")
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user