Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/botan/
Date: Tue, 29 Dec 2020 23:53:41
Message-Id: 1609285902.3e33dd594d656ee660f48e7f7f7736ebe567bab6.sam@gentoo
1 commit: 3e33dd594d656ee660f48e7f7f7736ebe567bab6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 23:51:42 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 23:51:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e33dd59
7
8 dev-libs/botan: cleanup old
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-libs/botan/Manifest | 1 -
14 dev-libs/botan/botan-2.17.2.ebuild | 130 -------------------------------------
15 2 files changed, 131 deletions(-)
16
17 diff --git a/dev-libs/botan/Manifest b/dev-libs/botan/Manifest
18 index d93a88883cd..541d3f35226 100644
19 --- a/dev-libs/botan/Manifest
20 +++ b/dev-libs/botan/Manifest
21 @@ -1,3 +1,2 @@
22 DIST Botan-2.16.0.tar.xz 5938644 BLAKE2B a4b7bb48aee0dbf0f8b81a407b6a39707c3e6040a2bb93f9c34208ab87ea64879b2e56af66f090a73d66b64156e333c89e490d206e666e665a5eb4fbcd98d13e SHA512 12550425c695119d7f448a47b7956565de373e1bc86b8fdfa0a2a5b9fed1ef93a36101b6480e7a2f78e9262c988904c353fa021b681543691d09bf5b00495bd4
23 -DIST Botan-2.17.2.tar.xz 5940964 BLAKE2B 009df11c9d4379a15a48697554a82df3baffad0fff98af995f9a5b9b3223e4db42837650d41b7081170b07fb70d62ab347c5577ef2480a8f7011b40e1cf1764d SHA512 fa9bd30d02540c4544646971c7b82d3873f32362668d2496b4bc1a92f47d52f75ec9533d5848a7d8e9b9077c7ae2866b55d70d39101c705eec0edf9dbf01d6cf
24 DIST Botan-2.17.3.tar.xz 5937596 BLAKE2B 605e71c959889b459bc26f17d310a33f26c9a51fe00db91db407ac5b96c9ff57bef67a401f71826e83e0d4eda2289c22685957289e6bb357f3693a1bce60f44d SHA512 ead0f144dfb9eca66d0e81e376d0d49f4b0b6bc1599f8cf52299e1753645b5b20100efa004ef5f9571f7bea88958f35db38367fc26f2603890f8f199cc890dbc
25
26 diff --git a/dev-libs/botan/botan-2.17.2.ebuild b/dev-libs/botan/botan-2.17.2.ebuild
27 deleted file mode 100644
28 index c15f5000f25..00000000000
29 --- a/dev-libs/botan/botan-2.17.2.ebuild
30 +++ /dev/null
31 @@ -1,130 +0,0 @@
32 -# Copyright 1999-2020 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -PYTHON_COMPAT=( python3_{7,8,9} )
38 -
39 -inherit python-r1 toolchain-funcs
40 -
41 -MY_P="Botan-${PV}"
42 -
43 -DESCRIPTION="C++ crypto library"
44 -HOMEPAGE="https://botan.randombit.net/"
45 -SRC_URI="https://botan.randombit.net/releases/${MY_P}.tar.xz"
46 -S="${WORKDIR}/${MY_P}"
47 -
48 -LICENSE="BSD-2"
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 -BDEPEND="
55 - ${PYTHON_DEPS}
56 - $(python_gen_any_dep '
57 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
58 - ')
59 -"
60 -
61 -# NOTE: Boost is needed at runtime too for the CLI tool.
62 -DEPEND="
63 - boost? ( >=dev-libs/boost-1.48:= )
64 - bzip2? ( >=app-arch/bzip2-1.0.5:= )
65 - lzma? ( app-arch/xz-utils:= )
66 - python? ( ${PYTHON_DEPS} )
67 - ssl? (
68 - !libressl? ( dev-libs/openssl:0=[bindist=] )
69 - libressl? ( dev-libs/libressl:0= )
70 - )
71 - sqlite? ( dev-db/sqlite:3= )
72 - zlib? ( >=sys-libs/zlib-1.2.3:= )
73 -"
74 -
75 -RDEPEND="${DEPEND}"
76 -
77 -# NOTE: Considering patching Botan?
78 -# Please see upstream's guidance:
79 -# https://botan.randombit.net/handbook/packaging.html#minimize-distribution-patches
80 -
81 -python_check_deps() {
82 - if use doc ; then
83 - has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]" || return 1
84 - fi
85 -}
86 -
87 -src_configure() {
88 - local disable_modules=()
89 - use boost || disable_modules+=( "boost" )
90 - use bindist && disable_modules+=( "ecdsa" )
91 - elog "Disabling module(s): ${disable_modules[@]}"
92 -
93 - # Enable v9 instructions for sparc64
94 - local chostarch="${CHOST%%-*}"
95 - if [[ "${PROFILE_ARCH}" = "sparc64" ]] ; then
96 - chostarch="sparc32-v9"
97 - fi
98 -
99 - local myos=
100 - case ${CHOST} in
101 - *-darwin*) myos=darwin ;;
102 - *) myos=linux ;;
103 - esac
104 -
105 - case ${CHOST} in
106 - hppa*) chostarch=parisc ;;
107 - esac
108 -
109 - local pythonvers=()
110 - if use python ; then
111 - _append() {
112 - pythonvers+=( ${EPYTHON/python/} )
113 - }
114 -
115 - python_foreach_impl _append
116 - fi
117 -
118 - # Don't install Python bindings automatically
119 - # (do it manually later in the right place)
120 - # https://bugs.gentoo.org/723096
121 - local myargs=(
122 - $(use_enable static-libs static-library)
123 - $(use_with boost)
124 - $(use_with bzip2)
125 - $(use_with doc documentation)
126 - $(use_with doc sphinx)
127 - $(use_with lzma)
128 - $(use_with sqlite sqlite3)
129 - $(use_with ssl openssl)
130 - $(use_with zlib)
131 - $(usex hppa --without-stack-protector '')
132 - --cpu=${chostarch}
133 - --disable-modules=$( IFS=","; echo "${disable_modules[*]}" )
134 - --docdir=share/doc
135 - --libdir=$(get_libdir)
136 - --os=${myos}
137 - --distribution-info="Gentoo ${PVR}"
138 - --prefix="${EPREFIX}/usr"
139 - --with-endian="$(tc-endian)"
140 - --with-python-version=$( IFS=","; echo "${pythonvers[*]}" )
141 - --without-doxygen
142 - --no-install-python-module
143 - )
144 -
145 - tc-export CC CXX AR
146 -
147 - ./configure.py "${myargs[@]}" || die "configure.py failed"
148 -}
149 -
150 -src_test() {
151 - LD_LIBRARY_PATH="${S}" ./botan-test || die "Validation tests failed"
152 -}
153 -
154 -src_install() {
155 - default
156 -
157 - # Manually install the Python bindings (bug #723096)
158 - if use python ; then
159 - python_foreach_impl python_domodule src/python/botan2.py
160 - fi
161 -}