1 |
commit: 7924764c9c5ea18743f03638a42355cca080566b |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 5 18:55:57 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 5 19:26:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7924764c |
7 |
|
8 |
dev-libs/libgcrypt: eapi bump |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild | 75 ++++++++++++++++++++++++++++ |
14 |
1 file changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..4f3b5d97196 |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild |
21 |
@@ -0,0 +1,75 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit autotools flag-o-matic multilib-minimal |
28 |
+ |
29 |
+DESCRIPTION="General purpose crypto library based on the code used in GnuPG" |
30 |
+HOMEPAGE="http://www.gnupg.org/" |
31 |
+SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" |
32 |
+ |
33 |
+LICENSE="LGPL-2.1 MIT" |
34 |
+SLOT="0/20" # subslot = soname major version |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
36 |
+IUSE="doc o-flag-munging static-libs" |
37 |
+ |
38 |
+RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]" |
39 |
+DEPEND="${RDEPEND}" |
40 |
+BDEPEND="doc? ( virtual/texi2dvi )" |
41 |
+ |
42 |
+PATCHES=( |
43 |
+ "${FILESDIR}"/${PN}-1.6.1-uscore.patch |
44 |
+ "${FILESDIR}"/${PN}-multilib-syspath.patch |
45 |
+) |
46 |
+ |
47 |
+MULTILIB_CHOST_TOOLS=( |
48 |
+ /usr/bin/libgcrypt-config |
49 |
+) |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ default |
53 |
+ eautoreconf |
54 |
+} |
55 |
+ |
56 |
+multilib_src_configure() { |
57 |
+ if [[ ${CHOST} == *86*-solaris* ]] ; then |
58 |
+ # ASM code uses GNU ELF syntax, divide in particular, we need to |
59 |
+ # allow this via ASFLAGS, since we don't have a flag-o-matic |
60 |
+ # function for that, we'll have to abuse cflags for this |
61 |
+ append-cflags -Wa,--divide |
62 |
+ fi |
63 |
+ local myeconfargs=( |
64 |
+ --disable-dependency-tracking |
65 |
+ --enable-noexecstack |
66 |
+ $(use_enable o-flag-munging O-flag-munging) |
67 |
+ $(use_enable static-libs static) |
68 |
+ |
69 |
+ # disabled due to various applications requiring privileges |
70 |
+ # after libgcrypt drops them (bug #468616) |
71 |
+ --without-capabilities |
72 |
+ |
73 |
+ # http://trac.videolan.org/vlc/ticket/620 |
74 |
+ # causes bus-errors on sparc64-solaris |
75 |
+ $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm") |
76 |
+ $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm") |
77 |
+ |
78 |
+ GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config" |
79 |
+ ) |
80 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
81 |
+} |
82 |
+ |
83 |
+multilib_src_compile() { |
84 |
+ default |
85 |
+ multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf |
86 |
+} |
87 |
+ |
88 |
+multilib_src_install() { |
89 |
+ emake DESTDIR="${D}" install |
90 |
+ multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf |
91 |
+} |
92 |
+ |
93 |
+multilib_src_install_all() { |
94 |
+ default |
95 |
+ find "${D}" -name '*.la' -delete || die |
96 |
+} |