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: Thu, 21 May 2020 10:49:43
Message-Id: 1590058174.bbb4dca4718cebf948f00b1662891782a5f454c3.polynomial-c@gentoo
1 commit: bbb4dca4718cebf948f00b1662891782a5f454c3
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 21 10:46:50 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu May 21 10:49:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbb4dca4
7
8 dev-libs/libbytesize: Bump to version 2.3
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-libs/libbytesize/Manifest | 1 +
14 dev-libs/libbytesize/libbytesize-2.3.ebuild | 80 +++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/dev-libs/libbytesize/Manifest b/dev-libs/libbytesize/Manifest
18 index 5587499694c..4b660c558f6 100644
19 --- a/dev-libs/libbytesize/Manifest
20 +++ b/dev-libs/libbytesize/Manifest
21 @@ -1,3 +1,4 @@
22 DIST libbytesize-1.4.tar.gz 80943 BLAKE2B d4c6c34d81be01bf7db2c37b0660886d99eff3c0a87024f5fbc12cc3606dc01e772b81dfbcacbf76c62213120253a9e7bda90adbc749b6d4c3e31e1ed3ae7702 SHA512 5dd13cf52a1674be776220ee1863f42261a47dc53af1ce4a31460d6d02ce87e19c5a52260f700928af98f1d9d7a96de7c11d8f384907b3187ef2effc10cbb593
23 DIST libbytesize-2.1.tar.gz 440209 BLAKE2B 7c689f269eae7b408b7f85fb9c877c9eb519d2a2eb143ef0ddb1657fbb4d79fab7cdaa56b35b4bbbb964e47361e37d7c70a0a135bacb8f817bd6cf8d2e22b68e SHA512 6b93d877e921820c19ed6874a36d9f8b6958112f6230f24980e8e6e30570b39ce74594f0ef126f70dc81b5434899c1f0f3ad0925f3ff7b6a596a9329c8f106c8
24 DIST libbytesize-2.2.tar.gz 443040 BLAKE2B 04035f99f1da4d2d426106e1f292d71089dae89923d41425fa815a72e375639a7d8b6fc5552a3f08462597ce9c19797c7fce5b79fdad504b9062168093a70a4f SHA512 4538ac3499a24023c21fe07f527e400f99509921e377248970ac2da0eaf1655ddb261f432eed46a59ef69a1275ba7d1e5b0cc488d64eeea936b6cfa54c552ac1
25 +DIST libbytesize-2.3.tar.gz 438198 BLAKE2B 583450b66781bbb16298507292ffe60012ccc296f0822784ead13bcf1ce3f9a9cf7c2341d5f64d3356fb78aefb3e6b0770bce64ebf85aa92d168277d35f9629c SHA512 23720b90f4dbf7880a640ec04e910c4c1f34637dd3621900772187cb2e1d04ec34d4900ce3c9b4083ac462b411d5a409a644f62ed76b2c57ef1f11432c58be8a
26
27 diff --git a/dev-libs/libbytesize/libbytesize-2.3.ebuild b/dev-libs/libbytesize/libbytesize-2.3.ebuild
28 new file mode 100644
29 index 00000000000..0d91bc5f999
30 --- /dev/null
31 +++ b/dev-libs/libbytesize/libbytesize-2.3.ebuild
32 @@ -0,0 +1,80 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6,7,8} )
39 +
40 +inherit python-r1
41 +
42 +DESCRIPTION="Tiny library providing a C \"class\" for working with arbitrary big sizes in bytes"
43 +HOMEPAGE="https://github.com/storaged-project/libbytesize"
44 +SRC_URI="https://github.com/storaged-project/libbytesize/releases/download/${PV}/${P}.tar.gz"
45 +LICENSE="LGPL-2+"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
48 +IUSE="doc python test tools"
49 +
50 +REQUIRED_USE="
51 + python? ( ${PYTHON_REQUIRED_USE} )
52 + tools? ( python )
53 +"
54 +
55 +RDEPEND="
56 + dev-libs/gmp:0=
57 + dev-libs/mpfr:=
58 + dev-libs/libpcre2
59 + python? ( ${PYTHON_DEPS} )
60 +"
61 +
62 +DEPEND="${RDEPEND}"
63 +
64 +BDEPEND="
65 + sys-devel/gettext
66 + doc? ( dev-util/gtk-doc )
67 + test? (
68 + dev-python/pocketlint[${PYTHON_USEDEP}]
69 + dev-python/polib[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +DOCS=( README.md )
74 +
75 +RESTRICT="test"
76 +
77 +python_do() {
78 + if use python; then
79 + python_foreach_impl run_in_build_dir "$@"
80 + else
81 + "$@"
82 + fi
83 +}
84 +
85 +src_configure() {
86 + local myeconfargs=(
87 + $(use_with doc gtk-doc)
88 + $(use_with python python3)
89 + $(use_with tools)
90 + )
91 + local ECONF_SOURCE="${S}"
92 + python_do econf "${myeconfargs[@]}"
93 +}
94 +
95 +src_compile() {
96 + python_do emake
97 +}
98 +
99 +src_test() {
100 + python_do emake check
101 +}
102 +
103 +install_helper() {
104 + emake DESTDIR="${D}" install
105 + use python && python_optimize
106 +}
107 +
108 +src_install() {
109 + python_do install_helper
110 + einstalldocs
111 + find "${ED}" -name "*.la" -type f -delete || die
112 +}