1 |
commit: 583669758af43319ac2da6975a10d7bd39143396 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 24 10:43:39 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 24 10:44:24 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58366975 |
7 |
|
8 |
dev-libs/botan: version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=661660 |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
dev-libs/botan/Manifest | 1 + |
14 |
dev-libs/botan/botan-2.7.0.ebuild | 92 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 93 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/botan/Manifest b/dev-libs/botan/Manifest |
18 |
index bd6f17c434b..1bb00217926 100644 |
19 |
--- a/dev-libs/botan/Manifest |
20 |
+++ b/dev-libs/botan/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST Botan-1.10.17.tgz 2706678 BLAKE2B bce65493c702381aaa747c2b935c545f85704b93bb6be4bf225048cc14812999291bbbe86786c2b00865489ec47d63128b12ef1020be8651be57fa1c84006a7c SHA512 a47cab3af113652247c8efc8b0f043eb62175eaa8554833d5fc3016ea94dbdd8aa722ab9b5226cc5f133afbcc088d54362111630eaa4594812c39925cc3c8649 |
23 |
DIST Botan-2.6.0.tgz 6599127 BLAKE2B c45a974f89571c1050e28108267ca6ec094171be3d7dbcb033b86b7dac3f8074703c40c42d5737074a86c19266b4b47c266d0864ce08ee26fad05116a50c48a8 SHA512 2082b4aaac0802f117a5f75c67a69e6d364b436a0ebe543032e370c3f085752bbe1ca48051462066e13bd42e47573ebc532d1d45074fe406df032f33346ee645 |
24 |
+DIST Botan-2.7.0.tgz 7021654 BLAKE2B 3f18b7ba660a72a409beeaba8bd1b1bd021f645c135bed56d75b6ba906b7c28d1e14eac9550862500dda9c4b3ac3135cfc9c340e073c573deb66b236e09f8054 SHA512 992138d83e18aedf80337d825f80c34dd3d2177eb30967573c57cf9fb7e7f9a9965ae3d75f23635f4c93b4efb7bb5adbb3423702663c78a5eb905dd567561858 |
25 |
|
26 |
diff --git a/dev-libs/botan/botan-2.7.0.ebuild b/dev-libs/botan/botan-2.7.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5b1383c390d |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/botan/botan-2.7.0.ebuild |
31 |
@@ -0,0 +1,92 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
36 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
37 |
+ |
38 |
+inherit multilib python-r1 toolchain-funcs versionator |
39 |
+ |
40 |
+MY_PN="Botan" |
41 |
+MY_P="${MY_PN}-${PV}" |
42 |
+DESCRIPTION="A C++ crypto library" |
43 |
+HOMEPAGE="https://botan.randombit.net/" |
44 |
+SRC_URI="https://botan.randombit.net/releases/${MY_P}.tgz" |
45 |
+ |
46 |
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos" |
47 |
+SLOT="2/$(get_version_component_range 2)" # soname version |
48 |
+LICENSE="BSD" |
49 |
+IUSE="bindist doc boost python bzip2 libressl lzma sqlite ssl static-libs zlib" |
50 |
+ |
51 |
+S="${WORKDIR}/${MY_P}" |
52 |
+ |
53 |
+RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 ) |
54 |
+ zlib? ( >=sys-libs/zlib-1.2.3 ) |
55 |
+ boost? ( >=dev-libs/boost-1.48 ) |
56 |
+ lzma? ( app-arch/xz-utils ) |
57 |
+ sqlite? ( dev-db/sqlite:3 ) |
58 |
+ ssl? ( |
59 |
+ !libressl? ( dev-libs/openssl:0=[bindist=] ) |
60 |
+ libressl? ( dev-libs/libressl:0= ) |
61 |
+ )" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ dev-lang/python:* |
64 |
+ doc? ( dev-python/sphinx )" |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local disable_modules=() |
68 |
+ use boost || disable_modules+=( "boost" ) |
69 |
+ use bindist && disable_modules+=( "ecdsa" ) |
70 |
+ elog "Disabling modules: ${disable_modules[@]}" |
71 |
+ |
72 |
+ # Enable v9 instructions for sparc64 |
73 |
+ if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then |
74 |
+ CHOSTARCH="sparc32-v9" |
75 |
+ else |
76 |
+ CHOSTARCH="${CHOST%%-*}" |
77 |
+ fi |
78 |
+ |
79 |
+ local myos= |
80 |
+ case ${CHOST} in |
81 |
+ *-darwin*) myos=darwin ;; |
82 |
+ *) myos=linux ;; |
83 |
+ esac |
84 |
+ |
85 |
+ local pythonvers=() |
86 |
+ if use python; then |
87 |
+ append() { |
88 |
+ pythonvers+=( ${EPYTHON/python/} ) |
89 |
+ } |
90 |
+ python_foreach_impl append |
91 |
+ fi |
92 |
+ |
93 |
+ CXX="$(tc-getCXX)" AR="$(tc-getAR)" ./configure.py \ |
94 |
+ --prefix="${EPREFIX}/usr" \ |
95 |
+ --libdir=$(get_libdir) \ |
96 |
+ --docdir=share/doc \ |
97 |
+ --cc=gcc \ |
98 |
+ --os=${myos} \ |
99 |
+ --cpu=${CHOSTARCH} \ |
100 |
+ --with-endian="$(tc-endian)" \ |
101 |
+ --without-doxygen \ |
102 |
+ $(use_with bzip2) \ |
103 |
+ $(use_with lzma) \ |
104 |
+ $(use_with sqlite sqlite3) \ |
105 |
+ $(use_with ssl openssl) \ |
106 |
+ $(use_with zlib) \ |
107 |
+ $(use_with boost) \ |
108 |
+ $(use_with doc sphinx) \ |
109 |
+ $(use_with doc documentation) \ |
110 |
+ $(use_enable static-libs static-library) \ |
111 |
+ --with-python-version=$(IFS=","; echo "${pythonvers[*]}" ) \ |
112 |
+ --disable-modules=$(IFS=","; echo "${disable_modules[*]}" ) \ |
113 |
+ || die "configure.py failed" |
114 |
+} |
115 |
+ |
116 |
+src_test() { |
117 |
+ LD_LIBRARY_PATH="${S}" ./botan-test || die "Validation tests failed" |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ default |
122 |
+ use python && python_foreach_impl python_optimize |
123 |
+} |