Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/veracrypt/
Date: Fri, 25 Sep 2020 19:30:34
Message-Id: 1601062210.2a90ec873cd620ecebe90df2e89d800ff9da7f38.gokturk@gentoo
1 commit: 2a90ec873cd620ecebe90df2e89d800ff9da7f38
2 Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 19:27:16 2020 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 19:30:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a90ec87
7
8 app-crypt/veracrypt: bump to 1.24-Update7
9
10 Closes: https://bugs.gentoo.org/736691
11 Package-Manager: Portage-3.0.8, Repoman-3.0.1
12 Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org>
13
14 app-crypt/veracrypt/Manifest | 1 +
15 app-crypt/veracrypt/veracrypt-1.24_p7.ebuild | 101 +++++++++++++++++++++++++++
16 2 files changed, 102 insertions(+)
17
18 diff --git a/app-crypt/veracrypt/Manifest b/app-crypt/veracrypt/Manifest
19 index 0903b8397a4..9926a221c11 100644
20 --- a/app-crypt/veracrypt/Manifest
21 +++ b/app-crypt/veracrypt/Manifest
22 @@ -1,2 +1,3 @@
23 DIST veracrypt-1.24_p2.tar.gz 25208374 BLAKE2B 2667fb93e6884d97a673fe793b5f83f73961c2362e7704199b5ed0163c03f19313843583f7f2a15e05ee71516e45db97752350d2c27d22f1f278668b7c07aff9 SHA512 f778b8f6288f6f9886a15fa582f6c7126d9eaea319e854ad11bd5d44105ad5a3cb8b750d410ed8fd531ec3b23f9bad83934e6cefedd1352603d4882d2ca0ad84
24 DIST veracrypt-1.24_p4.tar.gz 25212608 BLAKE2B 12d124cc5c869b8112e29624fcc5af3dd96d3c5e0179c643bf16cd361cc01677c09710faa192e7c9fe5f2ca78fbd826bc9df99f34e83ce4534f26dec01185761 SHA512 e077d6fe6a35234737387c4a6997399a251e238ab75524f53efe8ed742a35164fa4d5fcb0f15816dcb29d31fb8a4bb175d45b9aefb912c4747194fb320fa408d
25 +DIST veracrypt-1.24_p7.tar.gz 25113248 BLAKE2B 8ead3325ce6fadf4ca8211ea45daaa82a655f29006f224235f44200839289d42fabe84da2e731fc6a169a7d157535c719b2cd9294524e68532c0065e41ed733c SHA512 d149736d4d6740a89bfce892f44757600c6411776b471a208a75b4573bbc6125535ef1b68c2f55903ff82f4d0fff13b8b07d3cf15c7a301c39158aefffc29e17
26
27 diff --git a/app-crypt/veracrypt/veracrypt-1.24_p7.ebuild b/app-crypt/veracrypt/veracrypt-1.24_p7.ebuild
28 new file mode 100644
29 index 00000000000..120e43f27ad
30 --- /dev/null
31 +++ b/app-crypt/veracrypt/veracrypt-1.24_p7.ebuild
32 @@ -0,0 +1,101 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +inherit desktop eapi7-ver linux-info pax-utils toolchain-funcs wxwidgets
38 +
39 +MY_PV="$(ver_cut 1-2)-Update$(ver_cut 4)"
40 +DESCRIPTION="Disk encryption with strong security based on TrueCrypt"
41 +HOMEPAGE="https://www.veracrypt.fr/en/Home.html"
42 +SRC_URI="https://github.com/${PN}/VeraCrypt/archive/VeraCrypt_${MY_PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +# The modules not linked against in Linux include (but not limited to):
45 +# libzip, chacha-xmm, chacha256, chachaRng, rdrand, t1ha2
46 +# Tested by actually removing the source files and performing a build
47 +# For this reason, we don't have to worry about their licenses
48 +LICENSE="Apache-2.0 BSD truecrypt-3.0"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +IUSE="+asm cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_ssse3 doc X"
52 +RESTRICT="bindist mirror"
53 +
54 +WX_GTK_VER="3.0-gtk3"
55 +
56 +RDEPEND="
57 + sys-fs/lvm2
58 + sys-fs/fuse:0
59 + x11-libs/wxGTK:${WX_GTK_VER}[X?]
60 + app-admin/sudo
61 + dev-libs/pkcs11-helper
62 +"
63 +DEPEND="
64 + ${RDEPEND}
65 + virtual/pkgconfig
66 + asm? ( dev-lang/yasm )
67 +"
68 +
69 +S="${WORKDIR}/VeraCrypt-VeraCrypt_${MY_PV}/src"
70 +
71 +pkg_setup() {
72 + local CONFIG_CHECK="~BLK_DEV_DM ~CRYPTO ~CRYPTO_XTS ~DM_CRYPT ~FUSE_FS"
73 + linux-info_pkg_setup
74 +
75 + setup-wxwidgets
76 +}
77 +
78 +src_compile() {
79 + local myemakeargs=(
80 + NOSTRIP=1
81 + NOTEST=1
82 + VERBOSE=1
83 + CC="$(tc-getCC)"
84 + CXX="$(tc-getCXX)"
85 + AR="$(tc-getAR)"
86 + RANLIB="$(tc-getRANLIB)"
87 + TC_EXTRA_CFLAGS="${CFLAGS}"
88 + TC_EXTRA_CXXFLAGS="${CXXFLAGS}"
89 + TC_EXTRA_LFLAGS="${LDFLAGS}"
90 + WX_CONFIG="${WX_CONFIG}"
91 + $(usex X "" "NOGUI=1")
92 + $(usex asm "" "NOASM=1")
93 + $(usex cpu_flags_x86_sse2 "" "NOSSE2=1")
94 + $(usex cpu_flags_x86_sse4_1 "SSE41=1" "")
95 + $(usex cpu_flags_x86_ssse3 "SSSE3=1" "")
96 + )
97 +
98 + emake "${myemakeargs[@]}"
99 +}
100 +
101 +src_test() {
102 + "${S}/Main/veracrypt" --text --test || die "tests failed"
103 +}
104 +
105 +src_install() {
106 + local DOCS=( Readme.txt )
107 + local HTML_DOCS=( )
108 +
109 + dobin Main/veracrypt
110 + if use doc; then
111 + DOCS+=( "${S}"/../doc/EFI-DCS )
112 + docompress -x "/usr/share/doc/${PF}/EFI-DCS"
113 + HTML_DOCS+=( "${S}"/../doc/html/. )
114 + fi
115 + einstalldocs
116 +
117 + newinitd "${FILESDIR}/${PN}.init" ${PN}
118 +
119 + if use X; then
120 + local s
121 + for s in 16 48 128 256; do
122 + newicon -s ${s} Resources/Icons/VeraCrypt-${s}x${s}.xpm veracrypt.xpm
123 + done
124 + make_desktop_entry ${PN} "VeraCrypt" ${PN} "Utility;Security"
125 + fi
126 +
127 + pax-mark -m "${D%/}/usr/bin/veracrypt"
128 +}
129 +
130 +pkg_postinst() {
131 + ewarn "VeraCrypt has a very restrictive license. Please be explicitly aware"
132 + ewarn "of the limitations on redistribution of binaries or modified source."
133 +}