dev-libs/polyseed: prevent building static-libs without static-libs USE

Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
This commit is contained in:
Adam Pimentel
2023-05-30 02:22:39 -04:00
parent b53ef991f8
commit f28a019f9f
3 changed files with 21 additions and 6 deletions

View File

@@ -16,6 +16,11 @@ KEYWORDS=""
IUSE="static-libs test"
BDEPEND="virtual/pkgconfig"
src_compile() {
cmake_build polyseed $(usex "static-libs" "polyseed_static" "") $(usex "test" "polyseed-tests" "")
src_prepare() {
sed -i "s/install(TARGETS polyseed polyseed_static/install(TARGETS polyseed/g" "${S}"/CMakeLists.txt
cmake_src_prepare
}
src_compile() {
cmake_build polyseed $(usex "static-libs" "polyseed_static" "") $(usex "test" "polyseed-tests" "")
}