Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libbloom/files/, net-libs/libbloom/
Date: Mon, 01 Jun 2020 07:24:33
Message-Id: 1590995315.f7a2c4a647ebed76a49f3c68942763d767999b55.slyfox@gentoo
1 commit: f7a2c4a647ebed76a49f3c68942763d767999b55
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 1 07:08:35 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 1 07:08:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7a2c4a6
7
8 net-libs/libbloom: respect user's AR
9
10 Reported-by: Agostino Sarubbo
11 Closes: https://bugs.gentoo.org/721238
12 Package-Manager: Portage-2.3.100, Repoman-2.3.22
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 net-libs/libbloom/files/libbloom-1.5-AR.patch | 11 ++++++++++
16 net-libs/libbloom/libbloom-1.5-r2.ebuild | 30 +++++++++++++++++++++++++++
17 2 files changed, 41 insertions(+)
18
19 diff --git a/net-libs/libbloom/files/libbloom-1.5-AR.patch b/net-libs/libbloom/files/libbloom-1.5-AR.patch
20 new file mode 100644
21 index 00000000000..5a1b14d76b0
22 --- /dev/null
23 +++ b/net-libs/libbloom/files/libbloom-1.5-AR.patch
24 @@ -0,0 +1,11 @@
25 +--- a/Makefile
26 ++++ b/Makefile
27 +@@ -97,7 +97,7 @@ $(BUILD)/$(SO_VERSIONED): $(BUILD)/murmurhash2.o $(BUILD)/bloom.o
28 + rm -f libbloom.$(SO) && ln -s $(BLOOM_SONAME) libbloom.$(SO))
29 +
30 + $(BUILD)/libbloom.a: $(BUILD)/murmurhash2.o $(BUILD)/bloom.o
31 +- (cd $(BUILD) && ar rcs libbloom.a bloom.o murmurhash2.o)
32 ++ (cd $(BUILD) && $(AR) rcs libbloom.a bloom.o murmurhash2.o)
33 +
34 + $(BUILD)/test-libbloom: $(TESTDIR)/test.c $(BUILD)/$(SO_VERSIONED)
35 + $(COM) -I$(TOP) -c $(TESTDIR)/test.c -o $(BUILD)/test.o
36
37 diff --git a/net-libs/libbloom/libbloom-1.5-r2.ebuild b/net-libs/libbloom/libbloom-1.5-r2.ebuild
38 new file mode 100644
39 index 00000000000..9be6bd8a03a
40 --- /dev/null
41 +++ b/net-libs/libbloom/libbloom-1.5-r2.ebuild
42 @@ -0,0 +1,30 @@
43 +# Copyright 1999-2020 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=7
47 +
48 +inherit toolchain-funcs
49 +
50 +DESCRIPTION="A simple and small bloom filter implementation in plain C."
51 +HOMEPAGE="https://github.com/jvirkki/libbloom"
52 +SRC_URI="https://github.com/jvirkki/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
53 +
54 +LICENSE="BSD"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
57 +IUSE=""
58 +
59 +DEPEND=""
60 +RDEPEND=""
61 +
62 +PATCHES=("${FILESDIR}"/${PN}-1.5-AR.patch)
63 +
64 +src_compile() {
65 + tc-export AR CC
66 + emake BITS=default OPT=
67 +}
68 +
69 +src_install() {
70 + doheader bloom.h
71 + dolib.so build/${PN}.so*
72 +}