1 |
commit: 118931f8c4f65885b567bb408be708d8533b116b |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 2 19:55:37 2015 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 2 19:55:37 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=118931f8 |
7 |
|
8 |
Revert "dev-libs/libgcrypt: cleanup" |
9 |
|
10 |
This reverts commit f48968fb36cdd0c12591f7d66c4973e5c3c9e3b3. |
11 |
|
12 |
dev-libs/libgcrypt/libgcrypt-1.5.4-r1.ebuild | 57 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 57 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/libgcrypt/libgcrypt-1.5.4-r1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.5.4-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..fe222f9 |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/libgcrypt/libgcrypt-1.5.4-r1.ebuild |
20 |
@@ -0,0 +1,57 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+AUTOTOOLS_AUTORECONF=1 |
27 |
+ |
28 |
+inherit autotools-multilib |
29 |
+ |
30 |
+DESCRIPTION="General purpose crypto library based on the code used in GnuPG" |
31 |
+HOMEPAGE="http://www.gnupg.org/" |
32 |
+SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" |
33 |
+ |
34 |
+LICENSE="LGPL-2.1 MIT" |
35 |
+SLOT="0/11" # subslot = soname major version |
36 |
+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" |
37 |
+IUSE="static-libs" |
38 |
+ |
39 |
+RDEPEND=">=dev-libs/libgpg-error-1.12[${MULTILIB_USEDEP}] |
40 |
+ !dev-libs/libgcrypt:11 |
41 |
+ abi_x86_32? ( |
42 |
+ !<=app-emulation/emul-linux-x86-baselibs-20131008-r19 |
43 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32] |
44 |
+ )" |
45 |
+DEPEND="${RDEPEND}" |
46 |
+ |
47 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) |
48 |
+ |
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}"/${PN}-1.5.0-uscore.patch |
51 |
+ "${FILESDIR}"/${PN}-multilib-syspath.patch |
52 |
+ "${FILESDIR}"/${P}-clang-arm.patch |
53 |
+) |
54 |
+ |
55 |
+MULTILIB_CHOST_TOOLS=( |
56 |
+ /usr/bin/libgcrypt-config |
57 |
+) |
58 |
+ |
59 |
+src_configure() { |
60 |
+ local myeconfargs=( |
61 |
+ --disable-padlock-support # bug 201917 |
62 |
+ --disable-dependency-tracking |
63 |
+ --enable-noexecstack |
64 |
+ --disable-O-flag-munging |
65 |
+ $(use_enable static-libs static) |
66 |
+ |
67 |
+ # disabled due to various applications requiring privileges |
68 |
+ # after libgcrypt drops them (bug #468616) |
69 |
+ --without-capabilities |
70 |
+ |
71 |
+ # http://trac.videolan.org/vlc/ticket/620 |
72 |
+ # causes bus-errors on sparc64-solaris |
73 |
+ $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm") |
74 |
+ $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm") |
75 |
+ ) |
76 |
+ autotools-multilib_src_configure |
77 |
+} |