1 |
commit: 3d002a389dc3e77943ce1d689e85aa3548793dc6 |
2 |
Author: Luke Dashjr <luke-jr+git <AT> utopios <DOT> org> |
3 |
AuthorDate: Tue Sep 29 14:16:17 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=3d002a38 |
7 |
|
8 |
dev-libs/libbase58: Add multilib support to 0.1.4 |
9 |
|
10 |
Also adds a missing dependency on libgcrypt for test & USE=tools |
11 |
|
12 |
Signed-off-by: Luke Dashjr <luke-jr+git <AT> utopios.org> |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
dev-libs/libbase58/libbase58-0.1.4-r1.ebuild | 48 ++++++++++++++++++++++++++++ |
16 |
1 file changed, 48 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild b/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..6d58a9ccec7 |
21 |
--- /dev/null |
22 |
+++ b/dev-libs/libbase58/libbase58-0.1.4-r1.ebuild |
23 |
@@ -0,0 +1,48 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+inherit autotools multilib-minimal |
29 |
+ |
30 |
+DESCRIPTION="C implementation of Bitcoin's base58 encoding" |
31 |
+HOMEPAGE="https://github.com/luke-jr/libbase58" |
32 |
+LICENSE="MIT" |
33 |
+ |
34 |
+SRC_URI="https://github.com/luke-jr/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+SLOT="0/0" |
36 |
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" |
37 |
+IUSE="test tools" |
38 |
+RESTRICT="!test? ( test )" |
39 |
+ |
40 |
+# NOTE: If not testing, we don't need non-native libgcrypt |
41 |
+RDEPEND="tools? ( dev-libs/libgcrypt )" |
42 |
+DEPEND="${RDEPEND} |
43 |
+ test? ( dev-libs/libgcrypt[${MULTILIB_USEDEP}] ) |
44 |
+" |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ eapply_user |
48 |
+ eautoreconf |
49 |
+ |
50 |
+ # NOTE: Needed because test suite uses srcdir instead of builddir to set PATH |
51 |
+ multilib_copy_sources |
52 |
+} |
53 |
+ |
54 |
+multilib_src_configure() { |
55 |
+ local myeconf=( |
56 |
+ --disable-static |
57 |
+ LIBGCRYPT_CONFIG="${EPREFIX}/usr/bin/${CHOST}-libgcrypt-config" |
58 |
+ ) |
59 |
+ if multilib_is_native_abi && use tools; then |
60 |
+ myeconf+=( --enable-tool ) |
61 |
+ elif use test; then |
62 |
+ myeconf+=( --enable-tool --bindir='/TRASH' ) |
63 |
+ else |
64 |
+ myeconf+=( --disable-tool ) |
65 |
+ fi |
66 |
+ econf "${myeconf[@]}" |
67 |
+} |
68 |
+ |
69 |
+multilib_src_install_all() { |
70 |
+ rm -rf "${ED}/TRASH" || die |
71 |
+} |