1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="PHP implementation of JSON schema"
7 HOMEPAGE="https://github.com/justinrainbow/json-schema"
8 SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
12 KEYWORDS="~amd64 ~x86"
14 # Tests are not in the release tarball
19 dev-php/fedora-autoloader"
28 cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
33 insinto "/usr/share/php/JsonSchema"
34 doins -r src/JsonSchema/. "${FILESDIR}"/autoload.php
39 phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"