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-config |
reinit the tree, so we can have metadata
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 | 23 | ||||
-rw-r--r-- | dev-php/symfony-config/symfony-config-2.8.20.ebuild | 39 |
4 files changed, 86 insertions, 0 deletions
diff --git a/dev-php/symfony-config/Manifest b/dev-php/symfony-config/Manifest new file mode 100644 index 000000000000..f1fa4834e866 --- /dev/null +++ b/dev-php/symfony-config/Manifest @@ -0,0 +1,4 @@ +AUX autoload.php 577 SHA256 3c63212adcff6415f748dde38569308fce816edb4cf759d660ad70110acffb05 SHA512 ef699576d866c6a2c8893f8ca5c74d6b019b0cd554e3dfb2946d96cf20c9117e7a6b966c3386f6e1294dcd55feb05df437166711008242cc52bcb1a94ae5e8c6 WHIRLPOOL 4713018efd0580463b9e1e7ad52df1ff9e4f2970586c618fc915c2997569af4940eb3d8c9527eed6c3d89377cd2c94410edd8aa7389d5fb11c5369518ad2e967 +DIST symfony-config-2.8.20.tar.gz 52587 SHA256 19f54b4fc33666872ef1e66c0b3269cfc5b634808b61984d791ec399ef1d815e SHA512 f515f9886be8daa85a3cfe70935b4586ee749a62c3c73c6f2c934af16d4a81f9e49445bdae85329f88fa4dacaf87c56b9b599793d7926e712242bd1fc9dc0675 WHIRLPOOL 61ed346ae004c0ce8037e5c4ceb4d519af9fda6f09e2d533672ee0040c13fa15c53b2abe49f3fba32b827af058b6047200b5c812a2dccf56b7bece812bdeb0ed +EBUILD symfony-config-2.8.20.ebuild 854 SHA256 36e2c801dc22027191c1b8221cf976f1b5eb11c87a0f7a11c5d63a488d78835f SHA512 8d52044d63b2927dea7901f0fe81789a02498f7fcb1ccd6f2cbabf05b9a7b1800e7261efe16c00cb855fb37d2b874bc86ddc732de6e87f617bd20cd2710a7d42 WHIRLPOOL b9cffdcf08f0d7a1e51482fea4f8f5b01790a5658ec750d9ece9199d269acaacfc42622851eb5d878c3afe659495ce55dd5cdd610cd87e99a0a5ab0f6f385d5b +MISC metadata.xml 814 SHA256 80218dfede29236ced349d6e31188bfd55c04839d7cc9dad0df0a95d7cf562d2 SHA512 7837211d7bc06a6e260ccc0e1a1cdc7a1a8cbf622bd2b897663ca2b12ea4acceb108949f5af394b52d4498f59f45fcec736562a3ff0e7624580c1ff5dd463ec2 WHIRLPOOL 783b019fb94dc05f84ad6a81d6979a262a0fb99b42a88cf2e112e38bcc100423ffb300fed7f9f307da4933ee7c692870fbeb402e805353c4ba9e32a2f53d34f2 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..987a2d23c4cf --- /dev/null +++ b/dev-php/symfony-config/metadata.xml @@ -0,0 +1,23 @@ +<?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' +} |