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: Sun, 25 Oct 2020 19:45:42
Message-Id: 1603655133.9acd537fdac0e477a6d195de8f93c08da60a0dfe.zlogene@gentoo
1 commit: 9acd537fdac0e477a6d195de8f93c08da60a0dfe
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 25 19:45:20 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 25 19:45:33 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9acd537f
7
8 dev-libs/libgcrypt: Version bump (v1.8.7)
9
10 Package-Manager: Portage-3.0.8, 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.8.7.ebuild | 76 +++++++++++++++++++++++++++++++
15 2 files changed, 77 insertions(+)
16
17 diff --git a/dev-libs/libgcrypt/Manifest b/dev-libs/libgcrypt/Manifest
18 index beefac7f96c..1b13a22dbe1 100644
19 --- a/dev-libs/libgcrypt/Manifest
20 +++ b/dev-libs/libgcrypt/Manifest
21 @@ -1 +1,2 @@
22 DIST libgcrypt-1.8.6.tar.bz2 2997781 BLAKE2B 90ecacae75633dfff248b9c07a72126aaa4a5c285141f89c42237326ae3bfb99c937eef05d87b466c3d8f5cf022725ccee5c0dbc74d4eb57523a8a2892864b65 SHA512 28a26f665b7e327b79815849ee6e84ab384ee9105d81d4d06e4feeea07d986f940cbbb9faaae8712068cace45b4110a62965a93201da0e1ad008b65808b2b29b
23 +DIST libgcrypt-1.8.7.tar.bz2 2985660 BLAKE2B cb2132b826f3f3af240e6c9ac5fd992808aa17ce64144d17452591a5b1e402564af82c021b58f5fd620ebeb5894ac9654835f6d8376ec05ee41fc02189dd6825 SHA512 6309d17624d8029848990d225d5924886c951cef691266c8e010fbbb7f678972cee70cbb91d370ad0bcdc8c8761402a090c2c853c9427ec79293624a59da5060
24
25 diff --git a/dev-libs/libgcrypt/libgcrypt-1.8.7.ebuild b/dev-libs/libgcrypt/libgcrypt-1.8.7.ebuild
26 new file mode 100644
27 index 00000000000..d95cba2dee7
28 --- /dev/null
29 +++ b/dev-libs/libgcrypt/libgcrypt-1.8.7.ebuild
30 @@ -0,0 +1,76 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit autotools flag-o-matic multilib-minimal toolchain-funcs
37 +
38 +DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
39 +HOMEPAGE="http://www.gnupg.org/"
40 +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
41 +
42 +LICENSE="LGPL-2.1 MIT"
43 +SLOT="0/20" # subslot = soname major version
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="doc o-flag-munging"
46 +
47 +RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]"
48 +DEPEND="${RDEPEND}"
49 +BDEPEND="doc? ( virtual/texi2dvi )"
50 +
51 +PATCHES=(
52 + "${FILESDIR}"/${PN}-1.6.1-uscore.patch
53 + "${FILESDIR}"/${PN}-multilib-syspath.patch
54 +)
55 +
56 +MULTILIB_CHOST_TOOLS=(
57 + /usr/bin/libgcrypt-config
58 +)
59 +
60 +src_prepare() {
61 + default
62 + eautoreconf
63 +}
64 +
65 +multilib_src_configure() {
66 + if [[ ${CHOST} == *86*-solaris* ]] ; then
67 + # ASM code uses GNU ELF syntax, divide in particular, we need to
68 + # allow this via ASFLAGS, since we don't have a flag-o-matic
69 + # function for that, we'll have to abuse cflags for this
70 + append-cflags -Wa,--divide
71 + fi
72 + local myeconfargs=(
73 + CC_FOR_BUILD=$(tc-getBUILD_CC)
74 + --enable-noexecstack
75 + --disable-static
76 + $(use_enable o-flag-munging O-flag-munging)
77 +
78 + # disabled due to various applications requiring privileges
79 + # after libgcrypt drops them (bug #468616)
80 + --without-capabilities
81 +
82 + # http://trac.videolan.org/vlc/ticket/620
83 + # causes bus-errors on sparc64-solaris
84 + $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm")
85 + $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm")
86 +
87 + GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config"
88 + )
89 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \
90 + $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
91 +}
92 +
93 +multilib_src_compile() {
94 + default
95 + multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf
96 +}
97 +
98 +multilib_src_install() {
99 + emake DESTDIR="${D}" install
100 + multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf
101 +}
102 +
103 +multilib_src_install_all() {
104 + default
105 + find "${D}" -type f -name '*.la' -delete || die
106 +}