1 |
commit: f68e1094a31c7739593f038c6095df35444e1c8d |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 7 11:13:14 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 20 12:00:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f68e1094 |
7 |
|
8 |
dev-php/json-schema: bump to 5.2.7 |
9 |
|
10 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
12 |
|
13 |
dev-php/json-schema/Manifest | 1 + |
14 |
dev-php/json-schema/json-schema-5.2.7.ebuild | 40 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 41 insertions(+) |
16 |
|
17 |
diff --git a/dev-php/json-schema/Manifest b/dev-php/json-schema/Manifest |
18 |
index a0743671c7a..32ad7ad9bcc 100644 |
19 |
--- a/dev-php/json-schema/Manifest |
20 |
+++ b/dev-php/json-schema/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST json-schema-4.1.0.tar.gz 24772 BLAKE2B 181c584c11113c2e0bb7b2f19ef40ae588e470169a4498a47fbd3fcae60d7bb1bb21ac4ab82ce295e487098719fca9004090142d992a296a1b5599fb909b0171 SHA512 5c6bda8c34012bc20d9bf604a6183d50f451327bded70d94415450d2b3cc8e7f6f416ddd8b13db0aeb487fe031fe3185aebd9c97e4c1f79c866dcbc3463f64d0 |
23 |
+DIST json-schema-5.2.7.tar.gz 31388 BLAKE2B b0ce5a9f958effe7d8040c57501841225865eee0d67f56d0eec6aca0c93557b526d51ae35d04a5bd2c066066c1ccdfb00954e6aed866c6d225260ca4a5f73f56 SHA512 fe3b436ea3c29719244fb29e11c37b505fa46845704b9153b1e195147c0b3da39d5d69c61e1b2d89de1ef56bfd51be3552e91cc5dd41a08a8a036e62c29ba197 |
24 |
|
25 |
diff --git a/dev-php/json-schema/json-schema-5.2.7.ebuild b/dev-php/json-schema/json-schema-5.2.7.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..abb217de97e |
28 |
--- /dev/null |
29 |
+++ b/dev-php/json-schema/json-schema-5.2.7.ebuild |
30 |
@@ -0,0 +1,40 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DESCRIPTION="PHP implementation of JSON schema" |
37 |
+HOMEPAGE="https://github.com/justinrainbow/json-schema" |
38 |
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="MIT" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+IUSE="test" |
44 |
+# Tests are not in the release tarball |
45 |
+RESTRICT="test" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ dev-lang/php:* |
49 |
+ dev-php/fedora-autoloader" |
50 |
+DEPEND=" |
51 |
+ test? ( |
52 |
+ ${RDEPEND} |
53 |
+ dev-php/phpunit )" |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ if use test; then |
58 |
+ cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die |
59 |
+ fi |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ insinto "/usr/share/php/JsonSchema" |
64 |
+ doins -r src/JsonSchema/. "${FILESDIR}"/autoload.php |
65 |
+ dodoc README.md |
66 |
+} |
67 |
+ |
68 |
+src_test() { |
69 |
+ phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed" |
70 |
+} |