1 |
commit: fe00af3b84f06e547aea3f41935efe74581cd53b |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 3 10:52:47 2017 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 3 12:45:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe00af3b |
7 |
|
8 |
dev-libs/nettle: bump subslot |
9 |
|
10 |
Bug: 601512 |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
dev-libs/nettle/nettle-3.3-r1.ebuild | 66 ++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 66 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/nettle/nettle-3.3-r1.ebuild b/dev-libs/nettle/nettle-3.3-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..6fe267b1681 |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/nettle/nettle-3.3-r1.ebuild |
22 |
@@ -0,0 +1,66 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit autotools eutils multilib-build multilib-minimal multilib toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="Low-level cryptographic library" |
31 |
+HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/" |
32 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="|| ( LGPL-3 LGPL-2.1 )" |
35 |
+SLOT="0/6.1" # subslot = libnettle soname version, .1 as broke ABI bug#601512 |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-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" |
37 |
+IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes" |
38 |
+ |
39 |
+DEPEND="gmp? ( >=dev-libs/gmp-5.0:0=[${MULTILIB_USEDEP}] )" |
40 |
+RDEPEND="${DEPEND} |
41 |
+ abi_x86_32? ( |
42 |
+ !<=app-emulation/emul-linux-x86-baselibs-20131008-r17 |
43 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
44 |
+ )" |
45 |
+ |
46 |
+MULTILIB_WRAPPED_HEADERS=( |
47 |
+ /usr/include/nettle/nettle-stdint.h |
48 |
+ /usr/include/nettle/version.h |
49 |
+) |
50 |
+ |
51 |
+DOCS=() |
52 |
+HTML_DOCS=() |
53 |
+ |
54 |
+pkg_setup() { |
55 |
+ use doc && DOCS+=( |
56 |
+ nettle.pdf |
57 |
+ ) |
58 |
+ use doc && HTML_DOCS+=( |
59 |
+ nettle.html |
60 |
+ ) |
61 |
+} |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ |
66 |
+ sed -e '/CFLAGS=/s: -ggdb3::' \ |
67 |
+ -e 's/solaris\*)/sunldsolaris*)/' \ |
68 |
+ -i configure.ac || die |
69 |
+ |
70 |
+ # conditionally build tests and examples required by tests |
71 |
+ use test || sed -i '/SUBDIRS/s/testsuite examples//' Makefile.in || die |
72 |
+ |
73 |
+ eautoreconf |
74 |
+} |
75 |
+ |
76 |
+multilib_src_configure() { |
77 |
+ # --disable-openssl bug #427526 |
78 |
+ ECONF_SOURCE="${S}" econf \ |
79 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
80 |
+ --disable-openssl \ |
81 |
+ --disable-fat \ |
82 |
+ $(use_enable gmp public-key) \ |
83 |
+ $(use_enable static-libs static) \ |
84 |
+ $(tc-is-static-only && echo --disable-shared) \ |
85 |
+ $(use_enable doc documentation) \ |
86 |
+ $(use_enable neon arm-neon) \ |
87 |
+ $(use_enable cpu_flags_x86_aes x86-aesni) |
88 |
+} |