Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/swoole-async/
Date: Mon, 09 Mar 2020 15:27:08
Message-Id: 1583766638.43335c0d07e0574a9910501fe31d3c0b70cc0b87.whissi@gentoo
1 commit: 43335c0d07e0574a9910501fe31d3c0b70cc0b87
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 9 15:10:38 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 9 15:10:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43335c0d
7
8 dev-php/swoole-async: bump to v4.4.16
9
10 Package-Manager: Portage-2.3.91, Repoman-2.3.20
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/swoole-async/Manifest | 1 +
14 dev-php/swoole-async/swoole-async-4.4.16.ebuild | 51 +++++++++++++++++++++++++
15 2 files changed, 52 insertions(+)
16
17 diff --git a/dev-php/swoole-async/Manifest b/dev-php/swoole-async/Manifest
18 index 9ef8b7fab79..4735139323d 100644
19 --- a/dev-php/swoole-async/Manifest
20 +++ b/dev-php/swoole-async/Manifest
21 @@ -1 +1,2 @@
22 DIST swoole-async-4.4.12.tar.gz 417674 BLAKE2B 77a96f53b1b159b558eb4759fe172e4a3b8f2648cd9f49252d89508eb56b4d342b178fa3c84d6a425c300a286063b4d32a05d09a3da4f3769be4c25a9800783c SHA512 adfb761803e5ec93c30aa2a4bbc312a2f43287a54cd237c0a87237dfcbfe1e6daa3d57ec2cdf15720202aa9a7830ed67ab2efdf2f7dd81989c3693e91bc22143
23 +DIST swoole-async-4.4.16.tar.gz 419094 BLAKE2B 7b93a0d2eb8a9597a68871783c60746c832b2eb1dce89a0f82ca6df2ee20151f910ad4f8ebb6a453bea3b7c2cc274266614f147b34c21a089ff9cc4ca0f73d1c SHA512 cf4bfc3c86740e343774b2cddc0ef2386f522e7929c160bc10d47ebe0b8f8d63dbcc82e70b7f3f30e7f7c102ebd42b02cddf4c3e1a0289f0e45147ddbd9aa546
24
25 diff --git a/dev-php/swoole-async/swoole-async-4.4.16.ebuild b/dev-php/swoole-async/swoole-async-4.4.16.ebuild
26 new file mode 100644
27 index 00000000000..09b9d48a22e
28 --- /dev/null
29 +++ b/dev-php/swoole-async/swoole-async-4.4.16.ebuild
30 @@ -0,0 +1,51 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +PHP_EXT_NAME="swoole_async"
37 +PHP_EXT_INI="yes"
38 +PHP_EXT_ZENDEXT="no"
39 +PHP_EXT_SAPIS="cli"
40 +DOCS=( README.md )
41 +
42 +USE_PHP="php7-1 php7-2 php7-3 php7-4"
43 +
44 +inherit php-ext-pecl-r3
45 +
46 +SRC_URI="https://github.com/swoole/ext-async/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +S="${WORKDIR}/ext-async-${PV}"
48 +PHP_EXT_S="${S}"
49 +
50 +HOMEPAGE="https://www.swoole.co.uk"
51 +KEYWORDS="~amd64 ~x86"
52 +
53 +DESCRIPTION="An extension of Swoole, including the async callback style API"
54 +LICENSE="Apache-2.0"
55 +SLOT="0"
56 +# Tests will require pre-configured endpoint
57 +RESTRICT="test"
58 +
59 +DEPEND=">=dev-php/swoole-4.3"
60 +
61 +RDEPEND="${DEPEND}"
62 +
63 +IUSE="debug"
64 +
65 +src_configure() {
66 + local PHP_EXT_ECONF_ARGS=(
67 + --enable-swoole_async
68 + $(use_enable debug)
69 + )
70 +
71 + php-ext-source-r3_src_configure
72 +}
73 +
74 +src_test() {
75 + local slot
76 + for slot in $(php_get_slots); do
77 + php_init_slot_env "${slot}"
78 + [[ -f tests/template.phpt ]] && rm tests/template.phpt
79 + SKIP_ONLINE_TESTS="yes" NO_INTERACTION="yes" emake test
80 + done
81 +}