Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/asio/
Date: Mon, 17 Aug 2020 03:51:25
Message-Id: 1597636099.94b93c78d671a30f80b05f316380df67ea9abd74.steils@gentoo
1 commit: 94b93c78d671a30f80b05f316380df67ea9abd74
2 Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
3 AuthorDate: Sat Aug 15 10:59:25 2020 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 17 03:48:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94b93c78
7
8 dev-cpp/asio: upgrade to 1.18.0
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
12 Closes: https://github.com/gentoo/gentoo/pull/17125
13 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
14
15 dev-cpp/asio/Manifest | 1 +
16 dev-cpp/asio/asio-1.18.0.ebuild | 52 +++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 53 insertions(+)
18
19 diff --git a/dev-cpp/asio/Manifest b/dev-cpp/asio/Manifest
20 index 257408a9db3..17d3f7aa9e5 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.16.1.tar.bz2 1493978 BLAKE2B 810fd735a0cbea8e07bfe30cbf02d44469c3c7eebed3822766c0a658fe8972681232afe4a6124537886fafd0769eecc40b8eabbcaa2771b84b93cda56329394d SHA512 e8cab449887e3e362f9d3c2aa1b1bbb2f81954aeaf2cd12cefe7f848cdc30e1a576130b49f551efd49611b9d4941e724baea42739c043e158626f3c982b75311
26 DIST asio-1.17.0.tar.bz2 1694631 BLAKE2B 0463355eef1714604290be43247139ea0220c5614c3c280ccf6049b64a2bb920c9eb885cf5f00c7e007caf3b049fe5cd6589dad0cb23cda4994fd31c7ecd8102 SHA512 5978cbf452aff07d6d19a2e641824628f409ab74e2e1a964776dae4c586386149acea56e4c8aa1075b247d2ce566daad640c3bbd15e211df1f73fc7b02964353
27 +DIST asio-1.18.0.tar.bz2 1724947 BLAKE2B 6772a70c035e7df08484703b6f2fa294b6a1ade4b1e661481df0e790fe4a36d74f0f4b14023c7505fc599c4eefb3e3baf392fd7897c10c07707a0474870a6557 SHA512 4b21b72463951ffc5ef72636858955ae5af5ce0dec4c835fccf3c7e8ccfa10bd97530bfc2ec9c3f601374da8300ac2e61418845d3331c980fa9876057bbbb1e0
28
29 diff --git a/dev-cpp/asio/asio-1.18.0.ebuild b/dev-cpp/asio/asio-1.18.0.ebuild
30 new file mode 100644
31 index 00000000000..1a7e5378adb
32 --- /dev/null
33 +++ b/dev-cpp/asio/asio-1.18.0.ebuild
34 @@ -0,0 +1,52 @@
35 +# Copyright 1999-2020 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 libressl 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 + !libressl? ( dev-libs/openssl:0= )
56 + libressl? ( dev-libs/libressl:0= )
57 + )"
58 +DEPEND="${RDEPEND}"
59 +
60 +src_prepare() {
61 + default
62 +
63 + if ! use test; then
64 + # Don't build nor install any examples or unittests
65 + # since we don't have a script to run them
66 + cat > src/Makefile.in <<-EOF || die
67 + all:
68 +
69 + install:
70 +
71 + clean:
72 + EOF
73 + fi
74 +}
75 +
76 +src_install() {
77 + use doc && local HTML_DOCS=( doc/. )
78 + default
79 +
80 + if use examples; then
81 + # Get rid of the object files
82 + emake clean
83 + dodoc -r src/examples
84 + docompress -x /usr/share/doc/${PF}/examples
85 + fi
86 +}