diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2016-12-18 16:45:04 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2016-12-18 18:17:17 -0500 |
commit | 79e86cf00f8cf8e6d815ec100d52fff5ff940991 (patch) | |
tree | 04f7f1ed4f03ca6494a02e4f6a685f5666b0aaec /dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0-r1.ebuild | |
parent | dev-php/symfony-event-dispatcher: add upstream/remote-id tag to metadata.xml. (diff) | |
download | gentoo-79e86cf00f8cf8e6d815ec100d52fff5ff940991.tar.gz gentoo-79e86cf00f8cf8e6d815ec100d52fff5ff940991.tar.bz2 gentoo-79e86cf00f8cf8e6d815ec100d52fff5ff940991.zip |
dev-php/symfony-event-dispatcher: loosen restrictions on dependencies.
One of this package's dependencies was declared with the tilde "~"
operator. Per discussion with the maintainer, these are probably
better off being "newer than" operators. We retain the lower bound set
by upstream.
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0-r1.ebuild')
-rw-r--r-- | dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0-r1.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0-r1.ebuild b/dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0-r1.ebuild new file mode 100644 index 000000000000..7c4cc1a57005 --- /dev/null +++ b/dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Symfony EventDispatcher Component" +HOMEPAGE="https://github.com/symfony/event-dispatcher" +SRC_URI="https://github.com/symfony/event-dispatcher/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-lang/php:* + dev-php/fedora-autoloader + >=dev-php/symfony-dependency-injection-2.1.0" +DEPEND=" + test? ( + ${RDEPEND} + dev-php/phpunit )" + +S="${WORKDIR}/event-dispatcher-${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/EventDispatcher" + doins -r . "${FILESDIR}"/autoload.php + dodoc README.md +} + +src_test() { + phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed" +} |