summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seren <guillaumeseren@gmail.com>2016-11-24 08:59:50 +0100
committerMichael Orlitzky <mjo@gentoo.org>2016-12-18 18:17:05 -0500
commit2283ea231045818bb9d60a4d0710e97a07c8ac42 (patch)
tree23d0299c6d9f89685a746388758c77d486b8e76c /dev-php/symfony-event-dispatcher
parentdev-php/symfony-dependency-injection: Add 2.1.0 version (diff)
downloadgentoo-2283ea231045818bb9d60a4d0710e97a07c8ac42.tar.gz
gentoo-2283ea231045818bb9d60a4d0710e97a07c8ac42.tar.bz2
gentoo-2283ea231045818bb9d60a4d0710e97a07c8ac42.zip
dev-php/symfony-event-dispatcher: Add 2.1.0 version
This is needed for composer-1.2.2, bug 439206. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-php/symfony-event-dispatcher')
-rw-r--r--dev-php/symfony-event-dispatcher/Manifest1
-rw-r--r--dev-php/symfony-event-dispatcher/files/autoload.php14
-rw-r--r--dev-php/symfony-event-dispatcher/metadata.xml16
-rw-r--r--dev-php/symfony-event-dispatcher/symfony-event-dispatcher-2.1.0.ebuild42
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"
+}