dev-libs/gpds: catch up cmake option form upstream

Use new GPDS_BUILD_STATIC option to control static lib build

Closes: https://bugs.gentoo.org/924853
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2024-02-18 15:56:40 +08:00
parent 8c4ed017ea
commit dfad5f924b
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -32,8 +32,10 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
-DGPDS_BUILD_EXAMPLES=$(usex examples)
-DGPDS_BUILD_STATIC=$(usex static-libs)
-DGPDS_BUILD_SHARED=ON
-DGPDS_BUILD_TESTS=$(usex test)
-DGPDS_BUILD_EXAMPLES=$(usex examples)
-DGPDS_FEATURE_SPDLOG=$(usex spdlog)
)
@@ -42,5 +44,4 @@ src_configure() {
src_install() {
cmake_src_install
use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
}

View File

@@ -38,5 +38,4 @@ src_configure() {
src_install() {
cmake_src_install
use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
}