dev-libs/libgcrypt: New upstream version 1.8.1
authorKristian Fiskerstrand <k_f@gentoo.org>
Mon, 28 Aug 2017 10:24:42 +0000 (12:24 +0200)
committerKristian Fiskerstrand <k_f@gentoo.org>
Mon, 28 Aug 2017 10:24:42 +0000 (12:24 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

dev-libs/libgcrypt/Manifest
dev-libs/libgcrypt/libgcrypt-1.8.1.ebuild [new file with mode: 0644]

index f9dd96d52432f647c8f2ff6b88b704fdf6b6d4d0..8678b1722d0d6467a391da2dfd6239a8a6459597 100644 (file)
@@ -3,3 +3,4 @@ DIST libgcrypt-1.7.6.tar.bz2 2897695 SHA256 626aafee84af9d2ce253d2c143dc1c0902dd
 DIST libgcrypt-1.7.7.tar.bz2 2861190 SHA256 b9b85eba0793ea3e6e66b896eb031fa05e1a4517277cc9ab10816b359254cd9a SHA512 2ec96c5e772b73002e25af89363170c37e882197db578eae35a8f542a785fbe52843eed029a5bd6f1a8b6dc5d32803961af425db082e2db597767ebd67779118 WHIRLPOOL 08d6d893cf515ffebf77b1aad297b99c68987b64c28628ec768fdaec826bd1afdaed5f133793c8c708bd1e539872367a5a35b8183b0dcad7b9c7530b83223a09
 DIST libgcrypt-1.7.8.tar.bz2 2897853 SHA256 948276ea47e6ba0244f36a17b51dcdd52cfd1e664b0a1ac3bc82134fb6cec199 SHA512 fd8af85415f40c4ca3e35e2c78108b43cfddf031b42ac4d596847ea1c29a89b628036c1e23a6bb108b388a04b7d6b2307a1ce491310654040241435c0c7cc2a4 WHIRLPOOL 4872e40c00eb0ae9e65b7b6eaacb266c0c6cfe89a985f908e3c57c743523bd3001e1b55f926ea8a532d771093a04966c7e85350eb2e1de83e14f1d4a2ee60919
 DIST libgcrypt-1.8.0.tar.bz2 2963266 SHA256 23e49697b87cc4173b03b4757c8df4314e3149058fa18bdc4f82098f103d891b SHA512 1b486e15ee5484e5547ec72280b37d3813412321c3ffb5813233f73de718661b4c1a6ed948adaa620a46d801449bb0a29b00a3bbbe169c7ad358144e2d1527e0 WHIRLPOOL a48522c1c6b6eebda6f08bee4ec6b5e22c41c479402b7cab1665944df73e1e88c7602a1653a10fcae61ab0a543b68320cab75707cca916f2ea4e71ddb545660c
+DIST libgcrypt-1.8.1.tar.bz2 2967344 SHA256 7a2875f8b1ae0301732e878c0cca2c9664ff09ef71408f085c50e332656a78b3 SHA512 27c9d2fd9cba5afca71d421c9299d6942463975fae0bd10d4ff42cda2d7ea213e6b73c071a40fcf23ff52a93394cc7505ab332f8a4a3321826460e471eda5b4e WHIRLPOOL 42221344abb9e6f75048bdb9aaec4f8ffe032ddaa5f6bd16dd9c218f937fd52f26b13d088806c6684f6cc6b85b768b8bb04f89255641d82e40db6cd678d62617
diff --git a/dev-libs/libgcrypt/libgcrypt-1.8.1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.8.1.ebuild
new file mode 100644 (file)
index 0000000..4760de5
--- /dev/null
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools flag-o-matic ltprune multilib-minimal
+
+DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
+HOMEPAGE="http://www.gnupg.org/"
+SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 MIT"
+SLOT="0/20" # subslot = soname major version
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc static-libs"
+
+RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]
+       abi_x86_32? (
+               !<=app-emulation/emul-linux-x86-baselibs-20131008-r19
+               !app-emulation/emul-linux-x86-baselibs[-abi_x86_32]
+       )"
+DEPEND="${RDEPEND}
+       doc? ( virtual/texi2dvi )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.6.1-uscore.patch
+       "${FILESDIR}"/${PN}-multilib-syspath.patch
+)
+
+MULTILIB_CHOST_TOOLS=(
+       /usr/bin/libgcrypt-config
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+multilib_src_configure() {
+       if [[ ${CHOST} == *86*-solaris* ]] ; then
+               # ASM code uses GNU ELF syntax, divide in particular, we need to
+               # allow this via ASFLAGS, since we don't have a flag-o-matic
+               # function for that, we'll have to abuse cflags for this
+               append-cflags -Wa,--divide
+       fi
+       local myeconfargs=(
+               --disable-dependency-tracking
+               --enable-noexecstack
+               --disable-O-flag-munging
+               $(use_enable static-libs static)
+
+               # disabled due to various applications requiring privileges
+               # after libgcrypt drops them (bug #468616)
+               --without-capabilities
+
+               # http://trac.videolan.org/vlc/ticket/620
+               # causes bus-errors on sparc64-solaris
+               $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm")
+               $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm")
+       )
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+       default
+       multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf
+}
+
+multilib_src_install() {
+       emake DESTDIR="${D}" install
+       multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf
+}
+
+multilib_src_install_all() {
+       default
+       prune_libtool_files
+}