summaryrefslogtreecommitdiff
path: root/dev-php/json-schema
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-07-24 02:11:45 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-07-24 02:11:45 +0100
commitb49088575eb777ced2551f484da86317332d6087 (patch)
treebf9a151cf2d61956340d555659ffc098ee1da466 /dev-php/json-schema
parent514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (diff)
gentoo resync : 24.07.2021
Diffstat (limited to 'dev-php/json-schema')
-rw-r--r--dev-php/json-schema/Manifest2
-rw-r--r--dev-php/json-schema/json-schema-5.2.11.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-php/json-schema/Manifest b/dev-php/json-schema/Manifest
index 137049b8db31..e2909e75c15b 100644
--- a/dev-php/json-schema/Manifest
+++ b/dev-php/json-schema/Manifest
@@ -1,4 +1,6 @@
AUX autoload.php 272 BLAKE2B 35cf5eb6efc11395c45a12a98d2882bc249b4496cba7b1ceba2abbdfa5dbec43a782e1034701f72e12d586aa80460fa87f0623f497f0da33cd8aaff7948d7370 SHA512 d5b970d485d198c855dcebe4c04adf37d7aaa118d7546c3b6d73944809c69ed18436568e33f847329a8027220f735cd5752ef5019bf8dfad40a740d94d02733c
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
EBUILD json-schema-5.2.10.ebuild 858 BLAKE2B e8f206b58487a01e3830d8b6aee6a065db5fef28026168b70e67aa0962e7562e0281c4e7e4b0330dfa54421a06bbb760a4cdc5752eaee4c19937c7af60ca13cc SHA512 fa9780f06d4a76609e9ba9e5a6c7c5b6c576cf3538245c1ce00db8aede778d0628cd53aca985b4e83cd59d81844d2e358ceea5607935c34f01ec143fbe18f758
+EBUILD json-schema-5.2.11.ebuild 860 BLAKE2B 64f52cb1a1a872c96b204977b21241e7ac181ec134f2e4684bfcdde592469bee858b53061c79735fbed294bae22bd193c94b98441504af3149b53d7326a89c54 SHA512 42c9a9b3363e0402fad0910576b9ee949066439074ab8e657fb21c6955a2b74ce4ca9488408461c14c95549389b2bf712f8dace61eea365a7e4112f7bc191547
MISC metadata.xml 593 BLAKE2B a68b29ccf5133a7c4cb1715fbe9539bb10469769db9ef1f6d526b81402353399e943079f374340393a13b3a840b3d0e8b71213c2267ae863b22b0ee53180c136 SHA512 1a107de444658b5f0bc0bf413eaa85faed542a9788b47a5f60b807663b8f19c5bead35871881dd4aace1e886d9fe9d2c0dbd77187e9d27a3b81eb69f52eded21
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 000000000000..88ece98fe120
--- /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"
+}