Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tc-play/, app-crypt/tc-play/files/
Date: Mon, 01 Aug 2022 03:15:45
Message-Id: 1659323664.ae3d6c0ed6a90e6f1aad6687f4be9d2aa180ae9a.sam@gentoo
1 commit: ae3d6c0ed6a90e6f1aad6687f4be9d2aa180ae9a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 03:14:15 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 03:14:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae3d6c0e
7
8 app-crypt/tc-play: add 3.3
9
10 Closes: https://bugs.gentoo.org/722072
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-crypt/tc-play/Manifest | 1 +
14 app-crypt/tc-play/files/tc-play-3.3-ldflags.patch | 11 +++++
15 app-crypt/tc-play/tc-play-3.3.ebuild | 60 +++++++++++++++++++++++
16 3 files changed, 72 insertions(+)
17
18 diff --git a/app-crypt/tc-play/Manifest b/app-crypt/tc-play/Manifest
19 index 429e10a5c039..4cbb6d555306 100644
20 --- a/app-crypt/tc-play/Manifest
21 +++ b/app-crypt/tc-play/Manifest
22 @@ -1 +1,2 @@
23 DIST tc-play-2.0.tar.gz 1015525 BLAKE2B 1481eecc8aaf2cb9698eed96a9cdabaa2b74daf11865dd29a6fab7e66fb76aa2f6e544fe7ac53a2510415ee6ddf3c5732c774a26708fe354113eb9de6a9b62d9 SHA512 17408b2a664eb6822c77ede4f38ca67cdf643512014619d830a2c024bb8971811eded4edd65f6398d6112a3b57cd11a5b414357878c817c9cc2aac9d851946d7
24 +DIST tc-play-3.3.tar.gz 2591752 BLAKE2B c02489d6e291dfc1425745af86506e72fda7f67dba0668b9250a85604ba301761b5bbbad6927238042a0f89da1035d9e3275006e34e895835a53cdc24974f419 SHA512 78cc84b1ca333e6760b87dfd22035a027bea8d562201c028247e9cfc4377260490cdc42236ef1eeb1c263a49ca1654d8ae637abdf1b4e507f958bc780fc85d94
25
26 diff --git a/app-crypt/tc-play/files/tc-play-3.3-ldflags.patch b/app-crypt/tc-play/files/tc-play-3.3-ldflags.patch
27 new file mode 100644
28 index 000000000000..5976ecdd4d81
29 --- /dev/null
30 +++ b/app-crypt/tc-play/files/tc-play-3.3-ldflags.patch
31 @@ -0,0 +1,11 @@
32 +--- a/Makefile.classic
33 ++++ b/Makefile.classic
34 +@@ -84,7 +84,7 @@ all: tcplay libtcplay.so libtcplay.a
35 + $(CC) $(COMMON_CFLAGS) $(CFLAGS) -c -o $@ $<
36 +
37 + tcplay: $(OBJS_PROG)
38 +- $(CC) $(COMMON_CFLAGS) $(CFLAGS) -o tcplay $(OBJS_PROG) $(LIBS)
39 ++ $(CC) $(COMMON_CFLAGS) $(CFLAGS) -o tcplay $(LDFLAGS) $(OBJS_PROG) $(LIBS)
40 +
41 + libtcplay.so.$(MAJ_VER).$(MIN_VER): $(OBJS_LIB)
42 + $(CC) -shared -Wl,-version-script=tcplay.map -Wl,-soname=libtcplay.so.$(MAJ_VER).$(MIN_VER) $(LDFLAGS) \
43
44 diff --git a/app-crypt/tc-play/tc-play-3.3.ebuild b/app-crypt/tc-play/tc-play-3.3.ebuild
45 new file mode 100644
46 index 000000000000..bb69d8e37d7b
47 --- /dev/null
48 +++ b/app-crypt/tc-play/tc-play-3.3.ebuild
49 @@ -0,0 +1,60 @@
50 +# Copyright 1999-2022 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=8
54 +
55 +inherit toolchain-funcs
56 +
57 +DESCRIPTION="A free, pretty much fully featured and stable TrueCrypt implementation"
58 +HOMEPAGE="https://github.com/bwalex/tc-play"
59 +SRC_URI="https://github.com/bwalex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
60 +
61 +LICENSE="BSD"
62 +SLOT="0"
63 +KEYWORDS="~amd64"
64 +IUSE="gnutls"
65 +
66 +DEPEND="
67 + dev-libs/libgcrypt:=
68 + dev-libs/libgpg-error
69 + sys-apps/util-linux
70 + sys-fs/lvm2
71 + gnutls? ( net-libs/gnutls )
72 + !gnutls? (
73 + dev-libs/openssl:=
74 + )
75 +"
76 +RDEPEND="${DEPEND}"
77 +
78 +DOCS=( README.md )
79 +
80 +PATCHES=(
81 + "${FILESDIR}"/${PN}-3.3-ldflags.patch
82 +)
83 +
84 +src_configure() {
85 + local backend="openssl"
86 + use gnutls && local backend="gcrypt"
87 +
88 + EXTRA_MAKE_FLAGS=(
89 + PBKDF_BACKEND="${backend}"
90 + WARNFLAGS=""
91 + CC="$(tc-getCC)"
92 + AR="$(tc-getAR)"
93 + PREFIX=/usr
94 + LIBDIR=/usr/$(get_libdir)
95 + )
96 +}
97 +
98 +src_compile() {
99 + emake -f Makefile.classic \
100 + tcplay \
101 + "${EXTRA_MAKE_FLAGS[@]}"
102 +}
103 +
104 +src_install() {
105 + emake -f Makefile.classic \
106 + "${EXTRA_MAKE_FLAGS[@]}" \
107 + install_program \
108 + DESTDIR="${ED}"
109 +}