commit:     21ccb0ae5fb08ee2df1a79fe1a100c826f01e47f
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 23 22:39:50 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Jul 23 22:41:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21ccb0ae

dev-php/json-schema: bump to v5.2.11

Package-Manager: Portage-3.0.21, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 dev-php/json-schema/Manifest                  |  1 +
 dev-php/json-schema/json-schema-5.2.11.ebuild | 40 +++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/dev-php/json-schema/Manifest b/dev-php/json-schema/Manifest
index d1c08a6e21a..c8b02458354 100644
--- a/dev-php/json-schema/Manifest
+++ b/dev-php/json-schema/Manifest
@@ -1 +1,2 @@
 DIST json-schema-5.2.10.tar.gz 31261 BLAKE2B 
2f2e3f562552105e924aa3e4408e50c6e42171cb8440ca8009166d956dcb9d4d6a3903c3b7e62bcfa228069c1e17f4faeab56e56ff935fd59fe251d27d12ab3a
 SHA512 
b6d31b5478b93ef7dea741307648734d4d93aa4c0518b0037e81f5411810ea0570a046adb314cbee3f06da4cc9e654c419ff0be75b6ad0f5d3770c03be5707c8
+DIST json-schema-5.2.11.tar.gz 31273 BLAKE2B 
7b5309c772816de08a6a3b600cef1291385357879cfb1e48f548ca2cb666fc87454064d090d4ab662d7937f0bec99bc4f0f304876dd2482896aa5bf41b2ed85e
 SHA512 
1b1981dd12fd8642c26d3be75b40111320f89b6a917dabad087ff40d3baea78304e5611cf2b931e6f8e48f5ee4d14fcbe18c68ba76a90b59702783aea5d63477

diff --git a/dev-php/json-schema/json-schema-5.2.11.ebuild 
b/dev-php/json-schema/json-schema-5.2.11.ebuild
new file mode 100644
index 00000000000..88ece98fe12
--- /dev/null
+++ b/dev-php/json-schema/json-schema-5.2.11.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="PHP implementation of JSON schema"
+HOMEPAGE="https://github.com/justinrainbow/json-schema";
+SRC_URI="https://github.com/justinrainbow/json-schema/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+# Tests are not in the release tarball
+RESTRICT="test"
+
+RDEPEND="
+       dev-lang/php:*
+       dev-php/fedora-autoloader"
+DEPEND="
+       test? (
+               ${RDEPEND}
+               dev-php/phpunit )"
+
+src_prepare() {
+       default
+       if use test; then
+               cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
+       fi
+}
+
+src_install() {
+       insinto "/usr/share/php/JsonSchema"
+       doins -r src/JsonSchema/. "${FILESDIR}"/autoload.php
+       dodoc README.md
+}
+
+src_test() {
+       phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
+}

Reply via email to