summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2017-03-09 10:19:17 -0500
committerBrian Evans <grknight@gentoo.org>2017-03-09 11:21:22 -0500
commitc2eb2b6bf3ecf37da5c9b628855a81e8900a3dd1 (patch)
tree5269bc2a0972b885374aeef423ff99c12e985c37 /dev-php
parentdev-php/sebastian-recursion-context: New package for an unbundled phpunit (diff)
downloadgentoo-c2eb2b6bf3ecf37da5c9b628855a81e8900a3dd1.tar.gz
gentoo-c2eb2b6bf3ecf37da5c9b628855a81e8900a3dd1.tar.bz2
gentoo-c2eb2b6bf3ecf37da5c9b628855a81e8900a3dd1.zip
dev-php/sebastian-object-enumerator: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/sebastian-object-enumerator/Manifest1
-rw-r--r--dev-php/sebastian-object-enumerator/files/autoload.php19
-rw-r--r--dev-php/sebastian-object-enumerator/metadata.xml8
-rw-r--r--dev-php/sebastian-object-enumerator/sebastian-object-enumerator-2.0.1.ebuild27
4 files changed, 55 insertions, 0 deletions
diff --git a/dev-php/sebastian-object-enumerator/Manifest b/dev-php/sebastian-object-enumerator/Manifest
new file mode 100644
index 000000000000..c5bc43e96938
--- /dev/null
+++ b/dev-php/sebastian-object-enumerator/Manifest
@@ -0,0 +1 @@
+DIST sebastian-object-enumerator-2.0.1.tar.gz 4861 SHA256 073cddeff0412959dce69b844158f5630ec4afd01dbcd7d1bc07e388ddc53eb2 SHA512 087ef23c079be2ef56948c734cbdefbf4d8cad36c6c26aae5e38401ec3f306d91067aea28a2226811d1ed90611c7c8070a4f5c3733a24eb56f6a177eb332a9b3 WHIRLPOOL 7742cfa266a824f3239cc1b93ce05a5401822bfaab7490e10e6dc385da0d844bc62355173247c5569191dbb24fa0903a75803ac4a84ad3f8e399af67e0abddb5
diff --git a/dev-php/sebastian-object-enumerator/files/autoload.php b/dev-php/sebastian-object-enumerator/files/autoload.php
new file mode 100644
index 000000000000..cac71a54f125
--- /dev/null
+++ b/dev-php/sebastian-object-enumerator/files/autoload.php
@@ -0,0 +1,19 @@
+<?php
+/* Autoloader for dev-php/sebastian-object-enumerator */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ array(
+ 'sebastianbergmann\objectenumerator\enumerator' => '/Enumerator.php',
+ 'sebastianbergmann\objectenumerator\exception' => '/Exception.php',
+ 'sebastianbergmann\objectenumerator\invalidargumentexception' => '/InvalidArgumentException.php',
+ ),
+ __DIR__
+);
+
+\Fedora\Autoloader\Dependencies::required(array(
+ '/usr/share/php/SebastianBergmann/RecursionContext/autoload.php',
+));
diff --git a/dev-php/sebastian-object-enumerator/metadata.xml b/dev-php/sebastian-object-enumerator/metadata.xml
new file mode 100644
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/sebastian-object-enumerator/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-object-enumerator/sebastian-object-enumerator-2.0.1.ebuild b/dev-php/sebastian-object-enumerator/sebastian-object-enumerator-2.0.1.ebuild
new file mode 100644
index 000000000000..db03da9b2606
--- /dev/null
+++ b/dev-php/sebastian-object-enumerator/sebastian-object-enumerator-2.0.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/sebastian-//}"
+
+DESCRIPTION="Traverses array structures and object graphs to enumerate all referenced objects"
+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-php/sebastian-recursion-context-3.0
+ >=dev-lang/php-5.6:*"
+
+src_install() {
+ insinto /usr/share/php/SebastianBergmann/ObjectEnumerator
+ doins -r src/*
+ doins "${FILESDIR}/autoload.php"
+}