Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgcrypt/
Date: Tue, 20 Apr 2021 09:27:42
Message-Id: 1618910853.9a5e4b709c1c46d88d1b9b104e61c72bc5c1cfd8.zlogene@gentoo
1 commit: 9a5e4b709c1c46d88d1b9b104e61c72bc5c1cfd8
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 20 09:26:34 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 20 09:27:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a5e4b70
7
8 dev-libs/libgcrypt: Version bump (v1.9.3)
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 dev-libs/libgcrypt/Manifest | 1 +
14 dev-libs/libgcrypt/libgcrypt-1.9.3.ebuild | 86 +++++++++++++++++++++++++++++++
15 2 files changed, 87 insertions(+)
16
17 diff --git a/dev-libs/libgcrypt/Manifest b/dev-libs/libgcrypt/Manifest
18 index 7058d8e3a0b..6bd88b3b236 100644
19 --- a/dev-libs/libgcrypt/Manifest
20 +++ b/dev-libs/libgcrypt/Manifest
21 @@ -2,3 +2,4 @@ DIST libgcrypt-1.8.6.tar.bz2 2997781 BLAKE2B 90ecacae75633dfff248b9c07a72126aaa4
22 DIST libgcrypt-1.8.7.tar.bz2 2985660 BLAKE2B cb2132b826f3f3af240e6c9ac5fd992808aa17ce64144d17452591a5b1e402564af82c021b58f5fd620ebeb5894ac9654835f6d8376ec05ee41fc02189dd6825 SHA512 6309d17624d8029848990d225d5924886c951cef691266c8e010fbbb7f678972cee70cbb91d370ad0bcdc8c8761402a090c2c853c9427ec79293624a59da5060
23 DIST libgcrypt-1.9.1.tar.bz2 3202683 BLAKE2B 102a61c855fb4a9e5c9433f52988ea87db7672de6586ed47f888526369d0ef8ad640752ca1ef144c2db73ce90464d6624cc3b12dbdeaf568d706222af3955672 SHA512 e8a028724cf5476fff0ca82c5c279a64b3bc5d1fd1472b784df4084b185266825baffc49e27b90db7453c8faef68cd0b8264f379abacee629bbdf6b11f2a28d6
24 DIST libgcrypt-1.9.2.tar.bz2 3206187 BLAKE2B e0ceb02b0c26a7246c4146640a9dcea01429a365bd484532b9d85fdb0c8f4ac1308862e70899a1593f4665e4b2d16ceaa10029702f67720897975258a25d8ab0 SHA512 d2e3dc89788763229f554382b3cf0c3a2680f774258abc4c1fd9ef1ad44920d57d14422af9b6b405e42742e691d19ab2ee458fddf057e778964519eee090f016
25 +DIST libgcrypt-1.9.3.tar.bz2 3219061 BLAKE2B 51a6273ba28829c016d9a93fffa181aec24170d0e4d3a363c788f336219e1531274344adeea289f3cc09161fdb2e56846551367a8ac880b14e03a52ab0dd551a SHA512 977e766887c14f19aa1b9fcc0214303036a649e41cd4278de76da7d734cf36888e2e1b6275590dac523dcb4ba8ab07993e6ee8209fd5f1a3383d738b09a060d6
26
27 diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.3.ebuild b/dev-libs/libgcrypt/libgcrypt-1.9.3.ebuild
28 new file mode 100644
29 index 00000000000..584154b6ff2
30 --- /dev/null
31 +++ b/dev-libs/libgcrypt/libgcrypt-1.9.3.ebuild
32 @@ -0,0 +1,86 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools flag-o-matic multilib-minimal toolchain-funcs
39 +
40 +DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
41 +HOMEPAGE="https://www.gnupg.org/"
42 +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
43 +
44 +LICENSE="LGPL-2.1 MIT"
45 +SLOT="0/20" # subslot = soname major version
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="+asm cpu_flags_arm_neon cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc o-flag-munging static-libs"
48 +
49 +RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]"
50 +DEPEND="${RDEPEND}"
51 +BDEPEND="doc? ( virtual/texi2dvi )"
52 +
53 +PATCHES=(
54 + "${FILESDIR}"/${PN}-multilib-syspath.patch
55 +)
56 +
57 +MULTILIB_CHOST_TOOLS=(
58 + /usr/bin/libgcrypt-config
59 +)
60 +
61 +src_prepare() {
62 + default
63 + eautoreconf
64 +}
65 +
66 +multilib_src_configure() {
67 + if [[ ${CHOST} == *86*-solaris* ]] ; then
68 + # ASM code uses GNU ELF syntax, divide in particular, we need to
69 + # allow this via ASFLAGS, since we don't have a flag-o-matic
70 + # function for that, we'll have to abuse cflags for this
71 + append-cflags -Wa,--divide
72 + fi
73 + local myeconfargs=(
74 + CC_FOR_BUILD="$(tc-getBUILD_CC)"
75 +
76 + --enable-noexecstack
77 + $(use_enable cpu_flags_arm_neon neon-support)
78 + $(use_enable cpu_flags_x86_aes aesni-support)
79 + $(use_enable cpu_flags_x86_avx avx-support)
80 + $(use_enable cpu_flags_x86_avx2 avx2-support)
81 + $(use_enable cpu_flags_x86_padlock padlock-support)
82 + $(use_enable cpu_flags_x86_sha shaext-support)
83 + $(use_enable cpu_flags_x86_sse4_1 sse41-support)
84 + # required for sys-power/suspend[crypt], bug 751568
85 + $(use_enable static-libs static)
86 + $(use_enable o-flag-munging O-flag-munging)
87 +
88 + # disabled due to various applications requiring privileges
89 + # after libgcrypt drops them (bug #468616)
90 + --without-capabilities
91 +
92 + # http://trac.videolan.org/vlc/ticket/620
93 + # causes bus-errors on sparc64-solaris
94 + $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm")
95 + $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm")
96 +
97 + $(use asm || echo "--disable-asm")
98 +
99 + GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
100 + )
101 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \
102 + $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
103 +}
104 +
105 +multilib_src_compile() {
106 + default
107 + multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf
108 +}
109 +
110 +multilib_src_install() {
111 + emake DESTDIR="${D}" install
112 + multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf
113 +}
114 +
115 +multilib_src_install_all() {
116 + default
117 + find "${ED}" -type f -name '*.la' -delete || die
118 +}