From: Guillaume Seren Date: Thu, 24 Nov 2016 07:57:09 +0000 (+0100) Subject: dev-php/symfony-dependency-injection: Add 2.1.0 version X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9963181de943dee8d413267c4dc17edd404812a8;p=gentoo.git dev-php/symfony-dependency-injection: Add 2.1.0 version This is needed for composer-1.2.2, bug 439206. Signed-off-by: Michael Orlitzky --- diff --git a/dev-php/symfony-dependency-injection/Manifest b/dev-php/symfony-dependency-injection/Manifest new file mode 100644 index 000000000000..b3dd8dc95b88 --- /dev/null +++ b/dev-php/symfony-dependency-injection/Manifest @@ -0,0 +1 @@ +DIST symfony-dependency-injection-2.1.0.tar.gz 73560 SHA256 30a693b561743655daa1b58314af0102d2ae8294c73da90e4759b847659f0d4e SHA512 2e21da1eb1dfff9ba9f8cf4c0d62ff2c021e40f611bba0ba98ff0c29dff35774eb252cf04c53437b1a40065209579c48116833fa4f72a674348fd4df8a01ffa7 WHIRLPOOL 260f6ff1a432133d34bd2c6239239ffcc677e7050910447fb02d1ac4126e75fb6104b32ece5b7613142a5199a20c2b8a5fc13c6d789ea2735e261872a8b07cf4 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 @@ + + + + + guillaumeseren@gmail.com + Guillaume Seren + + + proxy-maint@gentoo.org + Proxy Maintainers + + + The DependencyInjection component allows you to standardize + and centralize the way objects are constructed in your application. + + diff --git a/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.1.0.ebuild b/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.1.0.ebuild new file mode 100644 index 000000000000..15b4b0b02701 --- /dev/null +++ b/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.1.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" +RESTRICT="test" + +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 )" + +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 . "${FILESDIR}"/autoload.php + dodoc README.md +} + +src_test() { + phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed" +}