summaryrefslogtreecommitdiff
path: root/dev-php/json-schema
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-09-21 18:00:10 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-09-21 18:00:10 +0100
commit265dbe5dbc14c199299496c6db8fce3f76647015 (patch)
treeab18b5617d138f6684566b619405090989d55a2c /dev-php/json-schema
parent586819755b4dbfdffdc8a725ab7c0f86095b8489 (diff)
gentoo resync : 21.09.2018
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.7.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-php/json-schema/Manifest b/dev-php/json-schema/Manifest
index 2c1275b8eceb..5263fe382d1c 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-4.1.0.tar.gz 24772 BLAKE2B 181c584c11113c2e0bb7b2f19ef40ae588e470169a4498a47fbd3fcae60d7bb1bb21ac4ab82ce295e487098719fca9004090142d992a296a1b5599fb909b0171 SHA512 5c6bda8c34012bc20d9bf604a6183d50f451327bded70d94415450d2b3cc8e7f6f416ddd8b13db0aeb487fe031fe3185aebd9c97e4c1f79c866dcbc3463f64d0
+DIST json-schema-5.2.7.tar.gz 31388 BLAKE2B b0ce5a9f958effe7d8040c57501841225865eee0d67f56d0eec6aca0c93557b526d51ae35d04a5bd2c066066c1ccdfb00954e6aed866c6d225260ca4a5f73f56 SHA512 fe3b436ea3c29719244fb29e11c37b505fa46845704b9153b1e195147c0b3da39d5d69c61e1b2d89de1ef56bfd51be3552e91cc5dd41a08a8a036e62c29ba197
EBUILD json-schema-4.1.0.ebuild 830 BLAKE2B 971c1161efe1a08fdf902496d278d712f449d0a86e5999768a91460da21a2f0b150fa14aea2d560111963a049859db3f4eeeb9c4097435fcc5b9775f3b18c6aa SHA512 f8bb9a1e53d8048a0b500069fdfa389eb0b12a6cb416791e45b34e0de1d66e5d17c3d5ae5c059936e3e6412c1fdddd6dd27723e1d46feacf2e8b8a309ae11f74
+EBUILD json-schema-5.2.7.ebuild 830 BLAKE2B 694863aaa7495dce6ef836cabcf30194d81134e8a8aa2a90267f68b11e2b445ed469c3297a1d72ee1303aeb9b0d1dc95d11ff6f98212993a3c2241688fc60958 SHA512 51183896266aaac04c774fa811935514edf85be6cbc034c2b89cbb51e830f71638b6ed2ae61e6fa45cf9f05c47413128535b552aa8b822300e19b4c9eb1fba19
MISC metadata.xml 681 BLAKE2B 7c94639852b0bb93de2ce1d05e53917d4fb893b503ac71f15b39233fc95a67ee469a53f175cd470b6f1f510e4f943839c848ae89ad74d3155c420740102c1185 SHA512 85ad81e521ac9eec7fcf4a8a162e412e97e29c30ed22048258a0a7a00b7f77c559544b033938570ebe64ce34ecd61d48dd20648751872d69b98740e791178845
diff --git a/dev-php/json-schema/json-schema-5.2.7.ebuild b/dev-php/json-schema/json-schema-5.2.7.ebuild
new file mode 100644
index 000000000000..abb217de97ee
--- /dev/null
+++ b/dev-php/json-schema/json-schema-5.2.7.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# 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="${HOMEPAGE}/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"
+}