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

dev-php/sebastian-object-enumerator/Manifest [new file with mode: 0644]
dev-php/sebastian-object-enumerator/files/autoload.php [new file with mode: 0644]
dev-php/sebastian-object-enumerator/metadata.xml [new file with mode: 0644]
dev-php/sebastian-object-enumerator/sebastian-object-enumerator-2.0.1.ebuild [new file with mode: 0644]

diff --git a/dev-php/sebastian-object-enumerator/Manifest b/dev-php/sebastian-object-enumerator/Manifest
new file mode 100644 (file)
index 0000000..c5bc43e
--- /dev/null
@@ -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 (file)
index 0000000..cac71a5
--- /dev/null
@@ -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 (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-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 (file)
index 0000000..db03da9
--- /dev/null
@@ -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"
+}