app-metrics/prometheus: add 3.1.0
[gentoo/gentoo.git] / app-crypt / tc-play / tc-play-3.3.ebuild
blobbb69d8e37d7b6b83ee94b00db4fbb5e94a7388d3
1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit toolchain-funcs
8 DESCRIPTION="A free, pretty much fully featured and stable TrueCrypt implementation"
9 HOMEPAGE="https://github.com/bwalex/tc-play"
10 SRC_URI="https://github.com/bwalex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="~amd64"
15 IUSE="gnutls"
17 DEPEND="
18         dev-libs/libgcrypt:=
19         dev-libs/libgpg-error
20         sys-apps/util-linux
21         sys-fs/lvm2
22         gnutls? ( net-libs/gnutls )
23         !gnutls? (
24                 dev-libs/openssl:=
25         )
27 RDEPEND="${DEPEND}"
29 DOCS=( README.md )
31 PATCHES=(
32         "${FILESDIR}"/${PN}-3.3-ldflags.patch
35 src_configure() {
36         local backend="openssl"
37         use gnutls && local backend="gcrypt"
39         EXTRA_MAKE_FLAGS=(
40                 PBKDF_BACKEND="${backend}"
41                 WARNFLAGS=""
42                 CC="$(tc-getCC)"
43                 AR="$(tc-getAR)"
44                 PREFIX=/usr
45                 LIBDIR=/usr/$(get_libdir)
46         )
49 src_compile() {
50         emake -f Makefile.classic \
51                 tcplay \
52                 "${EXTRA_MAKE_FLAGS[@]}"
55 src_install() {
56         emake -f Makefile.classic \
57                 "${EXTRA_MAKE_FLAGS[@]}" \
58                 install_program \
59                 DESTDIR="${ED}"