dev-libs/polyseed: conditionally build static-libs and test targets based on USE flags

Closes: https://bugs.gentoo.org/901189
Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
This commit is contained in:
Adam Pimentel
2023-03-14 21:52:49 -04:00
parent f2096ec8a3
commit bfd60cbaa6
3 changed files with 11 additions and 3 deletions

View File

@@ -12,5 +12,9 @@ SRC_URI="https://github.com/tevador/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="" #todo: make test executible an optiona; USE flag
IUSE="static-libs test"
BDEPEND="virtual/pkgconfig"
src_compile() {
cmake_build polyseed $(usex "static-libs" "polyseed_static" "") $(usex "test" "polyseed-tests" "")
}

View File

@@ -12,5 +12,9 @@ SRC_URI="https://github.com/tevador/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="" #todo: make test executible an optiona; USE flag
IUSE="static-libs test"
BDEPEND="virtual/pkgconfig"
src_compile() {
cmake_build polyseed $(usex "static-libs" "polyseed_static" "") $(usex "test" "polyseed-tests" "")
}