summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2017-03-09 10:21:25 -0500
committerBrian Evans <grknight@gentoo.org>2017-03-09 11:21:27 -0500
commitf055eeabd8f0dfebc45b4b116195f59c8ff23660 (patch)
tree88e1bb8b3be9604afdb839c19851edb5d8fb964e /dev-php/sebastian-global-state
parentdev-php/sebastian-object-enumerator: New package for an unbundled phpunit (diff)
downloadgentoo-f055eeabd8f0dfebc45b4b116195f59c8ff23660.tar.gz
gentoo-f055eeabd8f0dfebc45b4b116195f59c8ff23660.tar.bz2
gentoo-f055eeabd8f0dfebc45b4b116195f59c8ff23660.zip
dev-php/sebastian-global-state: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
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.php18
-rw-r--r--dev-php/sebastian-global-state/metadata.xml8
-rw-r--r--dev-php/sebastian-global-state/sebastian-global-state-1.1.1.ebuild26
4 files changed, 53 insertions, 0 deletions
diff --git a/dev-php/sebastian-global-state/Manifest b/dev-php/sebastian-global-state/Manifest
new file mode 100644
index 000000000000..52c5af670ebf
--- /dev/null
+++ b/dev-php/sebastian-global-state/Manifest
@@ -0,0 +1 @@
+DIST sebastian-global-state-1.1.1.tar.gz 7659 SHA256 da19e3b3f65b20bc70a6a822ec432a4be70af96142e9dc7e1fa4d699cb3c5a4d SHA512 dec6387183ea6cf869b1302e641a9d85b6dd69ebf299354825ab2f8a06a82609f8e3a2bdeea6924b5520f813af7493fc8e957c3f9876dcaa302066770997186c WHIRLPOOL 72da8a3ce30c81d784b73f8406a65000a2461bebc82f6a36543be6ceac6e7989f5ff716d9b10ab5b21602f53fc35bf656a2374e457fd266db14a705146b20c59
diff --git a/dev-php/sebastian-global-state/files/autoload.php b/dev-php/sebastian-global-state/files/autoload.php
new file mode 100644
index 000000000000..e7c855e9b3f3
--- /dev/null
+++ b/dev-php/sebastian-global-state/files/autoload.php
@@ -0,0 +1,18 @@
+<?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(
+ array(
+ 'sebastianbergmann\globalstate\blacklist' => '/Blacklist.php',
+ 'sebastianbergmann\globalstate\codeexporter' => '/CodeExporter.php',
+ 'sebastianbergmann\globalstate\exception' => '/Exception.php',
+ 'sebastianbergmann\globalstate\restorer' => '/Restorer.php',
+ 'sebastianbergmann\globalstate\runtimeexception' => '/RuntimeException.php',
+ 'sebastianbergmann\globalstate\snapshot' => '/Snapshot.php',
+ ),
+ __DIR__
+);
diff --git a/dev-php/sebastian-global-state/metadata.xml b/dev-php/sebastian-global-state/metadata.xml
new file mode 100644
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/sebastian-global-state/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>php-bugs@gentoo.org</email>
+ <name>PHP</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-php/sebastian-global-state/sebastian-global-state-1.1.1.ebuild b/dev-php/sebastian-global-state/sebastian-global-state-1.1.1.ebuild
new file mode 100644
index 000000000000..ecece9b03b2e
--- /dev/null
+++ b/dev-php/sebastian-global-state/sebastian-global-state-1.1.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RDEPEND="dev-php/fedora-autoloader
+ >=dev-lang/php-5.6:*"
+
+src_install() {
+ insinto /usr/share/php/SebastianBergmann/GlobalState
+ doins -r src/*
+ doins "${FILESDIR}/autoload.php"
+}