summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2017-03-09 10:24:15 -0500
committerBrian Evans <grknight@gentoo.org>2017-03-09 11:21:38 -0500
commit5054d7f897bd63777534e22424e6ab96e4d734f3 (patch)
tree291038d3f8ac33ee001729536d6db3ec4bd437e3 /dev-php/sebastian-environment
parentdev-php/sebastian-exporter: New package for an unbundled phpunit (diff)
downloadgentoo-5054d7f897bd63777534e22424e6ab96e4d734f3.tar.gz
gentoo-5054d7f897bd63777534e22424e6ab96e4d734f3.tar.bz2
gentoo-5054d7f897bd63777534e22424e6ab96e4d734f3.zip
dev-php/sebastian-environment: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'dev-php/sebastian-environment')
-rw-r--r--dev-php/sebastian-environment/Manifest1
-rw-r--r--dev-php/sebastian-environment/files/autoload.php14
-rw-r--r--dev-php/sebastian-environment/metadata.xml8
-rw-r--r--dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild26
4 files changed, 49 insertions, 0 deletions
diff --git a/dev-php/sebastian-environment/Manifest b/dev-php/sebastian-environment/Manifest
new file mode 100644
index 000000000000..37b657d42705
--- /dev/null
+++ b/dev-php/sebastian-environment/Manifest
@@ -0,0 +1 @@
+DIST sebastian-environment-2.0.0.tar.gz 5607 SHA256 0462a65d901c97056b1ebaadcfebc4b2756c17b7e3fb8504030e49f6cb9a6f00 SHA512 cf91f0a5f057007f318c5d6b11f8a1345b8df35d513c6291c5b725f0874ed301a64d1097c3fac1e6b32533caa96b3f78ac415d99b9b6ef63dc4a303b90d49c88 WHIRLPOOL e7571a56fe7a4e7e5f16027e620a668a3c7e545b8b2374516fe7eb66d0b4bbc829e46ec650ecf85230073e7910e83a382ee102c27fe8f458d0f6e33373f3a155
diff --git a/dev-php/sebastian-environment/files/autoload.php b/dev-php/sebastian-environment/files/autoload.php
new file mode 100644
index 000000000000..3abd16ee357b
--- /dev/null
+++ b/dev-php/sebastian-environment/files/autoload.php
@@ -0,0 +1,14 @@
+<?php
+/* Autoloader for dev-php/sebastian-environment */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ array(
+ 'sebastianbergmann\environment\console' => '/Console.php',
+ 'sebastianbergmann\environment\runtime' => '/Runtime.php',
+ ),
+ __DIR__
+);
diff --git a/dev-php/sebastian-environment/metadata.xml b/dev-php/sebastian-environment/metadata.xml
new file mode 100644
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/sebastian-environment/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-environment/sebastian-environment-2.0.0.ebuild b/dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild
new file mode 100644
index 000000000000..4b0b8b214a7f
--- /dev/null
+++ b/dev-php/sebastian-environment/sebastian-environment-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="Helps writing PHP code that has runtime-specific execution paths"
+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/Environment
+ doins -r src/*
+ doins "${FILESDIR}/autoload.php"
+}