commit:     c3d9184ddd1e48b1a243d7db8baa795e705d7e75
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Mon Jul 12 19:05:19 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jul 15 06:03:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3d9184d

dev-cpp/asio: version 1.19.1

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/21619
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-cpp/asio/Manifest           |  1 +
 dev-cpp/asio/asio-1.19.1.ebuild | 51 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/dev-cpp/asio/Manifest b/dev-cpp/asio/Manifest
index 0d24276d214..d8553256be0 100644
--- a/dev-cpp/asio/Manifest
+++ b/dev-cpp/asio/Manifest
@@ -2,3 +2,4 @@ DIST asio-1.10.8.tar.bz2 1270332 BLAKE2B 
97e4a6a7c8b4562f10af1d122e9b08c12d567fd
 DIST asio-1.17.0.tar.bz2 1694631 BLAKE2B 
0463355eef1714604290be43247139ea0220c5614c3c280ccf6049b64a2bb920c9eb885cf5f00c7e007caf3b049fe5cd6589dad0cb23cda4994fd31c7ecd8102
 SHA512 
5978cbf452aff07d6d19a2e641824628f409ab74e2e1a964776dae4c586386149acea56e4c8aa1075b247d2ce566daad640c3bbd15e211df1f73fc7b02964353
 DIST asio-1.18.2.tar.bz2 1743146 BLAKE2B 
8db47419180095e4f05a63e4f414f33399e44f1dfb36299c70fef8bfef347f25df67ae78abf6b6b051e350b10099ec49e751b129bb1913dadf792e24048233a2
 SHA512 
ebe659f958b1813c4a843dce94a8f51d3a3b9f8e0237aa0f032009adaf85400b63b04ac8d664c9424397927d34d78206cbc646d921a520ed415c505f086628b1
 DIST asio-1.19.0.tar.bz2 1840674 BLAKE2B 
1abfc74356dcc86b07c2599ae5668b18c97fc1da39468aae5d8aff0f8b5826ea55de1c287816f370eac2c42608535ee44afaedc66afd88c84c9ebca665d42be9
 SHA512 
d9eb232a0165449985f655433de5d1fa2904edb7a241d55897d3e675d9feca9092342cbb0b6a7d84dbc8f3b6c147c62fa8af5536f065b3f77f800841bf443312
+DIST asio-1.19.1.tar.bz2 1842955 BLAKE2B 
d60c1f98ad563eb7c1b163baac3a5560be1cd712e6b21dedc367b547d62725f22c96cea2ebb4dce1e37163a540ae24d65e9ebc37cde0046c043e83685b7d80c9
 SHA512 
af4501fbd6965ef2efb1f71cd703dec9bb65aaa62243649899469b711f9260936bbce7d261a6bb0db5ca47b7bccb89f72b219b19a249171c18d0a30fb40607e2

diff --git a/dev-cpp/asio/asio-1.19.1.ebuild b/dev-cpp/asio/asio-1.19.1.ebuild
new file mode 100644
index 00000000000..82d648ca221
--- /dev/null
+++ b/dev-cpp/asio/asio-1.19.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Asynchronous Network Library"
+HOMEPAGE="https://think-async.com https://github.com/chriskohlhoff/asio";
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}.tar.bz2"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples ssl test"
+RESTRICT="!test? ( test )"
+# test searches for libssl during ./configure, and REQUIRED_USE is easier than
+# patching configure to not search for it with USE=-ssl
+REQUIRED_USE="test? ( ssl )"
+
+RDEPEND="dev-libs/boost:=
+       ssl? (
+               dev-libs/openssl:0=
+       )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       default
+
+       if ! use test; then
+               # Don't build nor install any examples or unittests
+               # since we don't have a script to run them
+               cat > src/Makefile.in <<-EOF || die
+                       all:
+
+                       install:
+
+                       clean:
+               EOF
+       fi
+}
+
+src_install() {
+       use doc && local HTML_DOCS=( doc/. )
+       default
+
+       if use examples; then
+               # Get rid of the object files
+               emake clean
+               dodoc -r src/examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}

Reply via email to