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-dependency-injection |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/symfony-dependency-injection')
4 files changed, 86 insertions, 0 deletions
diff --git a/dev-php/symfony-dependency-injection/Manifest b/dev-php/symfony-dependency-injection/Manifest new file mode 100644 index 000000000000..7d6c744a35b8 --- /dev/null +++ b/dev-php/symfony-dependency-injection/Manifest @@ -0,0 +1,4 @@ +AUX autoload.php 518 SHA256 9dd0de874fbafa353a92d9336b2aa141f2d0261a4b9ad6a6084847a4b77c8404 SHA512 eefcab891547ce99a3ec9b11f7e4edb5de3164958fa5c698d64411c0a2c1a72711d94fda4e32ceb4fec6b7d2f83f159d4f80bbc3719c18895708652af2b5e377 WHIRLPOOL 5c1273f0dfa3d9c55451fd7431672d322517806fff3916147dbd72e34a990be89d2a6c5d55756af2ac512e2350183e6c487c1c1507d179f7e39ba0872e8f290d +DIST symfony-dependency-injection-2.8.20.tar.gz 117123 SHA256 ff71fe1b93ff2020d59ffae4017fcb3858563e4a8a9002011a639db6c38a8a39 SHA512 9ab6a4b36fde3908f26c2211066df501dd73387a7ec3d0aae85f8289257653bb54393bd9f4b50c347a4d5ba47214f13c089e475eaace3868f5c18f67b69bd829 WHIRLPOOL cf46966bda4af047cd9aa4d3b6c3063c9404b46d6948f14a6fe33852191554e79c8858ca6c47467ab2c760555443a53c970df0baac179bc54543aef519e0cd92 +EBUILD symfony-dependency-injection-2.8.20.ebuild 1225 SHA256 4815e2a3ffa2935854c881d564e6c789dbccbd0f3360683c2ec42208ed74e585 SHA512 0a356695ee5aba4ad3484447f091db58a1ad133fccfa00d4cae723516ec84fa153fa77ab4a05dc86dfea37dc6d9607c111647cba7178235ba1bb5d87441901b0 WHIRLPOOL 15dbb904f8480ec96c30ea5d49eb73421fe7bb3fa06cefdff75af4d8c3f26f7f5f441ba7a3d779bba38303535a3f4012b6ce824b23694376e09dd3875587f3e0 +MISC metadata.xml 739 SHA256 db16331a329b40e3fe8a5e62e19a3bcbb3a4d80604e9185007759d2dc83febe3 SHA512 57dd329c2f51728fb5f70d4bbe233b30bdef12f6d7a37b00190acd5f67adb9067015de6a53f17d194a1c881b54ccd13f18217523da20bda0d6fa38b0cedd9c95 WHIRLPOOL 53581836677295daac8d340df955620b6165b536c698b6ce87dbc40f8ac85092086c13caa444a112c924866e3f3130d1944ef243d8d720cebf8126b7d974cb26 diff --git a/dev-php/symfony-dependency-injection/files/autoload.php b/dev-php/symfony-dependency-injection/files/autoload.php new file mode 100644 index 000000000000..4df35ec39a58 --- /dev/null +++ b/dev-php/symfony-dependency-injection/files/autoload.php @@ -0,0 +1,15 @@ +<?php +/* Autoloader for dev-php/symfony-dependency-injection and its dependencies */ + +$vendorDir = '/usr/share/php'; +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\DependencyInjection\\', __DIR__); + +// Dependencies +\Fedora\Autoloader\Dependencies::required(array( + $vendorDir . '/Symfony/Component/Yaml/autoload.php', + $vendorDir . '/Symfony/Component/Config/autoload.php', +)); diff --git a/dev-php/symfony-dependency-injection/metadata.xml b/dev-php/symfony-dependency-injection/metadata.xml new file mode 100644 index 000000000000..e4e731198205 --- /dev/null +++ b/dev-php/symfony-dependency-injection/metadata.xml @@ -0,0 +1,22 @@ +<?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 DependencyInjection component allows you to standardize + and centralize the way objects are constructed in your application. + </longdescription> + <upstream> + <remote-id type="github">symfony/dependency-injection</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.20.ebuild b/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.20.ebuild new file mode 100644 index 000000000000..9b26caf5c58d --- /dev/null +++ b/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.20.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Symfony DependencyInjection Component" +HOMEPAGE="https://github.com/symfony/dependency-injection" +SRC_URI="https://github.com/symfony/dependency-injection/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +# The test suite requires the unpackaged symfony-expression-language. +RESTRICT=test + +# I'm not sure if symfony-config and symfony-yaml are actually needed if +# you're not running the test suite... +RDEPEND="dev-lang/php:* + dev-php/fedora-autoloader + >=dev-php/symfony-config-2.1.0 + >=dev-php/symfony-yaml-2.1.0" +DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-5.7.15 )" + +S="${WORKDIR}/dependency-injection-${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/DependencyInjection" + doins -r Compiler Dumper Exception Extension LazyProxy Loader ParameterBag + doins *.php "${FILESDIR}/autoload.php" + dodoc CHANGELOG.md README.md +} + +src_test() { + phpunit --bootstrap "${S}/autoload-test.php" || die 'test suite failed' +} |