Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/jsonlint/
Date: Thu, 20 Sep 2018 12:00:41
Message-Id: 1537444815.c35ed05fbc0b1cdaab332dafcee90b6e79dd51f2.whissi@gentoo
1 commit: c35ed05fbc0b1cdaab332dafcee90b6e79dd51f2
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Sep 7 11:12:25 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 20 12:00:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c35ed05f
7
8 dev-php/jsonlint: bump to 1.7.1
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/jsonlint/Manifest | 1 +
14 dev-php/jsonlint/jsonlint-1.7.1.ebuild | 40 ++++++++++++++++++++++++++++++++++
15 2 files changed, 41 insertions(+)
16
17 diff --git a/dev-php/jsonlint/Manifest b/dev-php/jsonlint/Manifest
18 index eddf6fb36af..c848c5894bb 100644
19 --- a/dev-php/jsonlint/Manifest
20 +++ b/dev-php/jsonlint/Manifest
21 @@ -1 +1,2 @@
22 DIST jsonlint-1.6.0.tar.gz 11327 BLAKE2B 481744188c6aa8a3135fc76c1026fce75df9ceaf939db9cb88f323afae27bf5041a56d3a63618ef497dc1e8f0606a8b8c24651fab566bb421d12d0ac5853ad15 SHA512 16538781807a4ca73de83e7be69d0fc2b530dd9b25f2b9a2ee3f1156dd5ebccb79e9489b873f307718ca2da658a1ae7cef5144adb32f2d1e5c34bd192d496c79
23 +DIST jsonlint-1.7.1.tar.gz 11813 BLAKE2B ed1a1404cf77d526a5dce15d0a3f36c5ff8c691e3d2560b6b5e309108d6f0072988b292fd1410b48bfad4ba528abd854204c38bf36f5196c7d8beb468716a5db SHA512 dd8380d02591997a129dc8f25f3b2f7c2f00c1d280bdce6551079b564b54b4828beb929bd9a7c608be6429754eb1c33d2d655a0f87b8f671ccf26ee2ae46095d
24
25 diff --git a/dev-php/jsonlint/jsonlint-1.7.1.ebuild b/dev-php/jsonlint/jsonlint-1.7.1.ebuild
26 new file mode 100644
27 index 00000000000..ae2c9d17871
28 --- /dev/null
29 +++ b/dev-php/jsonlint/jsonlint-1.7.1.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="JSON Lint for PHP"
37 +HOMEPAGE="https://github.com/Seldaek/jsonlint"
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 +RESTRICT="test"
45 +
46 +RDEPEND="
47 + dev-lang/php:*
48 + dev-php/fedora-autoloader"
49 +DEPEND="
50 + test? (
51 + ${RDEPEND}
52 + dev-php/phpunit )"
53 +
54 +src_prepare() {
55 + default
56 + if use test; then
57 + cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
58 + sed -i -e "s:__DIR__:'${S}/src/Seld/JsonLint':" "${S}"/autoload-test.php || die
59 + fi
60 +}
61 +
62 +src_install() {
63 + insinto "/usr/share/php/Seld/JsonLint"
64 + doins -r src/Seld/JsonLint/. "${FILESDIR}"/autoload.php
65 + dodoc README.md
66 +}
67 +
68 +src_test() {
69 + phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
70 +}