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

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

diff --git a/dev-php/sebastian-exporter/Manifest b/dev-php/sebastian-exporter/Manifest
new file mode 100644 (file)
index 0000000..9a11abd
--- /dev/null
@@ -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 (file)
index 0000000..7803f5f
--- /dev/null
@@ -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 (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-exporter/sebastian-exporter-2.0.0.ebuild b/dev-php/sebastian-exporter/sebastian-exporter-2.0.0.ebuild
new file mode 100644 (file)
index 0000000..04f72fc
--- /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="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"
+}