1 |
commit: ac7e1f7d296b09daf32727950cdd62bc7dfb694f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 29 07:43:26 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 07:43:26 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac7e1f7d |
7 |
|
8 |
net-dns/c-ares: add 1.19.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/892489 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-dns/c-ares/Manifest | 2 ++ |
14 |
net-dns/c-ares/c-ares-1.19.0.ebuild | 70 +++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/c-ares/Manifest b/net-dns/c-ares/Manifest |
18 |
index 8191d14c6a84..5c761d9503c0 100644 |
19 |
--- a/net-dns/c-ares/Manifest |
20 |
+++ b/net-dns/c-ares/Manifest |
21 |
@@ -1 +1,3 @@ |
22 |
DIST c-ares-1.18.1.tar.gz 1560165 BLAKE2B c03a572726c6bbb24a3e4773673d0c87f4833bb9582aed57a424eea8c965beb6e232f502b61922b124d37403d91ebfefe0db7373673fc22e0d752c4e5036eb07 SHA512 1276ec0799916019f8c0af6b55a139701bd15e0ca4a00811d07963893978bc96c107b980f0fd49f81aa70bc8b3b8cd671195ba357c390772d4c2c5643c50c5a5 |
23 |
+DIST c-ares-1.19.0.tar.gz 1572210 BLAKE2B d77be535dfa852bf3d91258ddf06b3c63a40123883adb83a4e5652d4b1b16801ddefefad70d83a7d6d9aa81c9c81956fef42bc778d7380d6b398ccfc9f8b82dc SHA512 a7f5988bef393afec08a225be92f6eee54a3e67170fb26cbe00dcc5c5a457b27037bbcfeccc39fb855ed72f100196958d6cbbe251bf1ccfbdd353be18f098359 |
24 |
+DIST c-ares-1.19.0.tar.gz.asc 488 BLAKE2B 1b8dc3ad7b916cb5ea1c95ffd12315d303f78880416836d11d2fa7d8ca93fa1ca30898e6a865af79a35e5dc4d0f4fccfcc9eae6f028d456d38ede9fe8b7edd71 SHA512 814aad5dbe2bb987035b53d977e03a73a90356200f671f36949a77e978cf8311ccc8375e63ade6fe2e1380f1f9c3b34c1ba7d48365fd5689cf5c24425ab8a129 |
25 |
|
26 |
diff --git a/net-dns/c-ares/c-ares-1.19.0.ebuild b/net-dns/c-ares/c-ares-1.19.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..862fa9b9e499 |
29 |
--- /dev/null |
30 |
+++ b/net-dns/c-ares/c-ares-1.19.0.ebuild |
31 |
@@ -0,0 +1,70 @@ |
32 |
+# Copyright 1999-2023 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/danielstenberg.asc |
38 |
+inherit edo multilib-minimal verify-sig |
39 |
+ |
40 |
+DESCRIPTION="C library that resolves names asynchronously" |
41 |
+HOMEPAGE="https://c-ares.org/" |
42 |
+SRC_URI=" |
43 |
+ https://c-ares.org/download/${P}.tar.gz |
44 |
+ verify-sig? ( https://c-ares.org/download/${P}.tar.gz.asc ) |
45 |
+" |
46 |
+ |
47 |
+# Subslot = SONAME of libcares.so.2 |
48 |
+SLOT="0/2" |
49 |
+LICENSE="MIT" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc64-solaris ~x64-solaris ~x86-solaris" |
51 |
+IUSE="static-libs test" |
52 |
+RESTRICT="!test? ( test )" |
53 |
+ |
54 |
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-danielstenberg )" |
55 |
+ |
56 |
+DOCS=( AUTHORS CHANGES NEWS README.md RELEASE-NOTES TODO ) |
57 |
+ |
58 |
+MULTILIB_WRAPPED_HEADERS=( |
59 |
+ /usr/include/ares_build.h |
60 |
+) |
61 |
+ |
62 |
+multilib_src_configure() { |
63 |
+ local myeconfargs=( |
64 |
+ --enable-nonblocking |
65 |
+ --enable-symbol-hiding |
66 |
+ $(use_enable static-libs static) |
67 |
+ $(use_enable test tests) |
68 |
+ ) |
69 |
+ |
70 |
+ # Needed for running unit tests only |
71 |
+ # Violates sandbox and tests pass fine without |
72 |
+ export ax_cv_uts_namespace=no |
73 |
+ export ax_cv_user_namespace=no |
74 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
75 |
+} |
76 |
+ |
77 |
+multilib_src_test() { |
78 |
+ cd "${BUILD_DIR}"/test || die |
79 |
+ |
80 |
+ # We're skipping the "real" network tests with the filter |
81 |
+ # see https://github.com/c-ares/c-ares/tree/main/test |
82 |
+ local network_tests=( |
83 |
+ # Most live tests have Live in the name |
84 |
+ *Live* |
85 |
+ # These don't but are still in ares-test-live.cc => live |
86 |
+ *GetTCPSock* |
87 |
+ *TimeoutValue* |
88 |
+ *GetSock* |
89 |
+ *GetSock_virtualized* |
90 |
+ ) |
91 |
+ |
92 |
+ # The format for disabling test1, test2, and test3 looks like: |
93 |
+ # -test1:test2:test3 |
94 |
+ edo ./arestest --gtest_filter=-$(echo $(IFS=:; echo "${network_tests[*]}")) |
95 |
+} |
96 |
+ |
97 |
+multilib_src_install_all() { |
98 |
+ einstalldocs |
99 |
+ |
100 |
+ find "${ED}" -name "*.la" -delete || die |
101 |
+} |