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: Fri, 29 Nov 2019 19:36:00
Message-Id: 1575055912.9ab0a699c1f15f81e7dfd9270031fb39c6126916.whissi@gentoo
1 commit: 9ab0a699c1f15f81e7dfd9270031fb39c6126916
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 29 19:30:21 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 29 19:31:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ab0a699
7
8 dev-php/swoole-async: initial import of v4.4.12
9
10 Bug: 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-async/Manifest | 1 +
15 dev-php/swoole-async/metadata.xml | 8 ++++
16 dev-php/swoole-async/swoole-async-4.4.12.ebuild | 51 +++++++++++++++++++++++++
17 3 files changed, 60 insertions(+)
18
19 diff --git a/dev-php/swoole-async/Manifest b/dev-php/swoole-async/Manifest
20 new file mode 100644
21 index 00000000000..9ef8b7fab79
22 --- /dev/null
23 +++ b/dev-php/swoole-async/Manifest
24 @@ -0,0 +1 @@
25 +DIST swoole-async-4.4.12.tar.gz 417674 BLAKE2B 77a96f53b1b159b558eb4759fe172e4a3b8f2648cd9f49252d89508eb56b4d342b178fa3c84d6a425c300a286063b4d32a05d09a3da4f3769be4c25a9800783c SHA512 adfb761803e5ec93c30aa2a4bbc312a2f43287a54cd237c0a87237dfcbfe1e6daa3d57ec2cdf15720202aa9a7830ed67ab2efdf2f7dd81989c3693e91bc22143
26
27 diff --git a/dev-php/swoole-async/metadata.xml b/dev-php/swoole-async/metadata.xml
28 new file mode 100644
29 index 00000000000..d355171f926
30 --- /dev/null
31 +++ b/dev-php/swoole-async/metadata.xml
32 @@ -0,0 +1,8 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="project">
37 + <email>php-bugs@g.o</email>
38 + <name>PHP Project</name>
39 + </maintainer>
40 +</pkgmetadata>
41
42 diff --git a/dev-php/swoole-async/swoole-async-4.4.12.ebuild b/dev-php/swoole-async/swoole-async-4.4.12.ebuild
43 new file mode 100644
44 index 00000000000..845bfc568cc
45 --- /dev/null
46 +++ b/dev-php/swoole-async/swoole-async-4.4.12.ebuild
47 @@ -0,0 +1,51 @@
48 +# Copyright 1999-2019 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI="7"
52 +
53 +PHP_EXT_NAME="swoole_async"
54 +PHP_EXT_INI="yes"
55 +PHP_EXT_ZENDEXT="no"
56 +PHP_EXT_SAPIS="cli"
57 +DOCS=( README.md )
58 +
59 +USE_PHP="php7-1 php7-2 php7-3 php7-4"
60 +
61 +inherit php-ext-pecl-r3
62 +
63 +SRC_URI="https://github.com/swoole/ext-async/archive/v${PV}.tar.gz -> ${P}.tar.gz"
64 +S="${WORKDIR}/ext-async-${PV}"
65 +PHP_EXT_S="${S}"
66 +
67 +HOMEPAGE="https://www.swoole.co.uk"
68 +KEYWORDS="~amd64 ~x86"
69 +
70 +DESCRIPTION="An extension of Swoole, including the async callback style API"
71 +LICENSE="Apache-2.0"
72 +SLOT="0"
73 +# Tests will require pre-configured endpoint
74 +RESTRICT="test"
75 +
76 +DEPEND=">=dev-php/swoole-4.3"
77 +
78 +RDEPEND="${DEPEND}"
79 +
80 +IUSE="debug"
81 +
82 +src_configure() {
83 + local PHP_EXT_ECONF_ARGS=(
84 + --enable-swoole_async
85 + $(use_enable debug)
86 + )
87 +
88 + php-ext-source-r3_src_configure
89 +}
90 +
91 +src_test() {
92 + local slot
93 + for slot in $(php_get_slots); do
94 + php_init_slot_env "${slot}"
95 + [[ -f tests/template.phpt ]] && rm tests/template.phpt
96 + SKIP_ONLINE_TESTS="yes" NO_INTERACTION="yes" emake test
97 + done
98 +}