mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
- Update to cmake 4 - Unhardcoded destination locations for libraries - Fixed libdir in pkgconfig files Closes: https://bugs.gentoo.org/979794 Closes: https://bugs.gentoo.org/953994 Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/46679 Closes: https://github.com/gentoo/gentoo/pull/46679 Signed-off-by: Michał Górny <mgorny@gentoo.org>
36 lines
726 B
Bash
36 lines
726 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake toolchain-funcs
|
|
|
|
DESCRIPTION="Suffix-sorting library (for BWT)"
|
|
HOMEPAGE="https://github.com/y-256/libdivsufsort/"
|
|
SRC_URI="https://github.com/y-256/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="openmp"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/libdivsufsort-2.0.1-cmake.patch"
|
|
)
|
|
|
|
pkg_pretend() {
|
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
}
|
|
|
|
pkg_setup() {
|
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
}
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DBUILD_DIVSUFSORT64=ON
|
|
-DUSE_OPENMP=$(usex openmp)
|
|
)
|
|
cmake_src_configure
|
|
}
|