summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2019-12-20 08:58:06 -0500
committerBrian Evans <grknight@gentoo.org>2019-12-20 13:34:20 -0500
commit241d8f463c0cf896c480fa4d4babf477cfe232b8 (patch)
tree7e46ee067032673d67e614a279fb45402b5f9ab5 /dev-php/sebastian-global-state
parentapp-emulation/open-vm-tools: fix udev warnings (diff)
downloadgentoo-241d8f463c0cf896c480fa4d4babf477cfe232b8.tar.gz
gentoo-241d8f463c0cf896c480fa4d4babf477cfe232b8.tar.bz2
gentoo-241d8f463c0cf896c480fa4d4babf477cfe232b8.zip
dev-php/sebastian-global-state: Version bump for 3.0.0
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php/sebastian-global-state')
-rw-r--r--dev-php/sebastian-global-state/Manifest1
-rw-r--r--dev-php/sebastian-global-state/files/autoload-3.0.0.php25
-rw-r--r--dev-php/sebastian-global-state/sebastian-global-state-3.0.0.ebuild30
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-php/sebastian-global-state/Manifest b/dev-php/sebastian-global-state/Manifest
index 7bab74a043b7..edc11eb7be53 100644
--- a/dev-php/sebastian-global-state/Manifest
+++ b/dev-php/sebastian-global-state/Manifest
@@ -1 +1,2 @@
DIST sebastian-global-state-1.1.1.tar.gz 7659 BLAKE2B 9793e68f226901cb2d67e3d4ac03cc41323485a1b7d819dfe0a4cd9c00b19eb79ebf539a8705545a4c132ef8a2a286edc804016cb76400256008ecd298f2f3c5 SHA512 dec6387183ea6cf869b1302e641a9d85b6dd69ebf299354825ab2f8a06a82609f8e3a2bdeea6924b5520f813af7493fc8e957c3f9876dcaa302066770997186c
+DIST sebastian-global-state-3.0.0.tar.gz 10550 BLAKE2B 58ad62cce7f94805add12105b3000c54e73624c780fa12970e779538f3ff06f145001c6d19e98e817982b092be992b4e1e55638f727fb3e7bad9d12c242546a5 SHA512 2a081fbf7b26afab0eeaf1933887dea12973c6cde1fe7115fe560d56e81ab69dceb7b3431818c51641778f6526abb0055e2a27420e53b2fe90e3f95ee57b01d0
diff --git a/dev-php/sebastian-global-state/files/autoload-3.0.0.php b/dev-php/sebastian-global-state/files/autoload-3.0.0.php
new file mode 100644
index 000000000000..3724c6cbad52
--- /dev/null
+++ b/dev-php/sebastian-global-state/files/autoload-3.0.0.php
@@ -0,0 +1,25 @@
+<?php
+/* Autoloader for dev-php/sebastian-global-state */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ [
+ 'sebastianbergmann\globalstate\blacklist' => '/Blacklist.php',
+ 'sebastianbergmann\globalstate\codeexporter' => '/CodeExporter.php',
+ 'sebastianbergmann\globalstate\exception' => '/exceptions/Exception.php',
+ 'sebastianbergmann\globalstate\restorer' => '/Restorer.php',
+ 'sebastianbergmann\globalstate\runtimeexception' => '/exceptions/RuntimeException.php',
+ 'sebastianbergmann\globalstate\snapshot' => '/Snapshot.php',
+ ],
+ __DIR__
+);
+
+// Required dependencies.
+\Fedora\Autoloader\Dependencies::required([
+ __DIR__."../ObjectReflector/autoload.php",
+ __DIR__."../RecursionContext/autoload.php",
+]);
+
diff --git a/dev-php/sebastian-global-state/sebastian-global-state-3.0.0.ebuild b/dev-php/sebastian-global-state/sebastian-global-state-3.0.0.ebuild
new file mode 100644
index 000000000000..42c9de8f21cc
--- /dev/null
+++ b/dev-php/sebastian-global-state/sebastian-global-state-3.0.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="${PN/sebastian-//}"
+
+DESCRIPTION="Snapshotting of global state"
+HOMEPAGE="http://phpunit.de"
+SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RDEPEND="dev-php/fedora-autoloader
+ >=dev-lang/php-7.2:*
+ >=dev-php/sebastian-object-reflector-1.1.1
+ <dev-php/sebastian-object-reflector-2.0
+ =dev-php/sebastian-recursion-context-3*
+"
+
+src_install() {
+ insinto /usr/share/php/SebastianBergmann/GlobalState
+ doins -r src/*
+ newins "${FILESDIR}/autoload-3.0.0.php" autoload.php
+}