1 |
commit: eb494cdc0dba010a65cfb21a7c4d8877ca25facc |
2 |
Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> |
3 |
AuthorDate: Sat Oct 16 10:08:15 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 16 21:26:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb494cdc |
7 |
|
8 |
dev-cpp/asio: version 1.20.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/22601 |
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
dev-cpp/asio/Manifest | 1 + |
16 |
dev-cpp/asio/asio-1.20.0.ebuild | 49 +++++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 50 insertions(+) |
18 |
|
19 |
diff --git a/dev-cpp/asio/Manifest b/dev-cpp/asio/Manifest |
20 |
index f75d42fe58f..ccdb995c096 100644 |
21 |
--- a/dev-cpp/asio/Manifest |
22 |
+++ b/dev-cpp/asio/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST asio-1.10.8.tar.bz2 1270332 BLAKE2B 97e4a6a7c8b4562f10af1d122e9b08c12d567fd0447d1951a907f47f77832dcd42df4cb9b5b392feaaa2ea7c79d8bedfcf12e3052957ec012d8bb6b4d1347eb5 SHA512 d870686d2b19bec9925c311f2f0fd370e9797bbad252176a80a998f9c322ecd502b5081826105712e7caf87c03c3e6b70a0e219019e5bff46077d6e8c3c6db09 |
25 |
DIST asio-1.19.2.tar.bz2 1842597 BLAKE2B b2236c33432984ab660eba4c93be32374bb49f688a1e6a0711d7bac322cc4a7f817db209278f216468c6a72b9d3dd564cf298e1f49f8098c3fd9aec7acd66eb7 SHA512 07f9c29d8f02090b4d4b6a1867bcc07a8e9f3388556dff787ca3ba143022eeb63bfac0b5bc264076fed4db3b2e5ec6b7ff0ebefde40ba4753c832032a72d54cc |
26 |
+DIST asio-1.20.0.tar.bz2 1845826 BLAKE2B a768dc0b9ae380bef07d674507f7571d0bc47e182cdde10b24cee246814874dd7739c523b071dfede61a12059f52e04d7bbd309a03d93070bc1dd4640c253c19 SHA512 6421960abd2cf0c205cc50e86adfe492bca2870b486328b4825dc0cefc9c40cdc085516d474c23e15a73f4c108c0e69add5fab6dbe594a1e53636c5c3027e4c5 |
27 |
|
28 |
diff --git a/dev-cpp/asio/asio-1.20.0.ebuild b/dev-cpp/asio/asio-1.20.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..0b91e779c0b |
31 |
--- /dev/null |
32 |
+++ b/dev-cpp/asio/asio-1.20.0.ebuild |
33 |
@@ -0,0 +1,49 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+DESCRIPTION="Asynchronous Network Library" |
40 |
+HOMEPAGE="https://think-async.com https://github.com/chriskohlhoff/asio" |
41 |
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}.tar.bz2" |
42 |
+ |
43 |
+LICENSE="Boost-1.0" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
46 |
+IUSE="doc examples test" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+DEPEND=" |
50 |
+ test? ( |
51 |
+ dev-libs/boost |
52 |
+ dev-libs/openssl |
53 |
+ ) |
54 |
+" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ |
59 |
+ if ! use test; then |
60 |
+ # Don't build nor install any examples or unittests |
61 |
+ # since we don't have a script to run them |
62 |
+ cat > src/Makefile.in <<-EOF || die |
63 |
+ all: |
64 |
+ |
65 |
+ install: |
66 |
+ |
67 |
+ clean: |
68 |
+ EOF |
69 |
+ fi |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ use doc && local HTML_DOCS=( doc/. ) |
74 |
+ default |
75 |
+ |
76 |
+ if use examples; then |
77 |
+ # Get rid of the object files |
78 |
+ emake clean |
79 |
+ dodoc -r src/examples |
80 |
+ docompress -x /usr/share/doc/${PF}/examples |
81 |
+ fi |
82 |
+} |