1 |
commit: e93f21233a33529cc68db70987e76eb14c80c6b7 |
2 |
Author: Jonathan Davies <jpds <AT> protonmail <DOT> com> |
3 |
AuthorDate: Mon Sep 21 10:20:10 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 7 16:27:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e93f2123 |
7 |
|
8 |
dev-libs/uthash: Version update to 2.1.0 with changes: |
9 |
|
10 |
* Removed empty RDEPEND. |
11 |
* Removed ${PN} in SRC_URI. |
12 |
|
13 |
Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/17624 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
dev-libs/uthash/Manifest | 1 + |
18 |
dev-libs/uthash/files/uthash-2.1.0-cflags.patch | 11 +++++++++ |
19 |
dev-libs/uthash/uthash-2.1.0.ebuild | 30 +++++++++++++++++++++++++ |
20 |
3 files changed, 42 insertions(+) |
21 |
|
22 |
diff --git a/dev-libs/uthash/Manifest b/dev-libs/uthash/Manifest |
23 |
index 352c96a33a5..294f633159b 100644 |
24 |
--- a/dev-libs/uthash/Manifest |
25 |
+++ b/dev-libs/uthash/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST uthash-2.0.2.tar.gz 191173 BLAKE2B a4a2ddb19fcc9af1105bc07deb8ccbe9c3f04518b609f7cfd16f0a05ec3e16ffb25fb5f0a5f258413f9f52facaa26adf4ea0683415416c12ab36bf11883976ae SHA512 0c2e686eb5a1d6a03a6fa1d42e803fca4e9b60b2d965c635a5a33d487c8d115f1f8155ff99a0e1874b69f6b66c04ea7d8866472a39abe5d1a23ae73f6fa956d7 |
28 |
+DIST uthash-2.1.0.tar.gz 191782 BLAKE2B 322661aca33e8df27ec3166cd16549b11f49a6f9eb12f11c78f44b75baf5d9f208825028fb3b89a380277de5784bf2d4c41a6cd2ff070b1d3cd667ec074a85d2 SHA512 c8005113a48ec7636715ecec0286a5d9086971a7267947aba9e0ad031b6113a4f38a1fb512d33d6fefb5891635fdd31169ce4d6ab04b938bda612ebbccb3eda0 |
29 |
|
30 |
diff --git a/dev-libs/uthash/files/uthash-2.1.0-cflags.patch b/dev-libs/uthash/files/uthash-2.1.0-cflags.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..588ec26078c |
33 |
--- /dev/null |
34 |
+++ b/dev-libs/uthash/files/uthash-2.1.0-cflags.patch |
35 |
@@ -0,0 +1,11 @@ |
36 |
+--- uthash-2.1.0/tests/Makefile |
37 |
++++ uthash-2.1.0/tests/Makefile |
38 |
+@@ -18,7 +18,7 @@ |
39 |
+ CFLAGS += -I$(HASHDIR) |
40 |
+ #CFLAGS += -DHASH_BLOOM=16 |
41 |
+ #CFLAGS += -O2 |
42 |
+-CFLAGS += -g |
43 |
++#CFLAGS += -g |
44 |
+ #CFLAGS += -Wstrict-aliasing=2 |
45 |
+ CFLAGS += -Wall |
46 |
+ #CFLAGS += -Wextra |
47 |
|
48 |
diff --git a/dev-libs/uthash/uthash-2.1.0.ebuild b/dev-libs/uthash/uthash-2.1.0.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..49f42356561 |
51 |
--- /dev/null |
52 |
+++ b/dev-libs/uthash/uthash-2.1.0.ebuild |
53 |
@@ -0,0 +1,30 @@ |
54 |
+# Copyright 1999-2019 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+ |
59 |
+inherit toolchain-funcs |
60 |
+ |
61 |
+DESCRIPTION="An easy-to-use hash implementation for C programmers" |
62 |
+HOMEPAGE="https://troydhanson.github.io/uthash/index.html" |
63 |
+SRC_URI="https://github.com/troydhanson/uthash/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="BSD-1" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" |
68 |
+IUSE="test" |
69 |
+RESTRICT="!test? ( test )" |
70 |
+ |
71 |
+DEPEND="test? ( dev-lang/perl )" |
72 |
+ |
73 |
+PATCHES=( "${FILESDIR}"/${P}-cflags.patch ) |
74 |
+ |
75 |
+src_test() { |
76 |
+ cd tests || die |
77 |
+ emake CC="$(tc-getCC)" |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ doheader src/*.h |
82 |
+ dodoc doc/*.txt |
83 |
+} |