From e1100985cbebfc3430f6669039b228d94c2f441a Mon Sep 17 00:00:00 2001
From: Michael Orlitzky <mjo@gentoo.org>
Date: Tue, 25 Apr 2017 18:35:11 -0400
Subject: dev-php/symfony-config: new version 2.8.19.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
---
 dev-php/symfony-config/Manifest                    |  2 +-
 dev-php/symfony-config/files/autoload.php          |  9 ++++-
 .../symfony-config/symfony-config-2.8.15-r1.ebuild | 41 ---------------------
 .../symfony-config/symfony-config-2.8.19.ebuild    | 43 ++++++++++++++++++++++
 4 files changed, 52 insertions(+), 43 deletions(-)
 delete mode 100644 dev-php/symfony-config/symfony-config-2.8.15-r1.ebuild
 create mode 100644 dev-php/symfony-config/symfony-config-2.8.19.ebuild

(limited to 'dev-php/symfony-config')

diff --git a/dev-php/symfony-config/Manifest b/dev-php/symfony-config/Manifest
index b4ebc338c463..2ac1c0770ec1 100644
--- a/dev-php/symfony-config/Manifest
+++ b/dev-php/symfony-config/Manifest
@@ -1 +1 @@
-DIST symfony-config-2.8.15.tar.gz 51013 SHA256 75b0a514b92f86e8721bd3e6c313ca1b6c095a372356b8df8f38e39a67a5e1e3 SHA512 96ae8b84d97b5ce79b7eee589de0423ee998ae00e5f1d5cb25befa92e605903b9f8aabb99b9afbc100891d9399f2c9cf59d63be559644bb8531b050fab817538 WHIRLPOOL c8629dd77c5d8f2b0455939f1f6514fa1f7e694e2fa740d142f00352727a443921adb3e0d504f145efa40e6ee3928cb808dd1313bee6892378cee491acb33384
+DIST symfony-config-2.8.19.tar.gz 52568 SHA256 0804dde6ea36afe5f428f838288e22bb8e02e123b970f2ae2f3fef1f18f0f294 SHA512 00d89ec1c78245429652ed48639fe54188c9cafcb7d3cc7978054d26d2e6be44addc738750575a134644b7b9735e805e95cb2890e9c4063dc7359e3b12da6942 WHIRLPOOL eae0fae487163864017097c3172ae151617818ed363618f0df66b12e4d371240609e39ed4446cf5a94da99a08ed8d0120677fd71d3e49a7f55502a41ad055bfb
diff --git a/dev-php/symfony-config/files/autoload.php b/dev-php/symfony-config/files/autoload.php
index 5ebdb7126c25..4cbfc168d793 100644
--- a/dev-php/symfony-config/files/autoload.php
+++ b/dev-php/symfony-config/files/autoload.php
@@ -1,8 +1,15 @@
 <?php
 /* Autoloader for dev-php/symfony-config and its dependencies */
 
+$vendor_dir = '/usr/share/php';
+
 if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
-    require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+  require_once("${vendor_dir}/Fedora/Autoloader/autoload.php");
 }
 
 \Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Config\\', __DIR__);
+
+// Dependencies
+\Fedora\Autoloader\Dependencies::required(array(
+  "${vendor_dir}/Symfony/Component/Filesystem/autoload.php"
+));
diff --git a/dev-php/symfony-config/symfony-config-2.8.15-r1.ebuild b/dev-php/symfony-config/symfony-config-2.8.15-r1.ebuild
deleted file mode 100644
index cd3274c4c2bd..000000000000
--- a/dev-php/symfony-config/symfony-config-2.8.15-r1.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DESCRIPTION="Symfony Config Component"
-HOMEPAGE="https://github.com/symfony/config"
-SRC_URI="https://github.com/symfony/config/archive/v${PV}.tar.gz -> symfony-config-${PV}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-
-RDEPEND="
-	dev-lang/php:*
-	dev-php/fedora-autoloader
-	dev-php/symfony-filesystem"
-DEPEND="
-	test? (
-		${RDEPEND}
-		dev-php/phpunit )"
-
-S="${WORKDIR}/config-${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/Config"
-	doins -r . "${FILESDIR}"/autoload.php
-	dodoc README.md
-}
-
-src_test() {
-	phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
-}
diff --git a/dev-php/symfony-config/symfony-config-2.8.19.ebuild b/dev-php/symfony-config/symfony-config-2.8.19.ebuild
new file mode 100644
index 000000000000..b53316b5174d
--- /dev/null
+++ b/dev-php/symfony-config/symfony-config-2.8.19.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Symfony Config Component"
+HOMEPAGE="https://github.com/symfony/config"
+SRC_URI="https://github.com/symfony/config/archive/v${PV}.tar.gz -> symfony-config-${PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# This needs a newer phpunit and a modified autoload.php but should work.
+RESTRICT=test
+
+RDEPEND="
+	dev-lang/php:*
+	dev-php/fedora-autoloader
+	dev-php/symfony-filesystem"
+DEPEND="test? (	${RDEPEND} dev-php/phpunit )"
+
+S="${WORKDIR}/config-${PV}"
+
+src_prepare() {
+	default
+	if use test; then
+		# Not quite right: we need to include PHPUnit's autoload.php as
+		# part of ours for the test suite to work.
+		cp "${FILESDIR}"/autoload.php "${S}"/autoload-test.php || die
+	fi
+}
+
+src_install() {
+	insinto "/usr/share/php/Symfony/Component/Config"
+	doins -r . "${FILESDIR}"/autoload.php
+	dodoc README.md
+}
+
+src_test() {
+	phpunit --bootstrap "${S}"/autoload-test.php || die "test suite failed"
+}
-- 
cgit v1.2.3-65-gdbad