diff options
Diffstat (limited to 'dev-php/symfony-event-dispatcher')
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-php/symfony-event-dispatcher/Manifest b/dev-php/symfony-event-dispatcher/Manifest new file mode 100644 index 000000000000..780da77fc808 --- /dev/null +++ b/dev-php/symfony-event-dispatcher/Manifest @@ -0,0 +1 @@ +DIST symfony-event-dispatcher-2.1.0.tar.gz 10271 SHA256 00a086a275c25ad9ab00839d7f07f5b7e655f653d504686d6a8eed7fbce1683a SHA512 2430e0955322aa938635b34cfa151166218da51bcc7ac1ff52789fc16aef9eeaa5c504f9d03daa819f47652e5207703314c8695e5023369fe8edf88af06bc54b WHIRLPOOL e21b4c78708ffa580490ae642ea883f374d1e42668d9a0dfccc02ceaa1835552ef8971039f83b3a7c911ea6881e7c984c1baf57c693c88bac6e8091c9a074cc4 diff --git a/dev-php/symfony-event-dispatcher/files/autoload.php b/dev-php/symfony-event-dispatcher/files/autoload.php new file mode 100644 index 000000000000..e1accd4c7a6a --- /dev/null +++ b/dev-php/symfony-event-dispatcher/files/autoload.php @@ -0,0 +1,14 @@ +<?php +/* Autoloader for dev-php/symfony-event-dispatcher 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\\EventDispatcher\\', __DIR__); + +// Dependencies +\Fedora\Autoloader\Dependencies::required(array( + $vendorDir . '/Symfony/Component/DependencyInjection/autoload.php', +)); diff --git a/dev-php/symfony-event-dispatcher/metadata.xml b/dev-php/symfony-event-dispatcher/metadata.xml new file mode 100644 index 000000000000..abb80917f21d --- /dev/null +++ b/dev-php/symfony-event-dispatcher/metadata.xml @@ -0,0 +1,16 @@ +<?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 EventDispatcher component provides tools that allow your application components + to communicate with each other by dispatching events and listening to them. + </longdescription> +</pkgmetadata> diff --git a/dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0.ebuild b/dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0.ebuild new file mode 100644 index 000000000000..9876de950411 --- /dev/null +++ b/dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0.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" +} |