Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/symfony-filesystem/, dev-php/symfony-filesystem/files/
Date: Thu, 04 May 2017 11:40:32
Message-Id: 1493897587.0444c1df21634b07573a1d2899e2de49258febb8.mjo@gentoo
1 commit: 0444c1df21634b07573a1d2899e2de49258febb8
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 3 22:40:08 2017 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu May 4 11:33:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0444c1df
7
8 dev-php/symfony-filesystem: new version 3.2.8.
9
10 This new version adds a tiny patch to annotate the one test that
11 requires network access. Afterwards, we are able to enable the test
12 suite and skip the network test. The test suite passes, so I've
13 removed the RESTRICT=test that we had. The patch is reflected
14 in upstream (symfony/symfony) pull request 22630.
15
16 Another small improvement is to spell out the files and directories to
17 be installed, rather than using "." (the whole directory). This avoids
18 installing composer.json and some other junk to the PHP include
19 directory.
20
21 Package-Manager: Portage-2.3.3, Repoman-2.3.1
22
23 dev-php/symfony-filesystem/Manifest | 2 +-
24 .../files/annotate-network-tests.patch | 27 ++++++++++++++++++++++
25 ....2.6.ebuild => symfony-filesystem-3.2.8.ebuild} | 22 +++++++++---------
26 3 files changed, 39 insertions(+), 12 deletions(-)
27
28 diff --git a/dev-php/symfony-filesystem/Manifest b/dev-php/symfony-filesystem/Manifest
29 index 538aed1e1d1..2a19266197e 100644
30 --- a/dev-php/symfony-filesystem/Manifest
31 +++ b/dev-php/symfony-filesystem/Manifest
32 @@ -1 +1 @@
33 -DIST symfony-filesystem-3.2.6.tar.gz 16952 SHA256 bb0802964c58753478c422e8a5dc2b5d62201a49127fa7d036bbce40fb603801 SHA512 6f2d9d772cffc77a8861a8bc70938dd5d1b984b5f95d515e93c3705647622e42bdb83a5328c81aed88bd5b2673ee4f1daf4706f0ca99cdab2c47aa0ce9630aae WHIRLPOOL fbdeeefe74225bdaee12ee57a599d74cf6657faaf50ca192a6e4d0d1c5c0db562e29786306768169aa6a961aeb92bbd099425c19a91e3e77f54f3e80f5ea4753
34 +DIST symfony-filesystem-3.2.8.tar.gz 17361 SHA256 bedb3610c96627c3f7eecdcd248344062181ccfa51b580745c47acf85cbf7d48 SHA512 b9464dec0c5100877bb7178a118ab34e9893307df371e9a9f8df8d69e59b6e14c9f7143e4eaf5b47662f69dce1b5fa975b6bb78e93a5c7455eb44dacfaab82e8 WHIRLPOOL ffdd8ffec5d5217c09e5051b3acc04ea0b72be4c9b214db127ad83c285cdf0b4ed3f2dfb1b21f96821ce5794fb4cc8c1a7cc8e4bc51665eae69f1218a1bbd7e5
35
36 diff --git a/dev-php/symfony-filesystem/files/annotate-network-tests.patch b/dev-php/symfony-filesystem/files/annotate-network-tests.patch
37 new file mode 100644
38 index 00000000000..38c83753195
39 --- /dev/null
40 +++ b/dev-php/symfony-filesystem/files/annotate-network-tests.patch
41 @@ -0,0 +1,27 @@
42 +From cda6fa8801d04b149592c5789c0d060c4ca4e9db Mon Sep 17 00:00:00 2001
43 +From: Michael Orlitzky <michael@××××××××.com>
44 +Date: Wed, 3 May 2017 18:33:56 -0400
45 +Subject: [PATCH 1/1] Annotate the one network test as being a part of the
46 + "network" group.
47 +
48 +---
49 + Tests/FilesystemTest.php | 3 +++
50 + 1 file changed, 3 insertions(+)
51 +
52 +diff --git a/Tests/FilesystemTest.php b/Tests/FilesystemTest.php
53 +index 1341392..a862fa8 100644
54 +--- a/Tests/FilesystemTest.php
55 ++++ b/Tests/FilesystemTest.php
56 +@@ -156,6 +156,9 @@ class FilesystemTest extends FilesystemTestCase
57 + $this->assertEquals('SOURCE FILE', file_get_contents($targetFilePath));
58 + }
59 +
60 ++ /**
61 ++ * @group network
62 ++ */
63 + public function testCopyForOriginUrlsAndExistingLocalFileDefaultsToCopy()
64 + {
65 + $sourceFilePath = 'http://symfony.com/images/common/logo/logo_symfony_header.png';
66 +--
67 +2.10.2
68 +
69
70 diff --git a/dev-php/symfony-filesystem/symfony-filesystem-3.2.6.ebuild b/dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild
71 similarity index 53%
72 rename from dev-php/symfony-filesystem/symfony-filesystem-3.2.6.ebuild
73 rename to dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild
74 index b45a9caeb1c..942c49c4b13 100644
75 --- a/dev-php/symfony-filesystem/symfony-filesystem-3.2.6.ebuild
76 +++ b/dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild
77 @@ -11,31 +11,31 @@ LICENSE="MIT"
78 SLOT="0"
79 KEYWORDS="~amd64 ~x86"
80 IUSE="test"
81 -RESTRICT="test"
82
83 -RDEPEND="
84 - dev-lang/php:*
85 +RDEPEND="dev-lang/php:*
86 dev-php/fedora-autoloader"
87 -DEPEND="
88 - test? (
89 - ${RDEPEND}
90 - dev-php/phpunit )"
91 +DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )"
92
93 S="${WORKDIR}/filesystem-${PV}"
94
95 +# This patch is https://github.com/symfony/symfony/pull/22630
96 +PATCHES=( "${FILESDIR}/annotate-network-tests.patch" )
97 +
98 src_prepare() {
99 default
100 if use test; then
101 - cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
102 + cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die
103 fi
104 }
105
106 src_install() {
107 insinto "/usr/share/php/Symfony/Component/Filesystem"
108 - doins -r . "${FILESDIR}"/autoload.php
109 - dodoc README.md
110 + doins -r Exception
111 + doins *.php "${FILESDIR}/autoload.php"
112 + dodoc CHANGELOG.md README.md
113 }
114
115 src_test() {
116 - phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
117 + phpunit --bootstrap "${S}/autoload-test.php" \
118 + --exclude-group network || die 'test suite failed'
119 }