dev-php/json-schema: Add 2.0.0 version
authorGuillaume Seren <guillaumeseren@gmail.com>
Thu, 24 Nov 2016 07:24:03 +0000 (08:24 +0100)
committerMichael Orlitzky <mjo@gentoo.org>
Sun, 18 Dec 2016 23:17:00 +0000 (18:17 -0500)
This is needed for composer-1.2.2, bug 439206.

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
dev-php/json-schema/Manifest [new file with mode: 0644]
dev-php/json-schema/files/autoload.php [new file with mode: 0644]
dev-php/json-schema/json-schema-2.0.0.ebuild [new file with mode: 0644]
dev-php/json-schema/metadata.xml [new file with mode: 0644]

diff --git a/dev-php/json-schema/Manifest b/dev-php/json-schema/Manifest
new file mode 100644 (file)
index 0000000..6c3b3ee
--- /dev/null
@@ -0,0 +1 @@
+DIST json-schema-2.0.0.tar.gz 21319 SHA256 bdbaedf8be4bb2ceb8019c651b0579a4b9723dc95e11f0aa683cfe193064e392 SHA512 8efa6ad3175b474e3c073816651d77e80e3ec7865aa6a04f8c7eff7a91831ab1eb1b0b6968d542aa6d10e1e0a1171ec05889b817713f1d740afeb31c5f124a52 WHIRLPOOL 5af244685521d57b663faf78f287a978e7b8bb89526ad8f282fb7d57490540fd483501752bc27b75d6b2de9699d2684352a0e5711fed98b5c6e9cf2f0437b0d9
diff --git a/dev-php/json-schema/files/autoload.php b/dev-php/json-schema/files/autoload.php
new file mode 100644 (file)
index 0000000..c8a6c8a
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+/**
+ * Autoloader for justinrainbow/json-schema and its dependencies
+ */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+    require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addPsr4('JsonSchema\\', __DIR__);
diff --git a/dev-php/json-schema/json-schema-2.0.0.ebuild b/dev-php/json-schema/json-schema-2.0.0.ebuild
new file mode 100644 (file)
index 0000000..05f6982
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="PHP implementation of JSON schema"
+HOMEPAGE="https://github.com/justinrainbow/json-schema"
+SRC_URI="https://github.com/justinrainbow/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-lang/php:*
+       dev-php/fedora-autoloader"
+
+src_install() {
+       insinto "/usr/share/php/JsonSchema"
+       doins -r src/JsonSchema/. "${FILESDIR}"/autoload.php
+       dodoc README.md
+}
diff --git a/dev-php/json-schema/metadata.xml b/dev-php/json-schema/metadata.xml
new file mode 100644 (file)
index 0000000..9912fb3
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>guillaumeseren@gmail.com</email>
+    <name>Guillaume Seren</name>
+  </maintainer>
+  <maintainer type="project">
+    <email>proxy-maint@gentoo.org</email>
+    <name>Proxy Maintainers</name>
+  </maintainer>
+  <longdescription>
+       A PHP Implementation for validating JSON Structures against a given Schema.
+  </longdescription>
+</pkgmetadata>