Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/asio/
Date: Sat, 12 Jun 2021 05:18:26
Message-Id: 1623474693.2e4c7203d589f023ebabd7c6793dce7352849d66.sam@gentoo
1 commit: 2e4c7203d589f023ebabd7c6793dce7352849d66
2 Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
3 AuthorDate: Sat Jun 12 00:39:18 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 12 05:11:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e4c7203
7
8 dev-cpp/asio: 1.18.2
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
12 Closes: https://github.com/gentoo/gentoo/pull/21207
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 dev-cpp/asio/Manifest | 1 +
16 dev-cpp/asio/asio-1.18.2.ebuild | 51 +++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 52 insertions(+)
18
19 diff --git a/dev-cpp/asio/Manifest b/dev-cpp/asio/Manifest
20 index 86410a3935b..0cefce906bd 100644
21 --- a/dev-cpp/asio/Manifest
22 +++ b/dev-cpp/asio/Manifest
23 @@ -1,3 +1,4 @@
24 DIST asio-1.10.8.tar.bz2 1270332 BLAKE2B 97e4a6a7c8b4562f10af1d122e9b08c12d567fd0447d1951a907f47f77832dcd42df4cb9b5b392feaaa2ea7c79d8bedfcf12e3052957ec012d8bb6b4d1347eb5 SHA512 d870686d2b19bec9925c311f2f0fd370e9797bbad252176a80a998f9c322ecd502b5081826105712e7caf87c03c3e6b70a0e219019e5bff46077d6e8c3c6db09
25 DIST asio-1.17.0.tar.bz2 1694631 BLAKE2B 0463355eef1714604290be43247139ea0220c5614c3c280ccf6049b64a2bb920c9eb885cf5f00c7e007caf3b049fe5cd6589dad0cb23cda4994fd31c7ecd8102 SHA512 5978cbf452aff07d6d19a2e641824628f409ab74e2e1a964776dae4c586386149acea56e4c8aa1075b247d2ce566daad640c3bbd15e211df1f73fc7b02964353
26 DIST asio-1.18.1.tar.bz2 1729219 BLAKE2B 3f020407403175ffb6777b855a38e708241499e0fc8f1389b367bac4faf1e14b94cdf45f3b5ba64e12303237c8a3f817f7b7c320e7a58d72be6b19e04022c681 SHA512 06b41869858b69bc523564d5b219f8ebc995ca862e989f65233778c7596143075662880b6c5dd2eb24c21ba6e68a450888ab07a6bc8585bb6ede9a738e1e27c0
27 +DIST asio-1.18.2.tar.bz2 1743146 BLAKE2B 8db47419180095e4f05a63e4f414f33399e44f1dfb36299c70fef8bfef347f25df67ae78abf6b6b051e350b10099ec49e751b129bb1913dadf792e24048233a2 SHA512 ebe659f958b1813c4a843dce94a8f51d3a3b9f8e0237aa0f032009adaf85400b63b04ac8d664c9424397927d34d78206cbc646d921a520ed415c505f086628b1
28
29 diff --git a/dev-cpp/asio/asio-1.18.2.ebuild b/dev-cpp/asio/asio-1.18.2.ebuild
30 new file mode 100644
31 index 00000000000..82d648ca221
32 --- /dev/null
33 +++ b/dev-cpp/asio/asio-1.18.2.ebuild
34 @@ -0,0 +1,51 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +DESCRIPTION="Asynchronous Network Library"
41 +HOMEPAGE="https://think-async.com https://github.com/chriskohlhoff/asio"
42 +SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}.tar.bz2"
43 +
44 +LICENSE="Boost-1.0"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
47 +IUSE="doc examples ssl test"
48 +RESTRICT="!test? ( test )"
49 +# test searches for libssl during ./configure, and REQUIRED_USE is easier than
50 +# patching configure to not search for it with USE=-ssl
51 +REQUIRED_USE="test? ( ssl )"
52 +
53 +RDEPEND="dev-libs/boost:=
54 + ssl? (
55 + dev-libs/openssl:0=
56 + )"
57 +DEPEND="${RDEPEND}"
58 +
59 +src_prepare() {
60 + default
61 +
62 + if ! use test; then
63 + # Don't build nor install any examples or unittests
64 + # since we don't have a script to run them
65 + cat > src/Makefile.in <<-EOF || die
66 + all:
67 +
68 + install:
69 +
70 + clean:
71 + EOF
72 + fi
73 +}
74 +
75 +src_install() {
76 + use doc && local HTML_DOCS=( doc/. )
77 + default
78 +
79 + if use examples; then
80 + # Get rid of the object files
81 + emake clean
82 + dodoc -r src/examples
83 + docompress -x /usr/share/doc/${PF}/examples
84 + fi
85 +}