guru/dev-libs/polyseed/polyseed-1.0.0.ebuild
Adam Pimentel bfd60cbaa6
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>
2023-03-14 21:52:49 -04:00

21 lines
574 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Mnemonic seed library for Monero and other CryptoNote-based currencies."
HOMEPAGE="https://github.com/tevador/polyseed"
SRC_URI="https://github.com/tevador/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="static-libs test"
BDEPEND="virtual/pkgconfig"
src_compile() {
cmake_build polyseed $(usex "static-libs" "polyseed_static" "") $(usex "test" "polyseed-tests" "")
}