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

dev-php/sebastian-recursion-context/Manifest [new file with mode: 0644]
dev-php/sebastian-recursion-context/files/autoload.php [new file with mode: 0644]
dev-php/sebastian-recursion-context/metadata.xml [new file with mode: 0644]
dev-php/sebastian-recursion-context/sebastian-recursion-context-2.0.0.ebuild [new file with mode: 0644]

diff --git a/dev-php/sebastian-recursion-context/Manifest b/dev-php/sebastian-recursion-context/Manifest
new file mode 100644 (file)
index 0000000..8dddec1
--- /dev/null
@@ -0,0 +1 @@
+DIST sebastian-recursion-context-2.0.0.tar.gz 4526 SHA256 4e3344e2f3b76ea9cf1cfad9c3bd69c0513d9b25bd2030e8d8c578a924642a97 SHA512 9d25d148decc81f5a21d7a4e1f966563bf6ec765fcc1b1ce779668b74dfa39959db07cf296e9cffcbcb3943c8911709bb73f22c5bfcc81c5d2fcbb51967cf75e WHIRLPOOL 05edbc06187307de51bcd88bc0177c7ee5cb443f426d5154d1bce7d33948fc8092aec765e9cfd67a9471a254402dbb269ebbfb3655c6721e5873150b29208924
diff --git a/dev-php/sebastian-recursion-context/files/autoload.php b/dev-php/sebastian-recursion-context/files/autoload.php
new file mode 100644 (file)
index 0000000..5f7e831
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+/* Autoloader for dev-php/sebastian-recursion-context */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+       require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+       array(
+               'sebastianbergmann\recursioncontext\context' => '/Context.php',
+               'sebastianbergmann\recursioncontext\exception' => '/Exception.php',
+               'sebastianbergmann\recursioncontext\invalidargumentexception' => '/InvalidArgumentException.php',
+       ),
+       __DIR__
+);
diff --git a/dev-php/sebastian-recursion-context/metadata.xml b/dev-php/sebastian-recursion-context/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-recursion-context/sebastian-recursion-context-2.0.0.ebuild b/dev-php/sebastian-recursion-context/sebastian-recursion-context-2.0.0.ebuild
new file mode 100644 (file)
index 0000000..0f4ea3a
--- /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="Recursively process PHP variables"
+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/RecursionContext
+       doins -r src/*
+       doins "${FILESDIR}/autoload.php"
+}