diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-php/symfony-config | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-php/symfony-config')
-rw-r--r-- | dev-php/symfony-config/Manifest | 4 | ||||
-rw-r--r-- | dev-php/symfony-config/files/autoload.php | 20 | ||||
-rw-r--r-- | dev-php/symfony-config/metadata.xml | 24 | ||||
-rw-r--r-- | dev-php/symfony-config/symfony-config-2.8.20.ebuild | 39 |
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-php/symfony-config/Manifest b/dev-php/symfony-config/Manifest new file mode 100644 index 000000000000..293db88ded8a --- /dev/null +++ b/dev-php/symfony-config/Manifest @@ -0,0 +1,4 @@ +AUX autoload.php 577 BLAKE2B 4a36bd333f27a143517c8e81c4749dee06a4f6ef228f6b0af7e94d544118b2345aa6860abeb9386998df5c57e2689d467f075344cf7ed0882baaa8f0d6a29f85 SHA512 ef699576d866c6a2c8893f8ca5c74d6b019b0cd554e3dfb2946d96cf20c9117e7a6b966c3386f6e1294dcd55feb05df437166711008242cc52bcb1a94ae5e8c6 +DIST symfony-config-2.8.20.tar.gz 52587 BLAKE2B 540ed96ebc9d3c5e6d460003c47e2d0612037acc2e40ff413d4195a1f7d48e7e7edb2b0bbf17f982d9ea48242439d819f2b6b442dcd22fa7cc9fa0b29ef2b6e7 SHA512 f515f9886be8daa85a3cfe70935b4586ee749a62c3c73c6f2c934af16d4a81f9e49445bdae85329f88fa4dacaf87c56b9b599793d7926e712242bd1fc9dc0675 +EBUILD symfony-config-2.8.20.ebuild 854 BLAKE2B 4b59a655ec4a3e8f6f1a6a6fa36d95f7d8cfd2d95173e4da97f2fdd9dc688fee8b679873339e2de2abe583136cf25f15086a56f701629276e07f7cd9cf9e3f87 SHA512 8d52044d63b2927dea7901f0fe81789a02498f7fcb1ccd6f2cbabf05b9a7b1800e7261efe16c00cb855fb37d2b874bc86ddc732de6e87f617bd20cd2710a7d42 +MISC metadata.xml 825 BLAKE2B 0360fe3b9d09d22a1a2511ba9632137f06bbed62ecceb5da51a0f634fa603c8bc4cba95cb66cf35a9024b6a7f01502234fba33ee8f4f092a1b32a20b7f2628f1 SHA512 3feeb922f4e961b192ecc9581b468a10121bf522ff51e48ad2cc61e358b2f994037ca1cecb603c5543f74f5753963e8a2a3438de1602b18efe9b0175ee2d7b53 diff --git a/dev-php/symfony-config/files/autoload.php b/dev-php/symfony-config/files/autoload.php new file mode 100644 index 000000000000..6c6f5c501beb --- /dev/null +++ b/dev-php/symfony-config/files/autoload.php @@ -0,0 +1,20 @@ +<?php +/* Autoloader for dev-php/symfony-config and its dependencies */ + +$vendor_dir = '/usr/share/php'; + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once("${vendor_dir}/Fedora/Autoloader/autoload.php"); +} + +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Config\\', __DIR__); + +// Required dependencies. +\Fedora\Autoloader\Dependencies::required(array( + "${vendor_dir}/Symfony/Component/Filesystem/autoload.php" +)); + +// Optional dependencies. +\Fedora\Autoloader\Dependencies::optional(array( + "${vendor_dir}/PHPUnit/vendor/autoload.php" +)); diff --git a/dev-php/symfony-config/metadata.xml b/dev-php/symfony-config/metadata.xml new file mode 100644 index 000000000000..bc820db2a2f2 --- /dev/null +++ b/dev-php/symfony-config/metadata.xml @@ -0,0 +1,24 @@ +<?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 Config component provides several classes to help you find, + load, combine, autofill and validate configuration values of any + kind, whatever their source may be (YAML, XML, INI files, or for + instance a database). + </longdescription> + <upstream> + <remote-id type="github">symfony/config</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/symfony-config/symfony-config-2.8.20.ebuild b/dev-php/symfony-config/symfony-config-2.8.20.ebuild new file mode 100644 index 000000000000..0daa831d25f0 --- /dev/null +++ b/dev-php/symfony-config/symfony-config-2.8.20.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Symfony Config Component" +HOMEPAGE="https://github.com/symfony/config" +SRC_URI="https://github.com/symfony/config/archive/v${PV}.tar.gz + -> symfony-config-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader + dev-php/symfony-filesystem" +DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )" + +S="${WORKDIR}/config-${PV}" + +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/Config" + doins -r . "${FILESDIR}"/autoload.php + dodoc README.md +} + +src_test() { + phpunit --bootstrap "${S}/autoload-test.php" || die 'test suite failed' +} |