guru/dev-libs/polyseed/polyseed-9999.ebuild
Adam Pimentel f28a019f9f
dev-libs/polyseed: prevent building static-libs without static-libs USE
Signed-off-by: Adam Pimentel <adam.pimentel@protonmail.com>
2023-05-30 02:22:39 -04:00

27 lines
685 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake git-r3
DESCRIPTION="Mnemonic seed library for Monero and other CryptoNote-based currencies."
HOMEPAGE="https://github.com/tevador/polyseed"
SRC_URI=""
EGIT_REPO_URI="https://github.com/tevador/polyseed.git"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS=""
IUSE="static-libs test"
BDEPEND="virtual/pkgconfig"
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" "")
}