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: Fri, 31 Jul 2020 11:11:24
Message-Id: 1596193877.b536545a9446b985ffbb90d1cb9f8b15f8621f78.polynomial-c@gentoo
1 commit: b536545a9446b985ffbb90d1cb9f8b15f8621f78
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 31 11:11:07 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 31 11:11:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b536545a
7
8 dev-libs/libbytesize: Bump to version 2.4
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/libbytesize/Manifest | 1 +
14 dev-libs/libbytesize/libbytesize-2.4.ebuild | 80 +++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/dev-libs/libbytesize/Manifest b/dev-libs/libbytesize/Manifest
18 index 89aa9afc701..0bad9ba405a 100644
19 --- a/dev-libs/libbytesize/Manifest
20 +++ b/dev-libs/libbytesize/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libbytesize-2.2.tar.gz 443040 BLAKE2B 04035f99f1da4d2d426106e1f292d71089dae89923d41425fa815a72e375639a7d8b6fc5552a3f08462597ce9c19797c7fce5b79fdad504b9062168093a70a4f SHA512 4538ac3499a24023c21fe07f527e400f99509921e377248970ac2da0eaf1655ddb261f432eed46a59ef69a1275ba7d1e5b0cc488d64eeea936b6cfa54c552ac1
23 DIST libbytesize-2.3.tar.gz 438198 BLAKE2B 583450b66781bbb16298507292ffe60012ccc296f0822784ead13bcf1ce3f9a9cf7c2341d5f64d3356fb78aefb3e6b0770bce64ebf85aa92d168277d35f9629c SHA512 23720b90f4dbf7880a640ec04e910c4c1f34637dd3621900772187cb2e1d04ec34d4900ce3c9b4083ac462b411d5a409a644f62ed76b2c57ef1f11432c58be8a
24 +DIST libbytesize-2.4.tar.gz 437416 BLAKE2B 4739b6ce5bf852112a5c662e3b5a29428df4a6b0fdd933293a1352e7f81f7ca3c274ed160ade38a705e9858bd2c37131a7409126d28d12ba0d47b64f88c78e31 SHA512 faa546823c95576516a5f4250ea51b381fe5ff6b9d09fc49346e65278e9be42fffd2566dcc24b4e0045cee15dcaead05c1fd1f5f51048c87c382298f7340e1d6
25
26 diff --git a/dev-libs/libbytesize/libbytesize-2.4.ebuild b/dev-libs/libbytesize/libbytesize-2.4.ebuild
27 new file mode 100644
28 index 00000000000..0d91bc5f999
29 --- /dev/null
30 +++ b/dev-libs/libbytesize/libbytesize-2.4.ebuild
31 @@ -0,0 +1,80 @@
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_{6,7,8} )
38 +
39 +inherit 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 ~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 +python_do() {
77 + if use python; then
78 + python_foreach_impl run_in_build_dir "$@"
79 + else
80 + "$@"
81 + fi
82 +}
83 +
84 +src_configure() {
85 + local myeconfargs=(
86 + $(use_with doc gtk-doc)
87 + $(use_with python python3)
88 + $(use_with tools)
89 + )
90 + local ECONF_SOURCE="${S}"
91 + python_do econf "${myeconfargs[@]}"
92 +}
93 +
94 +src_compile() {
95 + python_do emake
96 +}
97 +
98 +src_test() {
99 + python_do emake check
100 +}
101 +
102 +install_helper() {
103 + emake DESTDIR="${D}" install
104 + use python && python_optimize
105 +}
106 +
107 +src_install() {
108 + python_do install_helper
109 + einstalldocs
110 + find "${ED}" -name "*.la" -type f -delete || die
111 +}