1 |
commit: ffd74f5f682ef3beff64d85635e8497171274328 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 2 15:35:46 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 2 15:37:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffd74f5f |
7 |
|
8 |
dev-libs/libbytesize: Bump to version 2.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libbytesize/Manifest | 1 + |
14 |
dev-libs/libbytesize/libbytesize-2.0.ebuild | 59 +++++++++++++++++++++++++++++ |
15 |
dev-libs/libbytesize/metadata.xml | 3 ++ |
16 |
3 files changed, 63 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libbytesize/Manifest b/dev-libs/libbytesize/Manifest |
19 |
index 30e7b27221b..2716ed0115f 100644 |
20 |
--- a/dev-libs/libbytesize/Manifest |
21 |
+++ b/dev-libs/libbytesize/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST libbytesize-1.2.tar.gz 70598 BLAKE2B e136b1274703da7b3596e7583cea1ac773c1594af09c626f4dbb481dfcc23a3186b03ebdc54bba67d0a063c5d6587f6b7f8b610828c461cfd114eea1388dd193 SHA512 a8151e7440d0ec43d10239ddf08a9924827cdf08f20a16dff6177b444c1022fab905a0567384531e7610d854998111adb77f9a6a98e2d9648c02521f84ea2bf2 |
24 |
DIST libbytesize-1.3.tar.gz 71648 BLAKE2B 40794a38af8ee1fcc03ef8000b20123c0e02e208f329a75e7da3a18b224e4a8456ce5982d72e4eefa2ff9d9dcd90b98142037dd37be6bc31f25e2ff347010829 SHA512 a50f5d4ea07a295909e09168518f8fc25da8dcd52859beca9c9c3b8c8c180b025c774c730d449ffbd4c7fd5aba07b5d071b6d9ad36f9d9ebc96bb06699aa08f3 |
25 |
DIST libbytesize-1.4.tar.gz 80943 BLAKE2B d4c6c34d81be01bf7db2c37b0660886d99eff3c0a87024f5fbc12cc3606dc01e772b81dfbcacbf76c62213120253a9e7bda90adbc749b6d4c3e31e1ed3ae7702 SHA512 5dd13cf52a1674be776220ee1863f42261a47dc53af1ce4a31460d6d02ce87e19c5a52260f700928af98f1d9d7a96de7c11d8f384907b3187ef2effc10cbb593 |
26 |
+DIST libbytesize-2.0.tar.gz 84673 BLAKE2B cbe439bafc5b6a5ee1fbba6ba3e78f6a2b080394eb1da57b14945edc9180cff179a0eafb9de29a9639dfcbd6abf86158aa84121b81704d9270a93e4331d98eea SHA512 5adc7f529bebab2a568b623f876c9b65e58cd1f19dcfb2cc0c068b03a4e0cbe6a527c9cef3417e442b5eb8c00c963f325090356474c69083793a55edb54a7001 |
27 |
|
28 |
diff --git a/dev-libs/libbytesize/libbytesize-2.0.ebuild b/dev-libs/libbytesize/libbytesize-2.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..8e8c95ae080 |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/libbytesize/libbytesize-2.0.ebuild |
33 |
@@ -0,0 +1,59 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
40 |
+ |
41 |
+inherit autotools python-any-r1 |
42 |
+ |
43 |
+DESCRIPTION="Tiny library providing a C \"class\" for working with arbitrary big sizes in bytes" |
44 |
+HOMEPAGE="https://github.com/storaged-project/libbytesize" |
45 |
+SRC_URI="https://github.com/storaged-project/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+LICENSE="LGPL-2+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
49 |
+IUSE="doc test tools" |
50 |
+ |
51 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ ${PYTHON_DEPS} |
55 |
+ dev-libs/gmp:0= |
56 |
+ dev-libs/mpfr:= |
57 |
+ dev-libs/libpcre2 |
58 |
+" |
59 |
+ |
60 |
+DEPEND=" |
61 |
+ ${RDEPEND} |
62 |
+ sys-devel/gettext |
63 |
+ doc? ( dev-util/gtk-doc ) |
64 |
+ test? ( |
65 |
+ dev-python/pocketlint |
66 |
+ dev-python/polib |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+DOCS=( NEWS.rst README.md ) |
71 |
+ |
72 |
+RESTRICT="test" |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ eautoreconf |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ local myeconfargs=( |
81 |
+ --with-python3 |
82 |
+ $(use_with doc gtk-doc) |
83 |
+ $(use_with tools) |
84 |
+ ) |
85 |
+ econf "${myeconfargs[@]}" |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ default |
90 |
+ python_optimize |
91 |
+ find "${ED}" -name "*.la*" -delete || die |
92 |
+} |
93 |
|
94 |
diff --git a/dev-libs/libbytesize/metadata.xml b/dev-libs/libbytesize/metadata.xml |
95 |
index 19b3c25b5bd..97f2d51ca8b 100644 |
96 |
--- a/dev-libs/libbytesize/metadata.xml |
97 |
+++ b/dev-libs/libbytesize/metadata.xml |
98 |
@@ -5,6 +5,9 @@ |
99 |
<email>polynomial-c@g.o</email> |
100 |
<name>Lars Wendler</name> |
101 |
</maintainer> |
102 |
+ <use> |
103 |
+ <flag name="tools">Build bscalc python CLI tool</flag> |
104 |
+ </use> |
105 |
<upstream> |
106 |
<remote-id type="github">rhinstaller/libbytesize</remote-id> |
107 |
</upstream> |