app-crypt/oid-converter: Switch eutils to toolchain-funcs as need should be restricte...
[portage-overlay.git] / dev-libs / libgcrypt / libgcrypt-1.5.3-r101.ebuild
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libgcrypt/libgcrypt-1.5.3-r100.ebuild,v 1.3 2014/03/01 18:49:18 mgorny Exp $
4
5 EAPI=5
6 AUTOTOOLS_AUTORECONF=1
7
8 inherit autotools-multilib
9
10 DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
11 HOMEPAGE="http://www.gnupg.org/"
12 SRC_URI="mirror://gnupg/libgcrypt/${P}.tar.bz2
13         ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
14
15 LICENSE="LGPL-2.1 MIT"
16 SLOT="11/11" # subslot = soname major version
17 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
18 IUSE=""
19
20 RDEPEND=">=dev-libs/libgpg-error-1.8
21         !dev-libs/libgcrypt:0/11"
22 DEPEND="${RDEPEND}"
23
24 DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
25
26 PATCHES=(
27         "${FILESDIR}"/${PN}-1.5.0-uscore.patch
28         "${FILESDIR}"/${PN}-multilib-syspath.patch
29 )
30
31 src_configure() {
32         local myeconfargs=(
33                 --disable-padlock-support # bug 201917
34                 --disable-dependency-tracking
35                 --enable-noexecstack
36                 --disable-O-flag-munging
37
38                 # disabled due to various applications requiring privileges
39                 # after libgcrypt drops them (bug #468616)
40                 --without-capabilities
41
42                 # http://trac.videolan.org/vlc/ticket/620
43                 # causes bus-errors on sparc64-solaris
44                 $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm")
45                 $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm")
46         )
47         autotools-multilib_src_configure
48 }
49
50 src_install() {
51         autotools-multilib_src_install
52
53         rm -r "${ED%/}"/usr/{bin,include,lib*/*.so,share} || die
54 }