Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/botan/
Date: Sun, 26 Apr 2020 22:23:56
Message-Id: 1587938891.d8fc4d8db1640a47c0ee8e97b5e66545ea0f4b89.whissi@gentoo
1 commit: d8fc4d8db1640a47c0ee8e97b5e66545ea0f4b89
2 Author: Sam James (sam_c) <sam <AT> cmpct <DOT> info>
3 AuthorDate: Tue Apr 21 11:43:36 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 26 22:08:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8fc4d8d
7
8 dev-libs/botan: Security bump to 2.14.0
9
10 Bug: https://bugs.gentoo.org/718596
11 Signed-off-by: Sam James (sam_c) <sam <AT> cmpct.info>
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 dev-libs/botan/Manifest | 1 +
15 dev-libs/botan/botan-2.14.0.ebuild | 102 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 103 insertions(+)
17
18 diff --git a/dev-libs/botan/Manifest b/dev-libs/botan/Manifest
19 index 67a1a1d250b..337faaaec06 100644
20 --- a/dev-libs/botan/Manifest
21 +++ b/dev-libs/botan/Manifest
22 @@ -1,3 +1,4 @@
23 DIST Botan-1.10.17.tgz 2706678 BLAKE2B bce65493c702381aaa747c2b935c545f85704b93bb6be4bf225048cc14812999291bbbe86786c2b00865489ec47d63128b12ef1020be8651be57fa1c84006a7c SHA512 a47cab3af113652247c8efc8b0f043eb62175eaa8554833d5fc3016ea94dbdd8aa722ab9b5226cc5f133afbcc088d54362111630eaa4594812c39925cc3c8649
24 DIST Botan-2.11.0.tar.xz 5765712 BLAKE2B 5602ef9485363b21f6f622f7370e486d834477730c2fc2f0bb9211db944d2b2a6a03d8ae14845cf871f648c76c77fd3e18804bd598f805a5754e3bfadb114d5d SHA512 a697a7f29788afc561cde35431e65e2f37e40fd45af89a6d060bf9988d28089905c6a1c005f9b23fb377547cd7a96a41f62c8d2f61a7f80d1ca1b9ccf857a2ce
25 +DIST Botan-2.14.0.tar.xz 5958948 BLAKE2B 90e73945b22f6e4e8d6163bfb45eca153eb1495448f8bf35514b780fd12bb1b81c822314e1f598c7625277f1e9cf7a6265387cca80ffd4c2664c681b9d4807fd SHA512 ee15928ecdb0127720b444b0207d46fd68fe3007125b0deb8bdd32f96e9befb684ad54009354da4f6a3c48b9698693b46223710a47fd644da8760dda53d40d34
26 DIST Botan-2.9.0.tgz 7216373 BLAKE2B 5ad2e15db871ccc3a32b29b7f54a02d69f251f0aca2ce656b557dbbb3814a793053a54905371b3414ad72952a64bece43e2383da91f205f68b0fe31be2f9439c SHA512 b88f3894a4a5b7b2fbff9be6eb0b774bf679a014bd2364811b7e63d4f323e22ca9ef916491afbc2cdf9db68727c1449fbeb6fd417e591560add0955517db3f65
27
28 diff --git a/dev-libs/botan/botan-2.14.0.ebuild b/dev-libs/botan/botan-2.14.0.ebuild
29 new file mode 100644
30 index 00000000000..6d2a94dea77
31 --- /dev/null
32 +++ b/dev-libs/botan/botan-2.14.0.ebuild
33 @@ -0,0 +1,102 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{6,7,8} )
40 +
41 +MY_P="Botan-${PV}"
42 +inherit python-r1 toolchain-funcs
43 +
44 +DESCRIPTION="C++ crypto library"
45 +HOMEPAGE="https://botan.randombit.net/"
46 +SRC_URI="https://botan.randombit.net/releases/${MY_P}.tar.xz"
47 +
48 +LICENSE="BSD"
49 +SLOT="2/$(ver_cut 1-2)" # soname version
50 +KEYWORDS="amd64 ~arm ~hppa ~ia64 ppc ppc64 ~sparc x86 ~ppc-macos"
51 +IUSE="bindist bzip2 boost doc libressl lzma python sqlite ssl static-libs zlib"
52 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
53 +
54 +S="${WORKDIR}/${MY_P}"
55 +
56 +DEPEND="python? ( ${PYTHON_DEPS} )"
57 +RDEPEND="${DEPEND}
58 + boost? ( >=dev-libs/boost-1.48:= )
59 + bzip2? ( >=app-arch/bzip2-1.0.5:= )
60 + lzma? ( app-arch/xz-utils:= )
61 + sqlite? ( dev-db/sqlite:3= )
62 + ssl? (
63 + !libressl? ( dev-libs/openssl:0=[bindist=] )
64 + libressl? ( dev-libs/libressl:0= )
65 + )
66 + zlib? ( >=sys-libs/zlib-1.2.3:= )
67 +"
68 +BDEPEND="
69 + dev-lang/python:*
70 + doc? ( dev-python/sphinx )
71 +"
72 +
73 +src_configure() {
74 + local disable_modules=()
75 + use boost || disable_modules+=( "boost" )
76 + use bindist && disable_modules+=( "ecdsa" )
77 + elog "Disabling modules: ${disable_modules[@]}"
78 +
79 + # Enable v9 instructions for sparc64
80 + if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then
81 + CHOSTARCH="sparc32-v9"
82 + else
83 + CHOSTARCH="${CHOST%%-*}"
84 + fi
85 +
86 + local myos=
87 + case ${CHOST} in
88 + *-darwin*) myos=darwin ;;
89 + *) myos=linux ;;
90 + esac
91 +
92 + case ${CHOST} in
93 + hppa*) CHOSTARCH=parisc ;;
94 + esac
95 +
96 + local pythonvers=()
97 + if use python; then
98 + append() {
99 + pythonvers+=( ${EPYTHON/python/} )
100 + }
101 + python_foreach_impl append
102 + fi
103 +
104 + CXX="$(tc-getCXX)" AR="$(tc-getAR)" ./configure.py \
105 + $(use_enable static-libs static-library) \
106 + $(use_with boost) \
107 + $(use_with bzip2) \
108 + $(use_with doc documentation) \
109 + $(use_with doc sphinx) \
110 + $(use_with lzma) \
111 + $(use_with sqlite sqlite3) \
112 + $(use_with ssl openssl) \
113 + $(use_with zlib) \
114 + $(usex hppa --without-stack-protector '') \
115 + --cc=gcc \
116 + --cpu=${CHOSTARCH} \
117 + --disable-modules=$(IFS=","; echo "${disable_modules[*]}" ) \
118 + --docdir=share/doc \
119 + --libdir=$(get_libdir) \
120 + --os=${myos} \
121 + --prefix="${EPREFIX}/usr" \
122 + --with-endian="$(tc-endian)" \
123 + --with-python-version=$(IFS=","; echo "${pythonvers[*]}" ) \
124 + --without-doxygen \
125 + || die "configure.py failed"
126 +}
127 +
128 +src_test() {
129 + LD_LIBRARY_PATH="${S}" ./botan-test || die "Validation tests failed"
130 +}
131 +
132 +src_install() {
133 + default
134 + use python && python_foreach_impl python_optimize
135 +}