Gentoo Archives: gentoo-commits

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