diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/symfony-filesystem |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/symfony-filesystem')
-rw-r--r-- | dev-php/symfony-filesystem/Manifest | 5 | ||||
-rw-r--r-- | dev-php/symfony-filesystem/files/annotate-network-tests.patch | 27 | ||||
-rw-r--r-- | dev-php/symfony-filesystem/files/autoload.php | 8 | ||||
-rw-r--r-- | dev-php/symfony-filesystem/metadata.xml | 21 | ||||
-rw-r--r-- | dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild | 41 |
5 files changed, 102 insertions, 0 deletions
diff --git a/dev-php/symfony-filesystem/Manifest b/dev-php/symfony-filesystem/Manifest new file mode 100644 index 000000000000..7ba791edb47d --- /dev/null +++ b/dev-php/symfony-filesystem/Manifest @@ -0,0 +1,5 @@ +AUX annotate-network-tests.patch 865 SHA256 f6cbc9d7b0f452f6504a734db26343107a1e53ba80ab570769bdb1661c06932a SHA512 feebf037ca0040f828cbbb15c290045dc1f0c533fa418bbe81cc4f1cb2c8080af264982129203a4b2172a05920b8e807b32040f79d60fbc4144ef3fe8c09c436 WHIRLPOOL 9f3768cab0d84bf2d98fee5309eb79a66a455f7fca1555d3d29082c5b333d5058a7ba3603dfe6c31f5bd691a945d5b0f18f3efbf0320dc54c7d862dc5f3694b5 +AUX autoload.php 280 SHA256 136310a2543fc1b84282b2caa0b2ef41a2f7101536bd1f487c58b1974363ad33 SHA512 27642698b0f10e96c8fb3ba5619c8b230bc830140d87593c61351c43b1eddb10f82770b37899f305587c9187c673f4b8f889ead8d34926c02e99957620693a0a WHIRLPOOL fcae5092fa5df174528b4984070de7b4e48cc71e33c45e944fc1b803a3fe0020666bb2042fd8a18fdee4c1426fe142b60e457ce9ac2acbbd3835a7e76ce8fb9e +DIST symfony-filesystem-3.2.8.tar.gz 17361 SHA256 bedb3610c96627c3f7eecdcd248344062181ccfa51b580745c47acf85cbf7d48 SHA512 b9464dec0c5100877bb7178a118ab34e9893307df371e9a9f8df8d69e59b6e14c9f7143e4eaf5b47662f69dce1b5fa975b6bb78e93a5c7455eb44dacfaab82e8 WHIRLPOOL ffdd8ffec5d5217c09e5051b3acc04ea0b72be4c9b214db127ad83c285cdf0b4ed3f2dfb1b21f96821ce5794fb4cc8c1a7cc8e4bc51665eae69f1218a1bbd7e5 +EBUILD symfony-filesystem-3.2.8.ebuild 981 SHA256 7c301c14acc069b0294fc98d4eed821789fc0020936ce3675a9b8fe3336b8237 SHA512 87e695ed50eed4b9ce39db0a7357edefe935032134adb8f306b7ce02a14131da9e13484d5b0a9c0fb27cc33bab02fc6edf5317d85927424ab9005047cf93699f WHIRLPOOL 67f8816af5031b082895d3786fb4e7f07f00dd7e042bbe6bc078b5ce844a712d5c630d4e3bda789568980313c8962348b644f9fe2e6f6c419f20202ab29950ad +MISC metadata.xml 671 SHA256 84b3531014c4feb3dcbac4eae5d51cfdf8d699e70151ba12e25b9bc9f1a87528 SHA512 bbc967795d3f2cac6bca2c94805e8e412cacf7a32699222b27f8f658c54363c1ab49cb0e68b2323ad7d8dd71a5983aeae5e2ad52e23759b3cf9f0ff8662d4e6c WHIRLPOOL a3a3c209d90b379531b3dee8889f84c017425dc930bfd2965c8a55844ec7efe258460fd41e09b61c620aff25a077bdb92b4e649efbf9aebcc33a918f0c285bad diff --git a/dev-php/symfony-filesystem/files/annotate-network-tests.patch b/dev-php/symfony-filesystem/files/annotate-network-tests.patch new file mode 100644 index 000000000000..38c83753195f --- /dev/null +++ b/dev-php/symfony-filesystem/files/annotate-network-tests.patch @@ -0,0 +1,27 @@ +From cda6fa8801d04b149592c5789c0d060c4ca4e9db Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Wed, 3 May 2017 18:33:56 -0400 +Subject: [PATCH 1/1] Annotate the one network test as being a part of the + "network" group. + +--- + Tests/FilesystemTest.php | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Tests/FilesystemTest.php b/Tests/FilesystemTest.php +index 1341392..a862fa8 100644 +--- a/Tests/FilesystemTest.php ++++ b/Tests/FilesystemTest.php +@@ -156,6 +156,9 @@ class FilesystemTest extends FilesystemTestCase + $this->assertEquals('SOURCE FILE', file_get_contents($targetFilePath)); + } + ++ /** ++ * @group network ++ */ + public function testCopyForOriginUrlsAndExistingLocalFileDefaultsToCopy() + { + $sourceFilePath = 'http://symfony.com/images/common/logo/logo_symfony_header.png'; +-- +2.10.2 + diff --git a/dev-php/symfony-filesystem/files/autoload.php b/dev-php/symfony-filesystem/files/autoload.php new file mode 100644 index 000000000000..8ea8655d904f --- /dev/null +++ b/dev-php/symfony-filesystem/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for symfony-filesystem and its dependencies */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Filesystem\\', __DIR__); diff --git a/dev-php/symfony-filesystem/metadata.xml b/dev-php/symfony-filesystem/metadata.xml new file mode 100644 index 000000000000..eaf5253c5494 --- /dev/null +++ b/dev-php/symfony-filesystem/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <longdescription> + The Filesystem component provides basic utilities for the filesystem. + </longdescription> + <upstream> + <remote-id type="github">symfony/filesystem</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild b/dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild new file mode 100644 index 000000000000..942c49c4b135 --- /dev/null +++ b/dev-php/symfony-filesystem/symfony-filesystem-3.2.8.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Symfony Filesystem Component" +HOMEPAGE="https://github.com/symfony/filesystem" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-lang/php:* + dev-php/fedora-autoloader" +DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )" + +S="${WORKDIR}/filesystem-${PV}" + +# This patch is https://github.com/symfony/symfony/pull/22630 +PATCHES=( "${FILESDIR}/annotate-network-tests.patch" ) + +src_prepare() { + default + if use test; then + cp "${FILESDIR}/autoload.php" "${S}/autoload-test.php" || die + fi +} + +src_install() { + insinto "/usr/share/php/Symfony/Component/Filesystem" + doins -r Exception + doins *.php "${FILESDIR}/autoload.php" + dodoc CHANGELOG.md README.md +} + +src_test() { + phpunit --bootstrap "${S}/autoload-test.php" \ + --exclude-group network || die 'test suite failed' +} |