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/symfony-finder/files/, dev-php/symfony-finder/
Date: Thu, 18 Jul 2019 13:01:37
Message-Id: 1563454883.73805a56d7d243b6fca3862ee51c18936b708bd5.whissi@gentoo
1 commit: 73805a56d7d243b6fca3862ee51c18936b708bd5
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 18 12:29:14 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 18 13:01:23 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73805a56
7
8 dev-php/symfony-finder: bump to v3.4.28
9
10 Package-Manager: Portage-2.3.68, Repoman-2.3.16
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/symfony-finder/Manifest | 1 +
14 ...y-finder-3.4.28-skip-file-time-sort-tests.patch | 20 +++++++++++
15 .../symfony-finder/symfony-finder-3.4.28.ebuild | 39 ++++++++++++++++++++++
16 3 files changed, 60 insertions(+)
17
18 diff --git a/dev-php/symfony-finder/Manifest b/dev-php/symfony-finder/Manifest
19 index e4bdaa66b7f..77527123b73 100644
20 --- a/dev-php/symfony-finder/Manifest
21 +++ b/dev-php/symfony-finder/Manifest
22 @@ -1 +1,2 @@
23 DIST symfony-finder-3.2.8.tar.gz 24452 BLAKE2B eed88ea672381fa3a0fef9390109fa7b89b8de87f4e0174fcb24c009044818b7c56846eec0b3240eed1c05fe7d682713fdd41c84e5d766cc2632e5576b38b741 SHA512 7eff457c6c70bf58b4af7e9adbeeb68a1ad684b95510d929f137545be6b755ece37949687f4de27c7fb4d5f208e30c6b0b3a32a804f7a6a6b8ed0d4ed7dfd9cd
24 +DIST symfony-finder-3.4.28.tar.gz 25618 BLAKE2B 592a10a5e8d7f1782242d79bc11ebfde6d528025a65bb18d5c36b238c418a3df10e637a285d0859bb79ab152aafdad5d61d32396efed6f6fe0e800aff03fae69 SHA512 5b1754e47eb484fddfb1d29f181efaabb371e62c2afe5c7c1d0552ac82de81aff0fbc6594498b859b64cd34cf35e57cf29110d59e5f376263f1b136a4d184b69
25
26 diff --git a/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch b/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch
27 new file mode 100644
28 index 00000000000..25729f89e1e
29 --- /dev/null
30 +++ b/dev-php/symfony-finder/files/symfony-finder-3.4.28-skip-file-time-sort-tests.patch
31 @@ -0,0 +1,20 @@
32 +There's one set of tests that tries to sort an array of files by their
33 +access and modification times, and that doesn't work if your filesystem
34 +is mounted with noatime (a lot of our users do that).
35 +
36 +This should probably be fixed upstream, and has been reported here:
37 +
38 +https://github.com/symfony/symfony/issues/17489
39 +
40 +--- a/Tests/Iterator/SortableIteratorTest.php
41 ++++ b/Tests/Iterator/SortableIteratorTest.php
42 +@@ -65,7 +65,8 @@ class SortableIteratorTest extends RealIteratorTestCase
43 + if ('\\' === \DIRECTORY_SEPARATOR && SortableIterator::SORT_BY_MODIFIED_TIME !== $mode) {
44 + $this->markTestSkipped('Sorting by atime or ctime is not supported on Windows');
45 + }
46 +- $this->assertOrderedIteratorForGroups($expected, $iterator);
47 ++ // $this->assertOrderedIteratorForGroups($expected, $iterator);
48 ++ $this->markTestSkipped('Sorting by time is failure-prone on Gentoo');
49 + } else {
50 + $this->assertOrderedIterator($expected, $iterator);
51 + }
52
53 diff --git a/dev-php/symfony-finder/symfony-finder-3.4.28.ebuild b/dev-php/symfony-finder/symfony-finder-3.4.28.ebuild
54 new file mode 100644
55 index 00000000000..40b3be06d7a
56 --- /dev/null
57 +++ b/dev-php/symfony-finder/symfony-finder-3.4.28.ebuild
58 @@ -0,0 +1,39 @@
59 +# Copyright 1999-2019 Gentoo Authors
60 +# Distributed under the terms of the GNU General Public License v2
61 +
62 +EAPI=7
63 +
64 +DESCRIPTION="Symfony Finder Component"
65 +HOMEPAGE="https://github.com/symfony/finder"
66 +SRC_URI="https://github.com/symfony/finder/archive/v${PV}.tar.gz -> symfony-finder-${PV}.tar.gz"
67 +
68 +LICENSE="MIT"
69 +SLOT="0"
70 +KEYWORDS="~amd64 ~x86"
71 +IUSE="test"
72 +
73 +RDEPEND="dev-lang/php:*
74 + dev-php/fedora-autoloader"
75 +DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )"
76 +
77 +S="${WORKDIR}/finder-${PV}"
78 +
79 +PATCHES=( "${FILESDIR}"/${PN}-3.4.28-skip-file-time-sort-tests.patch )
80 +
81 +src_prepare() {
82 + default
83 + if use test; then
84 + cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die
85 + fi
86 +}
87 +
88 +src_install() {
89 + insinto "/usr/share/php/Symfony/Component/Finder"
90 + doins -r Comparator Exception Iterator
91 + doins *.php "${FILESDIR}"/autoload.php
92 + dodoc CHANGELOG.md README.md
93 +}
94 +
95 +src_test() {
96 + phpunit --bootstrap "${S}/autoload-test.php" || die 'test suite failed'
97 +}