dev-php/symfony-console: Add 2.7.9 version
authorGuillaume Seren <guillaumeseren@gmail.com>
Thu, 24 Nov 2016 08:03:32 +0000 (09:03 +0100)
committerMichael Orlitzky <mjo@gentoo.org>
Sun, 18 Dec 2016 23:17:05 +0000 (18:17 -0500)
This is needed for composer-1.2.2, bug 439206.

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
dev-php/symfony-console/Manifest [new file with mode: 0644]
dev-php/symfony-console/files/autoload.php [new file with mode: 0644]
dev-php/symfony-console/metadata.xml [new file with mode: 0644]
dev-php/symfony-console/symfony-console-2.7.9.ebuild [new file with mode: 0644]

diff --git a/dev-php/symfony-console/Manifest b/dev-php/symfony-console/Manifest
new file mode 100644 (file)
index 0000000..958cbfb
--- /dev/null
@@ -0,0 +1 @@
+DIST symfony-console-2.7.9.tar.gz 116610 SHA256 f4691b11de8e4416911041f42585d66db6ab4999cde411e6cbbe3a997e9815bb SHA512 3de7d78b92c8f0c99d3c90e83a23f6b61eecc195cf92b5c9ebea03a1dc85d2166287e619822238a2f2cd54a430b4a38c7c88be3ba74dab0b66c6104e980a088b WHIRLPOOL 6ece7a9845e00ebdcef702dfaad9b92cc7da65860353acb89f2f971d86a619096a491a4d2862c00f8601f3722062b2855195031e1223d61c1adb23edbec90e8c
diff --git a/dev-php/symfony-console/files/autoload.php b/dev-php/symfony-console/files/autoload.php
new file mode 100644 (file)
index 0000000..14a8fab
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+/* Autoloader for symfony-console 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\\Console\\', __DIR__);
+
+// Dependencies
+\Fedora\Autoloader\Dependencies::required(array(
+       $vendorDir . '/Symfony/Component/EventDispatcher/autoload.php',
+       $vendorDir . '/Psr/Log/autoload.php',
+       $vendorDir . '/Symfony/Component/Process/autoload.php',
+));
diff --git a/dev-php/symfony-console/metadata.xml b/dev-php/symfony-console/metadata.xml
new file mode 100644 (file)
index 0000000..4cdde10
--- /dev/null
@@ -0,0 +1,15 @@
+<?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 Console component eases the creation of beautiful and testable command line interfaces.
+  </longdescription>
+</pkgmetadata>
diff --git a/dev-php/symfony-console/symfony-console-2.7.9.ebuild b/dev-php/symfony-console/symfony-console-2.7.9.ebuild
new file mode 100644 (file)
index 0000000..3006d86
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Subtree split of the Symfony Console Component"
+HOMEPAGE="https://github.com/symfony/console"
+SRC_URI="https://github.com/symfony/console/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-lang/php:*
+       dev-php/fedora-autoloader
+       ~dev-php/psr-log-1.0.2
+       ~dev-php/symfony-event-dispatcher-2.1.0
+       ~dev-php/symfony-process-2.8.12"
+
+S="${WORKDIR}/console-${PV}"
+
+src_install() {
+       insinto "/usr/share/php/Symfony/Component/Console"
+       doins -r . "${FILESDIR}"/autoload.php
+       dodoc README.md
+}