summaryrefslogtreecommitdiff
path: root/dev-libs/polyseed/polyseed-2.0.0.ebuild
blob: edb37dcde734f4c51e788a0f7a90bf5b5af74f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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_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" "")
}