diff options
4 files changed, 50 insertions, 0 deletions
diff --git a/dev-php/sebastian-recursion-context/Manifest b/dev-php/sebastian-recursion-context/Manifest new file mode 100644 index 000000000000..8dddec180be6 --- /dev/null +++ b/dev-php/sebastian-recursion-context/Manifest @@ -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 index 000000000000..5f7e83143612 --- /dev/null +++ b/dev-php/sebastian-recursion-context/files/autoload.php @@ -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 index 000000000000..b86acf66c756 --- /dev/null +++ b/dev-php/sebastian-recursion-context/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-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 index 000000000000..0f4ea3a96a8d --- /dev/null +++ b/dev-php/sebastian-recursion-context/sebastian-recursion-context-2.0.0.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="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" +} |