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/reactphp-promise/
Date: Mon, 01 Feb 2021 19:15:59
Message-Id: 1612206950.dbd71774f6ea42b46e040061b0cf2bd7d1833a7d.whissi@gentoo
1 commit: dbd71774f6ea42b46e040061b0cf2bd7d1833a7d
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 18:08:49 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 19:15:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbd71774
7
8 dev-php/reactphp-promise: new package
9
10 New dependency of dev-php/composer-2.
11
12 Package-Manager: Portage-3.0.14, Repoman-3.0.2
13 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
14
15 dev-php/reactphp-promise/Manifest | 1 +
16 dev-php/reactphp-promise/metadata.xml | 12 ++++++
17 .../reactphp-promise/reactphp-promise-2.8.0.ebuild | 48 ++++++++++++++++++++++
18 3 files changed, 61 insertions(+)
19
20 diff --git a/dev-php/reactphp-promise/Manifest b/dev-php/reactphp-promise/Manifest
21 new file mode 100644
22 index 00000000000..c11e1b03009
23 --- /dev/null
24 +++ b/dev-php/reactphp-promise/Manifest
25 @@ -0,0 +1 @@
26 +DIST reactphp-promise-2.8.0.tar.gz 17178 BLAKE2B 43e5a9eef0f774ec4de7be44fbab300dfd78a23b21de2acbb39e44af49ee95b2532f66b711acc4ee152522d4725e1e29f9abae20d0ac2e18fba3dbb3f615cc5e SHA512 8c882c96b47cc53f791de964303014feb00a73594a510287ea352ff619a8432d88f4c094523d4de98234f985f7351cd244bb094484a257aa36357e85eb0ee62e
27
28 diff --git a/dev-php/reactphp-promise/metadata.xml b/dev-php/reactphp-promise/metadata.xml
29 new file mode 100644
30 index 00000000000..3ea1553292f
31 --- /dev/null
32 +++ b/dev-php/reactphp-promise/metadata.xml
33 @@ -0,0 +1,12 @@
34 +<?xml version='1.0' encoding='UTF-8'?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="project">
38 + <email>php-bugs@g.o</email>
39 + <name>PHP</name>
40 + </maintainer>
41 + <stabilize-allarches/>
42 + <upstream>
43 + <remote-id type="github">reactphp/promise</remote-id>
44 + </upstream>
45 +</pkgmetadata>
46
47 diff --git a/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild
48 new file mode 100644
49 index 00000000000..df260017122
50 --- /dev/null
51 +++ b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild
52 @@ -0,0 +1,48 @@
53 +# Copyright 1999-2021 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +MY_PN="promise"
59 +
60 +DESCRIPTION="A lightweight implementation of CommonJS Promises/A for PHP"
61 +HOMEPAGE="https://reactphp.org/promise/"
62 +SRC_URI="https://github.com/reactphp/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
63 +
64 +LICENSE="MIT"
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~x86"
67 +IUSE=""
68 +
69 +BDEPEND="dev-php/theseer-Autoload"
70 +
71 +RDEPEND="dev-php/fedora-autoloader
72 + >=dev-lang/php-7.2:*"
73 +
74 +S="${WORKDIR}/${MY_PN}-${PV}"
75 +
76 +src_prepare() {
77 + default
78 +
79 + phpab \
80 + --output src/autoload.php \
81 + --template fedora2 \
82 + --basedir src \
83 + src \
84 + || die
85 +
86 +cat >> src/autoload.php <<EOF || die "failed to extend autoload.php"
87 +
88 +// Dependencies
89 +\Fedora\Autoloader\Dependencies::required([
90 + '/usr/share/php/React/Promise/functions.php'
91 +]);
92 +EOF
93 +}
94 +
95 +src_install() {
96 + insinto /usr/share/php/React/Promise
97 + doins -r src/*
98 +
99 + einstalldocs
100 +}