summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2017-01-05 16:13:47 -0500
committerMichael Orlitzky <mjo@gentoo.org>2017-01-05 16:34:46 -0500
commit68d9fafc5652424a702ed2f9011bac5419bab328 (patch)
tree65ce013fb5bb1c5b6af63cda361fbc0c9293ee35 /dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.15.ebuild
parentdev-php/symfony-config: replace version 2.1.0 with version 2.8.15. (diff)
downloadgentoo-68d9fafc5652424a702ed2f9011bac5419bab328.tar.gz
gentoo-68d9fafc5652424a702ed2f9011bac5419bab328.tar.bz2
gentoo-68d9fafc5652424a702ed2f9011bac5419bab328.zip
dev-php/symfony-dependency-injection: replace v2.1.0 with v2.8.15.
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.15.ebuild')
-rw-r--r--dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.15.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.15.ebuild b/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.15.ebuild
new file mode 100644
index 000000000000..4ad709c2322c
--- /dev/null
+++ b/dev-php/symfony-dependency-injection/symfony-dependency-injection-2.8.15.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 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"
+}