diff options
-rw-r--r-- | dev-php/symfony-config/Manifest | 1 | ||||
-rw-r--r-- | dev-php/symfony-config/files/autoload.php | 8 | ||||
-rw-r--r-- | dev-php/symfony-config/metadata.xml | 17 | ||||
-rw-r--r-- | dev-php/symfony-config/symfony-config-2.1.0.ebuild | 41 |
4 files changed, 67 insertions, 0 deletions
diff --git a/dev-php/symfony-config/Manifest b/dev-php/symfony-config/Manifest new file mode 100644 index 000000000000..ed9072765d6f --- /dev/null +++ b/dev-php/symfony-config/Manifest @@ -0,0 +1 @@ +DIST symfony-config-2.1.0.tar.gz 30897 SHA256 62ac4ca9d918a596773825c0f45c6f8541d6899c260b7bb8237832000e0fa0e1 SHA512 c02c1532d62f1608538ca4f672f25f254b566c5d2c12e07b4d681d67b8a4f7fa7244659cc10f3967fcee15de9f7a1f8c81c3d1ca836dee57564ed342f2133aaf WHIRLPOOL 7de9201feb1cfdca9a3342d29f8cdf57d35d3f2a4bfddada1354fd701fe0be33f66eccf1c30880902ec90e9131f54decc69c730e03e27ca14168ab6f1a1c6607 diff --git a/dev-php/symfony-config/files/autoload.php b/dev-php/symfony-config/files/autoload.php new file mode 100644 index 000000000000..5ebdb7126c25 --- /dev/null +++ b/dev-php/symfony-config/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for dev-php/symfony-config 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\\Config\\', __DIR__); diff --git a/dev-php/symfony-config/metadata.xml b/dev-php/symfony-config/metadata.xml new file mode 100644 index 000000000000..973b41abeb6f --- /dev/null +++ b/dev-php/symfony-config/metadata.xml @@ -0,0 +1,17 @@ +<?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> + <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> +</pkgmetadata> diff --git a/dev-php/symfony-config/symfony-config-2.1.0.ebuild b/dev-php/symfony-config/symfony-config-2.1.0.ebuild new file mode 100644 index 000000000000..f4c1aa64b103 --- /dev/null +++ b/dev-php/symfony-config/symfony-config-2.1.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" +DEPEND=" + test? ( + ${RDEPEND} + dev-php/phpunit )" + +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" +} |