summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2017-03-09 10:22:51 -0500
committerBrian Evans <grknight@gentoo.org>2017-03-09 11:21:32 -0500
commit31967bac591bf168aae2e4a94c7ed8d240dcd470 (patch)
tree62921938d265d52abf5d23603401e646b4546843 /dev-php
parentdev-php/sebastian-global-state: New package for an unbundled phpunit (diff)
downloadgentoo-31967bac591bf168aae2e4a94c7ed8d240dcd470.tar.gz
gentoo-31967bac591bf168aae2e4a94c7ed8d240dcd470.tar.bz2
gentoo-31967bac591bf168aae2e4a94c7ed8d240dcd470.zip
dev-php/sebastian-exporter: 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-exporter/Manifest1
-rw-r--r--dev-php/sebastian-exporter/files/autoload.php17
-rw-r--r--dev-php/sebastian-exporter/metadata.xml8
-rw-r--r--dev-php/sebastian-exporter/sebastian-exporter-2.0.0.ebuild27
4 files changed, 53 insertions, 0 deletions
diff --git a/dev-php/sebastian-exporter/Manifest b/dev-php/sebastian-exporter/Manifest
new file mode 100644
index 000000000000..9a11abdf9d51
--- /dev/null
+++ b/dev-php/sebastian-exporter/Manifest
@@ -0,0 +1 @@
+DIST sebastian-exporter-2.0.0.tar.gz 7473 SHA256 41046fb978f45ec371c0d99ebe9ea37a6b3c7cc4ed611336ecdb12bf909ec9b9 SHA512 0d418973a6e272e327c16f2393bde09424f8dea6991a804259ac57261efddeb99e33a904bbf2ede99b07def897c0baa12ad9fc04c8c33af684f1fd19d976948a WHIRLPOOL f68ba1bae9434cccad61a714badb8cd423d3db55731b60ac083a8f398262c368eef44dab8012fa77de1a4aefd9f7b4c45511565a56e1375e9691cccd679ca51d
diff --git a/dev-php/sebastian-exporter/files/autoload.php b/dev-php/sebastian-exporter/files/autoload.php
new file mode 100644
index 000000000000..7803f5f61891
--- /dev/null
+++ b/dev-php/sebastian-exporter/files/autoload.php
@@ -0,0 +1,17 @@
+<?php
+/* Autoloader for dev-php/sebastian-exporter */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ array(
+ 'sebastianbergmann\exporter\exporter' => '/Exporter.php',
+ ),
+ __DIR__
+);
+
+\Fedora\Autoloader\Dependencies::required(array(
+ '/usr/share/php/SebastianBergmann/RecursionContext/autoload.php',
+));
diff --git a/dev-php/sebastian-exporter/metadata.xml b/dev-php/sebastian-exporter/metadata.xml
new file mode 100644
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/sebastian-exporter/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-exporter/sebastian-exporter-2.0.0.ebuild b/dev-php/sebastian-exporter/sebastian-exporter-2.0.0.ebuild
new file mode 100644
index 000000000000..04f72fc63e7b
--- /dev/null
+++ b/dev-php/sebastian-exporter/sebastian-exporter-2.0.0.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="Export PHP variables for visualization"
+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-2*
+ >=dev-lang/php-5.6:*"
+
+src_install() {
+ insinto /usr/share/php/SebastianBergmann/Exporter
+ doins -r src/*
+ doins "${FILESDIR}/autoload.php"
+}