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/
Date: Fri, 29 Nov 2019 19:36:01
Message-Id: 1575055911.5ba9e622f61e9db7f3398d091ee343d04d1b0fe4.whissi@gentoo
1 commit: 5ba9e622f61e9db7f3398d091ee343d04d1b0fe4
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 29 19:11:03 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 29 19:31:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ba9e622
7
8 dev-php/swoole: bump to v4.4.12
9
10 Closes: https://bugs.gentoo.org/697690
11 Package-Manager: Portage-2.3.80, Repoman-2.3.19
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 dev-php/swoole/Manifest | 1 +
15 dev-php/swoole/swoole-4.4.12.ebuild | 74 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 75 insertions(+)
17
18 diff --git a/dev-php/swoole/Manifest b/dev-php/swoole/Manifest
19 index cd47e4b795f..7431340b950 100644
20 --- a/dev-php/swoole/Manifest
21 +++ b/dev-php/swoole/Manifest
22 @@ -4,3 +4,4 @@ DIST swoole-4.1.1.tgz 930623 BLAKE2B fb4fa99b7b687aeaf4473983659cc2ceb7d8ba9ba6e
23 DIST swoole-4.2.13.tgz 1305634 BLAKE2B bb30180f7ca7b024a2aab8aff1149f6b19035315c9518dfc9e9e2e02acde09aa4cd09fbe146aefd39fc09c25af68347a5c188ca8a21677926b1adea5b549858b SHA512 f2438ce761766d20a24279a2d6f2094c718324585b1d396344f64e8a4facc1cc025a3afb2deff3b1accd5266763bdaa0a2b15e831ea4b9bdb107c83b0046636d
24 DIST swoole-4.2.3.tgz 1127669 BLAKE2B c99b540bf2f5c8757ae8e1b88de5db60bd2fcef0a14faebee3032419645f61c3c54c81f0ced7a4d67701bd1932d962592ea695fd4460d4d5bbb6849a2bb13674 SHA512 37758ff2c8e2638bdd9c5c7ac26ec86e71d71a75c4af0a8ac2c68c81eb74fdbb31e70489b94c50488d25ceeed1731e5f8f74316d5cce3f6e6db41623200416f1
25 DIST swoole-4.2.9.tgz 1220045 BLAKE2B 752d00ae6a61c0592f308fceff205be68f55eb9918288fcfa3f2ed29edaf8e3e8682a28e2c783f1eb6df097e5567690cfa88a056b1078ecbbb809e4bd81c5bb6 SHA512 5fbc7c2d5a797074ceaef89d4b5f81440bc7c911e2feda9ded4183069cc9e98bac1ab2acdc6e7788a8c7e379dc0d7b07aaa3c5374c8b20b1ea7c327bc13c87d9
26 +DIST swoole-4.4.12.tgz 1436554 BLAKE2B cc9e64e108aa9b393265708a6922f53824c2e9941c0f47f4f6aacf93239829381cdf4625af8f30e2ca8ceb1663047c6be8b2d7808dbc29d27100135288f7ac85 SHA512 8899bb048b85c048903c80fe1af045ea4f82a25b3b4fd9995d51c8a2ab144306f9f5651276776e3f6a29c83322fb0aeee2822d131247070fe9e2e87b26f2e0e9
27
28 diff --git a/dev-php/swoole/swoole-4.4.12.ebuild b/dev-php/swoole/swoole-4.4.12.ebuild
29 new file mode 100644
30 index 00000000000..7df45e4948c
31 --- /dev/null
32 +++ b/dev-php/swoole/swoole-4.4.12.ebuild
33 @@ -0,0 +1,74 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI="7"
38 +
39 +PHP_EXT_NAME="swoole"
40 +PHP_EXT_INI="yes"
41 +PHP_EXT_ZENDEXT="no"
42 +PHP_EXT_SAPIS="cli"
43 +DOCS=( README.md )
44 +
45 +USE_PHP="php7-1 php7-2 php7-3 php7-4"
46 +
47 +inherit php-ext-pecl-r3
48 +
49 +HOMEPAGE="https://www.swoole.co.uk"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +DESCRIPTION="Event-driven asynchronous & concurrent & coroutine networking engine"
53 +LICENSE="Apache-2.0"
54 +SLOT="0"
55 +# Tests can hang. Disable until this no longer happens
56 +RESTRICT="test"
57 +
58 +DEPEND="
59 + app-arch/brotli:0=
60 + dev-libs/libaio
61 + dev-libs/boost:0=
62 + dev-libs/libpcre
63 + sys-libs/zlib:0=
64 + http2? ( net-libs/nghttp2:0= )
65 + ssl? (
66 + !libressl? ( dev-libs/openssl:0= )
67 + libressl? ( dev-libs/libressl:0= )
68 + )
69 + php_targets_php7-1? ( dev-lang/php:7.1[cli,sockets?] )
70 + php_targets_php7-2? ( dev-lang/php:7.2[cli,sockets?] )
71 + php_targets_php7-3? ( dev-lang/php:7.3[cli,sockets?] )
72 + php_targets_php7-4? ( dev-lang/php:7.4[cli,sockets?] )
73 + mysql? (
74 + php_targets_php7-1? ( dev-lang/php:7.1[mysql,mysqli(+)] )
75 + php_targets_php7-2? ( dev-lang/php:7.2[mysql,mysqli(+)] )
76 + php_targets_php7-3? ( dev-lang/php:7.3[mysql,mysqli(+)] )
77 + php_targets_php7-4? ( dev-lang/php:7.4[mysql,mysqli(+)] )
78 + )
79 +"
80 +
81 +RDEPEND="${DEPEND}"
82 +
83 +IUSE="debug http2 libressl mysql sockets ssl"
84 +
85 +src_configure() {
86 + # JEMalloc not included as it refuses to find a ${EROOT}/usr/includes/jemalloc subdirectory
87 + local PHP_EXT_ECONF_ARGS=(
88 + --enable-swoole
89 + $(use_enable debug)
90 + $(use_enable http2)
91 + $(use_enable mysql mysqlnd)
92 + $(use_enable ssl openssl)
93 + $(use_with ssl openssl-dir "${EROOT}/usr")
94 + $(use_enable sockets)
95 + )
96 +
97 + php-ext-source-r3_src_configure
98 +}
99 +
100 +src_test() {
101 + local slot
102 + for slot in $(php_get_slots); do
103 + php_init_slot_env "${slot}"
104 + [[ -f tests/template.phpt ]] && rm tests/template.phpt
105 + SKIP_ONLINE_TESTS="yes" NO_INTERACTION="yes" emake test
106 + done
107 +}