dev-php/sebastian-global-state: New package for an unbundled phpunit
authorBrian Evans <grknight@gentoo.org>
Thu, 9 Mar 2017 15:21:25 +0000 (10:21 -0500)
committerBrian Evans <grknight@gentoo.org>
Thu, 9 Mar 2017 16:21:27 +0000 (11:21 -0500)
Package-Manager: Portage-2.3.4, Repoman-2.3.2

dev-php/sebastian-global-state/Manifest [new file with mode: 0644]
dev-php/sebastian-global-state/files/autoload.php [new file with mode: 0644]
dev-php/sebastian-global-state/metadata.xml [new file with mode: 0644]
dev-php/sebastian-global-state/sebastian-global-state-1.1.1.ebuild [new file with mode: 0644]

diff --git a/dev-php/sebastian-global-state/Manifest b/dev-php/sebastian-global-state/Manifest
new file mode 100644 (file)
index 0000000..52c5af6
--- /dev/null
@@ -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 (file)
index 0000000..e7c855e
--- /dev/null
@@ -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 (file)
index 0000000..b86acf6
--- /dev/null
@@ -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 (file)
index 0000000..ecece9b
--- /dev/null
@@ -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"
+}