Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbytesize/
Date: Wed, 07 Jul 2021 12:21:40
Message-Id: 1625660487.025d84e0ee997af1d60b6544e74cbb3bf1dfd248.polynomial-c@gentoo
1 commit: 025d84e0ee997af1d60b6544e74cbb3bf1dfd248
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 7 12:15:38 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 7 12:21:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=025d84e0
7
8 dev-libs/libbytesize: Bump to version 2.6
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 dev-libs/libbytesize/Manifest | 1 +
13 dev-libs/libbytesize/libbytesize-2.6.ebuild | 89 +++++++++++++++++++++++++++++
14 2 files changed, 90 insertions(+)
15
16 diff --git a/dev-libs/libbytesize/Manifest b/dev-libs/libbytesize/Manifest
17 index 6af4c18dc35..154ea22b195 100644
18 --- a/dev-libs/libbytesize/Manifest
19 +++ b/dev-libs/libbytesize/Manifest
20 @@ -1,3 +1,4 @@
21 DIST libbytesize-2.3.tar.gz 438198 BLAKE2B 583450b66781bbb16298507292ffe60012ccc296f0822784ead13bcf1ce3f9a9cf7c2341d5f64d3356fb78aefb3e6b0770bce64ebf85aa92d168277d35f9629c SHA512 23720b90f4dbf7880a640ec04e910c4c1f34637dd3621900772187cb2e1d04ec34d4900ce3c9b4083ac462b411d5a409a644f62ed76b2c57ef1f11432c58be8a
22 DIST libbytesize-2.4.tar.gz 437416 BLAKE2B 4739b6ce5bf852112a5c662e3b5a29428df4a6b0fdd933293a1352e7f81f7ca3c274ed160ade38a705e9858bd2c37131a7409126d28d12ba0d47b64f88c78e31 SHA512 faa546823c95576516a5f4250ea51b381fe5ff6b9d09fc49346e65278e9be42fffd2566dcc24b4e0045cee15dcaead05c1fd1f5f51048c87c382298f7340e1d6
23 DIST libbytesize-2.5.tar.gz 439194 BLAKE2B 8d2cd82cea1e95f3368eed5855abfbc89b410fe1d627f7cbe69974f0d1fc89b600c93ad242816a37c3585b8318fcce77ef0fe6ab349d10f34a8be4c69303e343 SHA512 730d9c84bfc7199424fa34de5037dd9187d60c1f32d82cedc3e395167bf39a98a3b7f20b15f154206e797144c11de05ae0f606e0af6a2157ed946f138a346ad6
24 +DIST libbytesize-2.6.tar.gz 444795 BLAKE2B 5f89b2c614ebdd8efd3ac0841ad99c32309bdb33236373a0c9b007415a2f40ff30a0edcecb56947f2f41403cabb6a6bff68c2e4ce52e322df15d6daa3e10d2af SHA512 f6e72b763216c54c08318d090d604791c61cd5a3e683ffbe6e9d01de850661bd4e8a3adeb85c6fd0fb60244e2e128292cbae06c0aa2d1fe9f34104e64af8210e
25
26 diff --git a/dev-libs/libbytesize/libbytesize-2.6.ebuild b/dev-libs/libbytesize/libbytesize-2.6.ebuild
27 new file mode 100644
28 index 00000000000..f261594c01a
29 --- /dev/null
30 +++ b/dev-libs/libbytesize/libbytesize-2.6.ebuild
31 @@ -0,0 +1,89 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +
39 +inherit autotools python-r1
40 +
41 +DESCRIPTION="Tiny library providing a C \"class\" for working with arbitrary big sizes in bytes"
42 +HOMEPAGE="https://github.com/storaged-project/libbytesize"
43 +SRC_URI="https://github.com/storaged-project/libbytesize/releases/download/${PV}/${P}.tar.gz"
44 +LICENSE="LGPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
47 +IUSE="doc python test tools"
48 +
49 +REQUIRED_USE="
50 + python? ( ${PYTHON_REQUIRED_USE} )
51 + tools? ( python )
52 +"
53 +
54 +RDEPEND="
55 + dev-libs/gmp:0=
56 + dev-libs/mpfr:=
57 + dev-libs/libpcre2
58 + python? ( ${PYTHON_DEPS} )
59 +"
60 +
61 +DEPEND="${RDEPEND}"
62 +
63 +BDEPEND="
64 + sys-devel/gettext
65 + doc? ( dev-util/gtk-doc )
66 + test? (
67 + dev-python/pocketlint[${PYTHON_USEDEP}]
68 + dev-python/polib[${PYTHON_USEDEP}]
69 + )
70 +"
71 +
72 +DOCS=( README.md )
73 +
74 +RESTRICT="test"
75 +
76 +PATCHES=(
77 + "${FILESDIR}/${PN}-2.4-no_Werror.patch"
78 +)
79 +
80 +python_do() {
81 + if use python; then
82 + python_foreach_impl run_in_build_dir "$@"
83 + else
84 + "$@"
85 + fi
86 +}
87 +
88 +src_prepare() {
89 + default
90 + eautoreconf
91 +}
92 +
93 +src_configure() {
94 + local myeconfargs=(
95 + $(use_with doc gtk-doc)
96 + $(use_with python python3)
97 + $(use_with tools)
98 + )
99 + local ECONF_SOURCE="${S}"
100 + python_do econf "${myeconfargs[@]}"
101 +}
102 +
103 +src_compile() {
104 + python_do emake
105 +}
106 +
107 +src_test() {
108 + python_do emake check
109 +}
110 +
111 +install_helper() {
112 + emake DESTDIR="${D}" install
113 + use python && python_optimize
114 +}
115 +
116 +src_install() {
117 + python_do install_helper
118 + einstalldocs
119 + find "${ED}" -name "*.la" -type f -delete || die
120 +}