diff options
author | Tomas Mozes <hydrapolic@gmail.com> | 2018-09-07 13:13:14 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-09-20 14:00:17 +0200 |
commit | f68e1094a31c7739593f038c6095df35444e1c8d (patch) | |
tree | 68c61c394283134db35f7774df4cd0e9bcc6d759 /dev-php/json-schema | |
parent | dev-php/jsonlint: bump to 1.7.1 (diff) | |
download | gentoo-f68e1094a31c7739593f038c6095df35444e1c8d.tar.gz gentoo-f68e1094a31c7739593f038c6095df35444e1c8d.tar.bz2 gentoo-f68e1094a31c7739593f038c6095df35444e1c8d.zip |
dev-php/json-schema: bump to 5.2.7
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'dev-php/json-schema')
-rw-r--r-- | dev-php/json-schema/Manifest | 1 | ||||
-rw-r--r-- | dev-php/json-schema/json-schema-5.2.7.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-php/json-schema/Manifest b/dev-php/json-schema/Manifest index a0743671c7a6..32ad7ad9bccd 100644 --- a/dev-php/json-schema/Manifest +++ b/dev-php/json-schema/Manifest @@ -1 +1,2 @@ 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 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" +} |