1 |
commit: f4e18c9fb2cff9e731bc96fd6886d91cf9720818 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 6 20:47:57 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 6 20:48:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4e18c9f |
7 |
|
8 |
dev-php/swoole: Version bump for 4.1.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
dev-php/swoole/Manifest | 1 + |
13 |
dev-php/swoole/swoole-4.1.1.ebuild | 73 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/dev-php/swoole/Manifest b/dev-php/swoole/Manifest |
17 |
index ade44162de4..b156bf06b08 100644 |
18 |
--- a/dev-php/swoole/Manifest |
19 |
+++ b/dev-php/swoole/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST swoole-4.0.1.tgz 899395 BLAKE2B 7e7320905cb83794115280977031cc5254a4947781fde05db6e7803f34ff0f5c0ecad84f8aa86adc3c21320b031fa3104fb6c953e9060791dbd9d5c497edbcfc SHA512 0df6ae1bf28ec52abebf1a597c0774e7e5de4bb8378c916a46896c7f84822c8466bbb0d3d188e671e7c39faafa94d2dc2245a468dacb2711c7f0fa617dc42aa8 |
22 |
DIST swoole-4.0.4.tgz 907216 BLAKE2B f078f712c61c7ec9c1a98d94370c892fedd7d1efee7de34438a19d96fea9d41a0553d53fdd34c3d32138c6685045bf45be5fad533b0430b07cb7e60d183433d5 SHA512 b448abeec1fdfe94e0fd5d05b9c2abc7cfc2bb9477d6847adc35cba051d38acfb9ff3bdfaeb10591a50f5a6238f21cef4e0b614e1ff53c71f62b0bcd846d785f |
23 |
+DIST swoole-4.1.1.tgz 930623 BLAKE2B fb4fa99b7b687aeaf4473983659cc2ceb7d8ba9ba6e198b49bea175b28918ebf8316c51f3ab7b4f75a9b7566941ddbba698c0d57f6ee752767c416e68fa68ca1 SHA512 4afc986f6ce362e28085d4ce07c534867311d65be487a66edfb0c01df7cf6e6d2df92abb2aba22b72f2840daade82b5bc3a12883d9cb54fd8ed9e6b0cdf0870f |
24 |
|
25 |
diff --git a/dev-php/swoole/swoole-4.1.1.ebuild b/dev-php/swoole/swoole-4.1.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..8dfde46c340 |
28 |
--- /dev/null |
29 |
+++ b/dev-php/swoole/swoole-4.1.1.ebuild |
30 |
@@ -0,0 +1,73 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="6" |
35 |
+ |
36 |
+PHP_EXT_NAME="swoole" |
37 |
+PHP_EXT_INI="yes" |
38 |
+PHP_EXT_ZENDEXT="no" |
39 |
+PHP_EXT_SAPIS="cli" |
40 |
+DOCS=( README.md ) |
41 |
+ |
42 |
+USE_PHP="php7-0 php7-1 php7-2 php7-3" |
43 |
+ |
44 |
+inherit php-ext-pecl-r3 |
45 |
+ |
46 |
+HOMEPAGE="https://www.swoole.co.uk" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+ |
49 |
+DESCRIPTION="Event-driven asynchronous & concurrent & coroutine networking engine" |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+# Tests can hang. Disable until this no longer happens |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+DEPEND=" |
56 |
+ dev-libs/libaio |
57 |
+ dev-libs/boost:0= |
58 |
+ dev-libs/libpcre |
59 |
+ http2? ( net-libs/nghttp2:0= ) |
60 |
+ redis? ( dev-libs/hiredis:0= ) |
61 |
+ ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= ) ) |
62 |
+ php_targets_php7-0? ( dev-lang/php:7.0[cli,sockets?] ) |
63 |
+ php_targets_php7-1? ( dev-lang/php:7.1[cli,sockets?] ) |
64 |
+ php_targets_php7-2? ( dev-lang/php:7.2[cli,sockets?] ) |
65 |
+ php_targets_php7-3? ( dev-lang/php:7.3[cli,sockets?] ) |
66 |
+ mysql? ( |
67 |
+ php_targets_php7-0? ( dev-lang/php:7.0[mysql,mysqli(+)] ) |
68 |
+ php_targets_php7-1? ( dev-lang/php:7.1[mysql,mysqli(+)] ) |
69 |
+ php_targets_php7-2? ( dev-lang/php:7.2[mysql,mysqli(+)] ) |
70 |
+ php_targets_php7-3? ( dev-lang/php:7.3[mysql,mysqli(+)] ) |
71 |
+ ) |
72 |
+" |
73 |
+ |
74 |
+RDEPEND="${DEPEND}" |
75 |
+ |
76 |
+IUSE="debug http2 libressl mysql redis sockets ssl threads" |
77 |
+ |
78 |
+src_configure() { |
79 |
+ # PostgreSQL disabled due to Gentoo's slot system |
80 |
+ local PHP_EXT_ECONF_ARGS=( |
81 |
+ --with-swoole |
82 |
+ --disable-coroutine-postgresql |
83 |
+ $(use_enable debug swoole-debug) |
84 |
+ $(use_enable http2) |
85 |
+ $(use_enable mysql mysqlnd) |
86 |
+ $(use_enable redis async_redis) |
87 |
+ $(use_enable ssl openssl) |
88 |
+ $(use_with ssl openssl-dir "${EROOT%/}/usr") |
89 |
+ $(use_enable threads thread) |
90 |
+ $(use_enable sockets) |
91 |
+ ) |
92 |
+ |
93 |
+ php-ext-source-r3_src_configure |
94 |
+} |
95 |
+ |
96 |
+src_test() { |
97 |
+ local slot |
98 |
+ for slot in $(php_get_slots); do |
99 |
+ php_init_slot_env "${slot}" |
100 |
+ [[ -f tests/template.phpt ]] && rm tests/template.phpt |
101 |
+ SKIP_ONLINE_TESTS="yes" NO_INTERACTION="yes" emake test |
102 |
+ done |
103 |
+} |