Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbase58/
Date: Mon, 05 Oct 2020 05:47:03
Message-Id: 1601876808.085cfe1e5e62f8c5d3836bec5ac3f0b8af8d05c9.juippis@gentoo
1 commit: 085cfe1e5e62f8c5d3836bec5ac3f0b8af8d05c9
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 5 05:38:46 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 5 05:46:48 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=085cfe1e
7
8 dev-libs/libbase58: conditionalize 'rm' in 0.1.4
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 dev-libs/libbase58/libbase58-0.1.4-r1.ebuild | 8 ++++++--
13 1 file changed, 6 insertions(+), 2 deletions(-)
14
15 diff --git a/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild b/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild
16 index 6d58a9ccec7..3cdcfde18b5 100644
17 --- a/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild
18 +++ b/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild
19 @@ -2,6 +2,7 @@
20 # Distributed under the terms of the GNU General Public License v2
21
22 EAPI=7
23 +
24 inherit autotools multilib-minimal
25
26 DESCRIPTION="C implementation of Bitcoin's base58 encoding"
27 @@ -24,7 +25,8 @@ src_prepare() {
28 eapply_user
29 eautoreconf
30
31 - # NOTE: Needed because test suite uses srcdir instead of builddir to set PATH
32 + # NOTE: Needed because test suite uses srcdir instead of builddir to set PATH and for
33 + # multilib support.
34 multilib_copy_sources
35 }
36
37 @@ -44,5 +46,7 @@ multilib_src_configure() {
38 }
39
40 multilib_src_install_all() {
41 - rm -rf "${ED}/TRASH" || die
42 + if use test; then
43 + rm -r "${ED}/TRASH" || die
44 + fi
45 }