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/bitset/
Date: Sat, 27 Feb 2021 01:00:31
Message-Id: 1614387601.5f350f10332cca48ef19b5abe78504935ffd6019.sam@gentoo
1 commit: 5f350f10332cca48ef19b5abe78504935ffd6019
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 26 23:18:02 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 01:00:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f350f10
7
8 dev-libs/bitset: port to EAPI 7
9
10 Package-Manager: Portage-3.0.15, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-libs/bitset/bitset-2.8.4-r1.ebuild | 29 ++++++++++++++++++++++-------
14 1 file changed, 22 insertions(+), 7 deletions(-)
15
16 diff --git a/dev-libs/bitset/bitset-2.8.4-r1.ebuild b/dev-libs/bitset/bitset-2.8.4-r1.ebuild
17 index 420af9b499c..74a48300b7f 100644
18 --- a/dev-libs/bitset/bitset-2.8.4-r1.ebuild
19 +++ b/dev-libs/bitset/bitset-2.8.4-r1.ebuild
20 @@ -1,10 +1,9 @@
21 -# Copyright 1999-2013 Gentoo Foundation
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI="5"
26 +EAPI=7
27
28 -AUTOTOOLS_AUTORECONF=1
29 -inherit autotools-utils
30 +inherit autotools
31
32 DESCRIPTION="A compressed bitset with supporting data structures and algorithms"
33 HOMEPAGE="https://github.com/chriso/bitset"
34 @@ -15,21 +14,37 @@ SLOT="0"
35 IUSE="jemalloc static-libs tcmalloc"
36 KEYWORDS="amd64 ~arm x86"
37
38 -RDEPEND="tcmalloc? ( dev-util/google-perftools:= )
39 - jemalloc? ( >=dev-libs/jemalloc-3.2 )"
40 +RDEPEND="
41 + tcmalloc? ( dev-util/google-perftools:= )
42 + jemalloc? ( >=dev-libs/jemalloc-3.2 )
43 +"
44 DEPEND="${RDEPEND}"
45
46 REQUIRED_USE="?? ( jemalloc tcmalloc )"
47
48 DOCS=( README.md )
49
50 +src_prepare() {
51 + default
52 + eautoreconf
53 +}
54 +
55 src_configure() {
56 local tcmalloc_lib_name='tcmalloc'
57 +
58 has_version dev-util/google-perftools[minimal] && tcmalloc_lib_name='tcmalloc_minimal'
59 +
60 local myeconfargs=(
61 $(use_with jemalloc) \
62 $(use_with tcmalloc) \
63 $(use_with tcmalloc tcmalloc-lib "${tcmalloc_lib_name}")
64 )
65 - autotools-utils_src_configure
66 +
67 + econf "${myeconfargs[@]}"
68 +}
69 +
70 +src_install() {
71 + default
72 +
73 + find "${ED}" -name '*.la' -delete || die
74 }