diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-06-03 10:40:48 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-06-03 10:45:17 -0400 |
commit | 3e78968b418f2e03e35de30c919441cb410f4171 (patch) | |
tree | 93f3b6eb78b80a9ff9ff8a3a4109f59176fc2177 /app-crypt | |
parent | media-video/kaffeine: Update DESCRIPTION (diff) | |
download | gentoo-3e78968b418f2e03e35de30c919441cb410f4171.tar.gz gentoo-3e78968b418f2e03e35de30c919441cb410f4171.tar.bz2 gentoo-3e78968b418f2e03e35de30c919441cb410f4171.zip |
app-crypt/tc-play: add libressl support and restructure USE flags
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/tc-play/tc-play-2.0-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/app-crypt/tc-play/tc-play-2.0-r1.ebuild b/app-crypt/tc-play/tc-play-2.0-r1.ebuild new file mode 100644 index 000000000000..2bb6073c93cb --- /dev/null +++ b/app-crypt/tc-play/tc-play-2.0-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs multilib + +DESCRIPTION="a free, pretty much fully featured and stable TrueCrypt implementation" +HOMEPAGE="https://github.com/bwalex/tc-play" +SRC_URI="https://github.com/bwalex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnutls libressl" + +DEPEND=" + dev-libs/libgpg-error + sys-fs/lvm2 + sys-apps/util-linux + dev-libs/libgcrypt:0 + gnutls? ( net-libs/gnutls ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + )" +RDEPEND="${DEPEND}" + +pkg_setup() { + local backend="openssl" + use gnutls && local backend="gcrypt" + + EXTRA_MAKE_FLAGS=( + PBKDF_BACKEND="${backend}" + WARNFLAGS="" + CC=$(tc-getCC) + AR=$(tc-getAR) + PREFIX=/usr \ + LIBDIR=/usr/$(get_libdir) + ) +} + +src_compile() { + emake -f Makefile.classic \ + tcplay \ + "${EXTRA_MAKE_FLAGS[@]}" +} + +src_install() { + emake -f Makefile.classic \ + "${EXTRA_MAKE_FLAGS[@]}" \ + install_program \ + DESTDIR="${ED}" + dodoc README.md +} |