summaryrefslogtreecommitdiff
path: root/dev-php/reactphp-promise
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-02-13 21:41:11 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-02-13 21:41:11 +0000
commitc8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch)
treec44943ee0563a3fa957716de909fed683117fcb9 /dev-php/reactphp-promise
parent69051588e2f955485fe5d45d45e616bc60a2de57 (diff)
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'dev-php/reactphp-promise')
-rw-r--r--dev-php/reactphp-promise/Manifest3
-rw-r--r--dev-php/reactphp-promise/metadata.xml12
-rw-r--r--dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild48
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-php/reactphp-promise/Manifest b/dev-php/reactphp-promise/Manifest
new file mode 100644
index 000000000000..4efcc912cd4e
--- /dev/null
+++ b/dev-php/reactphp-promise/Manifest
@@ -0,0 +1,3 @@
+DIST reactphp-promise-2.8.0.tar.gz 17178 BLAKE2B 43e5a9eef0f774ec4de7be44fbab300dfd78a23b21de2acbb39e44af49ee95b2532f66b711acc4ee152522d4725e1e29f9abae20d0ac2e18fba3dbb3f615cc5e SHA512 8c882c96b47cc53f791de964303014feb00a73594a510287ea352ff619a8432d88f4c094523d4de98234f985f7351cd244bb094484a257aa36357e85eb0ee62e
+EBUILD reactphp-promise-2.8.0.ebuild 909 BLAKE2B e6beedd68edab2c3ae503427f7583d3b252f5d80fdd8493321863a1f967d06ac6af3d4869195b5f3aa81c21360f48c3226920dbf3ba53b71b87e5b6d3386ca7a SHA512 71328bf38f39ba27ff2573195321cf4956771a5843b1f35f8b164c93a801b4b6cbf0d4648957077da3a3c697ce935542bbaa21730bb3008e27382fc0bef11d84
+MISC metadata.xml 344 BLAKE2B 88de1a794f1b94149fdd01834e7992368c05e039ed6c29131d4dcb01cd77a16d6abe848b89c34829d60b075e20acee99485048c491e371c8209dab12251fda16 SHA512 af2be4270745346e5749954b1ea03bdf37cfec87e8f091aea83867fec0235bc138141353cd81adecb3e37b6bc95209bd234c90217dce017fa0d2f53d474f14c0
diff --git a/dev-php/reactphp-promise/metadata.xml b/dev-php/reactphp-promise/metadata.xml
new file mode 100644
index 000000000000..3ea1553292f1
--- /dev/null
+++ b/dev-php/reactphp-promise/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>php-bugs@gentoo.org</email>
+ <name>PHP</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="github">reactphp/promise</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild
new file mode 100644
index 000000000000..df2600171222
--- /dev/null
+++ b/dev-php/reactphp-promise/reactphp-promise-2.8.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="promise"
+
+DESCRIPTION="A lightweight implementation of CommonJS Promises/A for PHP"
+HOMEPAGE="https://reactphp.org/promise/"
+SRC_URI="https://github.com/reactphp/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+BDEPEND="dev-php/theseer-Autoload"
+
+RDEPEND="dev-php/fedora-autoloader
+ >=dev-lang/php-7.2:*"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ default
+
+ phpab \
+ --output src/autoload.php \
+ --template fedora2 \
+ --basedir src \
+ src \
+ || die
+
+cat >> src/autoload.php <<EOF || die "failed to extend autoload.php"
+
+// Dependencies
+\Fedora\Autoloader\Dependencies::required([
+ '/usr/share/php/React/Promise/functions.php'
+]);
+EOF
+}
+
+src_install() {
+ insinto /usr/share/php/React/Promise
+ doins -r src/*
+
+ einstalldocs
+}