From 21ccb0ae5fb08ee2df1a79fe1a100c826f01e47f Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Sat, 24 Jul 2021 00:39:50 +0200 Subject: dev-php/json-schema: bump to v5.2.11 Package-Manager: Portage-3.0.21, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann --- dev-php/json-schema/json-schema-5.2.11.ebuild | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 dev-php/json-schema/json-schema-5.2.11.ebuild (limited to 'dev-php/json-schema/json-schema-5.2.11.ebuild') diff --git a/dev-php/json-schema/json-schema-5.2.11.ebuild b/dev-php/json-schema/json-schema-5.2.11.ebuild new file mode 100644 index 000000000000..88ece98fe120 --- /dev/null +++ b/dev-php/json-schema/json-schema-5.2.11.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# 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="https://github.com/justinrainbow/json-schema/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" +} -- cgit v1.2.3