Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tc-play/
Date: Fri, 03 Jun 2016 14:43:29
Message-Id: 1464965117.3e78968b418f2e03e35de30c919441cb410f4171.blueness@gentoo
1 commit: 3e78968b418f2e03e35de30c919441cb410f4171
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 14:40:48 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 14:45:17 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e78968b
7
8 app-crypt/tc-play: add libressl support and restructure USE flags
9
10 Package-Manager: portage-2.2.28
11
12 app-crypt/tc-play/tc-play-2.0-r1.ebuild | 56 +++++++++++++++++++++++++++++++++
13 1 file changed, 56 insertions(+)
14
15 diff --git a/app-crypt/tc-play/tc-play-2.0-r1.ebuild b/app-crypt/tc-play/tc-play-2.0-r1.ebuild
16 new file mode 100644
17 index 0000000..2bb6073
18 --- /dev/null
19 +++ b/app-crypt/tc-play/tc-play-2.0-r1.ebuild
20 @@ -0,0 +1,56 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +inherit toolchain-funcs multilib
28 +
29 +DESCRIPTION="a free, pretty much fully featured and stable TrueCrypt implementation"
30 +HOMEPAGE="https://github.com/bwalex/tc-play"
31 +SRC_URI="https://github.com/bwalex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
32 +
33 +LICENSE="BSD"
34 +SLOT="0"
35 +KEYWORDS="~amd64"
36 +IUSE="gnutls libressl"
37 +
38 +DEPEND="
39 + dev-libs/libgpg-error
40 + sys-fs/lvm2
41 + sys-apps/util-linux
42 + dev-libs/libgcrypt:0
43 + gnutls? ( net-libs/gnutls )
44 + !gnutls? (
45 + !libressl? ( dev-libs/openssl:0= )
46 + libressl? ( dev-libs/libressl:0= )
47 + )"
48 +RDEPEND="${DEPEND}"
49 +
50 +pkg_setup() {
51 + local backend="openssl"
52 + use gnutls && local backend="gcrypt"
53 +
54 + EXTRA_MAKE_FLAGS=(
55 + PBKDF_BACKEND="${backend}"
56 + WARNFLAGS=""
57 + CC=$(tc-getCC)
58 + AR=$(tc-getAR)
59 + PREFIX=/usr \
60 + LIBDIR=/usr/$(get_libdir)
61 + )
62 +}
63 +
64 +src_compile() {
65 + emake -f Makefile.classic \
66 + tcplay \
67 + "${EXTRA_MAKE_FLAGS[@]}"
68 +}
69 +
70 +src_install() {
71 + emake -f Makefile.classic \
72 + "${EXTRA_MAKE_FLAGS[@]}" \
73 + install_program \
74 + DESTDIR="${ED}"
75 + dodoc README.md
76 +}