Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: dev-libs/libgcrypt/
Date: Mon, 19 Nov 2018 14:14:00
Message-Id: 1542636447.a2f26a3534b5c96e6af23124e372665f6795c648.grobian@gentoo
1 commit: a2f26a3534b5c96e6af23124e372665f6795c648
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 19 14:07:27 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 19 14:07:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a2f26a35
7
8 dev-libs/libgcrypt: sync
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11 Package-Manager: Portage-2.3.40.3-prefix, Repoman-2.3.9
12
13 dev-libs/libgcrypt/Manifest | 1 +
14 dev-libs/libgcrypt/libgcrypt-1.8.4.ebuild | 83 +++++++++++++++++++++++++++++++
15 2 files changed, 84 insertions(+)
16
17 diff --git a/dev-libs/libgcrypt/Manifest b/dev-libs/libgcrypt/Manifest
18 index d3ba22bb09..de5ea41b06 100644
19 --- a/dev-libs/libgcrypt/Manifest
20 +++ b/dev-libs/libgcrypt/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libgcrypt-1.8.1.tar.bz2 2967344 BLAKE2B f259d08427f76238576e3897a821d457b6ff47c99716301b54b20a21ae7574a7ef1f4aa62947c443efb8274d5cb3d64dc1d9c4ea45568f6df6f29c2c1717860b SHA512 27c9d2fd9cba5afca71d421c9299d6942463975fae0bd10d4ff42cda2d7ea213e6b73c071a40fcf23ff52a93394cc7505ab332f8a4a3321826460e471eda5b4e
23 DIST libgcrypt-1.8.2.tar.bz2 2966534 BLAKE2B 1a0768dc1c4fc64913256575ec9ebe77fe8c4297c648972c93865271f0a18e60954d2f37c264bad5f1941b5e80753f34349ded9626e5c26ab469cc076da9ac2e SHA512 1e8c414f95bf6b50e778102ca7c1b3b1f30d8320826d9fff747a0a098ef85499cdc3e6de736853b9cd4e5dadda35c7c0a291e13643dcac5eaef44f2ddc7a6c09
24 +DIST libgcrypt-1.8.4.tar.bz2 2990108 BLAKE2B 97a1f9382adf23cd4ac491a392882f2e712fddd4f0d95a4fafb9cc70aa41ffa7b7b6a371b8368e9c99e3e1849b9d38078abc55703d4d8b25289f3c662e6ba8a1 SHA512 b831fc337eb14806897e224b0d1e78d1f8e9db91dffa818a015a4aa104144e2d971e5a855904907ee2bb9990a9d526de32d6787e1cae98e28a65c3258b2b1ea1
25
26 diff --git a/dev-libs/libgcrypt/libgcrypt-1.8.4.ebuild b/dev-libs/libgcrypt/libgcrypt-1.8.4.ebuild
27 new file mode 100644
28 index 0000000000..b63a47f314
29 --- /dev/null
30 +++ b/dev-libs/libgcrypt/libgcrypt-1.8.4.ebuild
31 @@ -0,0 +1,83 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools flag-o-matic multilib-minimal
38 +
39 +DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
40 +HOMEPAGE="http://www.gnupg.org/"
41 +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
42 +
43 +LICENSE="LGPL-2.1 MIT"
44 +SLOT="0/20" # subslot = soname major version
45 +KEYWORDS="~ppc-aix ~x64-cygwin ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
46 +IUSE="doc o-flag-munging static-libs"
47 +
48 +RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]"
49 +DEPEND="${RDEPEND}"
50 +BDEPEND="doc? ( virtual/texi2dvi )"
51 +
52 +PATCHES=(
53 + "${FILESDIR}"/${PN}-1.6.1-uscore.patch
54 + "${FILESDIR}"/${PN}-multilib-syspath.patch
55 +)
56 +
57 +MULTILIB_CHOST_TOOLS=(
58 + /usr/bin/libgcrypt-config
59 +)
60 +
61 +src_prepare() {
62 + # missing attribute(sysv_abi) for Cygwin?
63 + [[ ${CHOST} == *-cygwin* ]] && rm -f mpi/*/*.S
64 + default
65 + # always use -no-undefined even if upstream is not convinced yet
66 + sed -i -e 's/^no_undefined\s*=\s*$/& -no-undefined/' src/Makefile.am || die
67 + eautoreconf
68 +}
69 +
70 +multilib_src_configure() {
71 + if [[ ${CHOST} == *86*-solaris* ]] ; then
72 + # ASM code uses GNU ELF syntax, divide in particular, we need to
73 + # allow this via ASFLAGS, since we don't have a flag-o-matic
74 + # function for that, we'll have to abuse cflags for this
75 + append-cflags -Wa,--divide
76 + fi
77 + local myeconfargs=(
78 + --disable-dependency-tracking
79 + --enable-noexecstack
80 + $(use_enable o-flag-munging O-flag-munging)
81 + $(use_enable static-libs static)
82 +
83 + # disabled due to various applications requiring privileges
84 + # after libgcrypt drops them (bug #468616)
85 + --without-capabilities
86 +
87 + # http://trac.videolan.org/vlc/ticket/620
88 + # causes bus-errors on sparc64-solaris
89 + $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm")
90 + $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm")
91 + # no cygwin patch yet
92 + $([[ ${CHOST} == *-cygwin* ]] && \
93 + echo "gcry_cv_gcc_win64_platform_as_ok=no")
94 +
95 + GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config"
96 + )
97 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \
98 + $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
99 +}
100 +
101 +multilib_src_compile() {
102 + default
103 + multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf
104 +}
105 +
106 +multilib_src_install() {
107 + emake DESTDIR="${D}" install
108 + multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf
109 +}
110 +
111 +multilib_src_install_all() {
112 + default
113 + find "${D}" -name '*.la' -delete || die
114 +}