1 |
commit: de6b692ea5a1ae39b2798267ef133c52ef42b8d9 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 25 06:42:15 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 25 06:42:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de6b692e |
7 |
|
8 |
dev-libs/uthash: version bump to 2.0.2 |
9 |
|
10 |
dev-libs/uthash/Manifest | 1 + |
11 |
dev-libs/uthash/files/uthash-2.0.2-cflags.patch | 11 +++++++++ |
12 |
dev-libs/uthash/uthash-2.0.2.ebuild | 30 +++++++++++++++++++++++++ |
13 |
3 files changed, 42 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/uthash/Manifest b/dev-libs/uthash/Manifest |
16 |
index 85c03a47cc1..d4476c4442f 100644 |
17 |
--- a/dev-libs/uthash/Manifest |
18 |
+++ b/dev-libs/uthash/Manifest |
19 |
@@ -1,2 +1,3 @@ |
20 |
DIST uthash-1.9.7.tar.bz2 373059 BLAKE2B 59e24e42a935e44da840ef7a204b43c19bc837b6a5c87ed464143b67608021661603af4f76d143ac5454082f4e391bccc2fd5b443cf23527ca6ef9b530751de0 SHA512 8c02f9ac846a6bfd7292724a3683ae360ff37bba8e3ca98fca106da84976cac9c61766069989ee2c633b20bf82b64658400687a7cfbccab5e98e5fb6cb2e5caa |
21 |
DIST uthash-1.9.9.tar.gz 225620 BLAKE2B 4c23cc11c54ac2c8af96522455126a5fdfb1f533078f3f8259b33376d9e08ee6a347edc16951a732ab5c1100e302f81b6f7c7477da1ab0d36b794ce5a3400583 SHA512 40b888529db6baba7bdb0a11c3f782719c40470f6b8e4d75ed480c4c465606e990abf65786156a93f4e2f9c8805cbc098550cc3c62e33b7345fa5bf6d146a8c4 |
22 |
+DIST uthash-2.0.2.tar.gz 191173 BLAKE2B a4a2ddb19fcc9af1105bc07deb8ccbe9c3f04518b609f7cfd16f0a05ec3e16ffb25fb5f0a5f258413f9f52facaa26adf4ea0683415416c12ab36bf11883976ae SHA512 0c2e686eb5a1d6a03a6fa1d42e803fca4e9b60b2d965c635a5a33d487c8d115f1f8155ff99a0e1874b69f6b66c04ea7d8866472a39abe5d1a23ae73f6fa956d7 |
23 |
|
24 |
diff --git a/dev-libs/uthash/files/uthash-2.0.2-cflags.patch b/dev-libs/uthash/files/uthash-2.0.2-cflags.patch |
25 |
new file mode 100644 |
26 |
index 00000000000..e71506bce15 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/uthash/files/uthash-2.0.2-cflags.patch |
29 |
@@ -0,0 +1,11 @@ |
30 |
+--- uthash-2.0.2/tests/Makefile |
31 |
++++ uthash-2.0.2/tests/Makefile |
32 |
+@@ -18,7 +18,7 @@ |
33 |
+ CFLAGS += -I$(HASHDIR) |
34 |
+ #CFLAGS += -DHASH_BLOOM=16 |
35 |
+ #CFLAGS += -O2 |
36 |
+-CFLAGS += -g |
37 |
++#CFLAGS += -g |
38 |
+ #CFLAGS += -Wstrict-aliasing=2 |
39 |
+ CFLAGS += -Wall |
40 |
+ #CFLAGS += -Wextra |
41 |
|
42 |
diff --git a/dev-libs/uthash/uthash-2.0.2.ebuild b/dev-libs/uthash/uthash-2.0.2.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..3800e6d66a6 |
45 |
--- /dev/null |
46 |
+++ b/dev-libs/uthash/uthash-2.0.2.ebuild |
47 |
@@ -0,0 +1,30 @@ |
48 |
+# Copyright 1999-2018 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=6 |
52 |
+ |
53 |
+inherit toolchain-funcs |
54 |
+ |
55 |
+DESCRIPTION="An easy-to-use hash implementation for C programmers" |
56 |
+HOMEPAGE="https://troydhanson.github.io/uthash/index.html" |
57 |
+SRC_URI="https://github.com/troydhanson/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
58 |
+ |
59 |
+LICENSE="BSD-1" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" |
62 |
+IUSE="test" |
63 |
+ |
64 |
+DEPEND="test? ( dev-lang/perl )" |
65 |
+RDEPEND="" |
66 |
+ |
67 |
+PATCHES=( "${FILESDIR}"/${P}-cflags.patch ) |
68 |
+ |
69 |
+src_test() { |
70 |
+ cd tests || die |
71 |
+ emake CC="$(tc-getCC)" |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ doheader src/*.h |
76 |
+ dodoc doc/*.txt |
77 |
+} |