1 |
commit: 5054d7f897bd63777534e22424e6ab96e4d734f3 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 9 15:24:15 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 9 16:21:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5054d7f8 |
7 |
|
8 |
dev-php/sebastian-environment: New package for an unbundled phpunit |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
dev-php/sebastian-environment/Manifest | 1 + |
13 |
dev-php/sebastian-environment/files/autoload.php | 14 ++++++++++++ |
14 |
dev-php/sebastian-environment/metadata.xml | 8 +++++++ |
15 |
.../sebastian-environment-2.0.0.ebuild | 26 ++++++++++++++++++++++ |
16 |
4 files changed, 49 insertions(+) |
17 |
|
18 |
diff --git a/dev-php/sebastian-environment/Manifest b/dev-php/sebastian-environment/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..37b657d4270 |
21 |
--- /dev/null |
22 |
+++ b/dev-php/sebastian-environment/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST sebastian-environment-2.0.0.tar.gz 5607 SHA256 0462a65d901c97056b1ebaadcfebc4b2756c17b7e3fb8504030e49f6cb9a6f00 SHA512 cf91f0a5f057007f318c5d6b11f8a1345b8df35d513c6291c5b725f0874ed301a64d1097c3fac1e6b32533caa96b3f78ac415d99b9b6ef63dc4a303b90d49c88 WHIRLPOOL e7571a56fe7a4e7e5f16027e620a668a3c7e545b8b2374516fe7eb66d0b4bbc829e46ec650ecf85230073e7910e83a382ee102c27fe8f458d0f6e33373f3a155 |
25 |
|
26 |
diff --git a/dev-php/sebastian-environment/files/autoload.php b/dev-php/sebastian-environment/files/autoload.php |
27 |
new file mode 100644 |
28 |
index 00000000000..3abd16ee357 |
29 |
--- /dev/null |
30 |
+++ b/dev-php/sebastian-environment/files/autoload.php |
31 |
@@ -0,0 +1,14 @@ |
32 |
+<?php |
33 |
+/* Autoloader for dev-php/sebastian-environment */ |
34 |
+ |
35 |
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { |
36 |
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; |
37 |
+} |
38 |
+ |
39 |
+\Fedora\Autoloader\Autoload::addClassMap( |
40 |
+ array( |
41 |
+ 'sebastianbergmann\environment\console' => '/Console.php', |
42 |
+ 'sebastianbergmann\environment\runtime' => '/Runtime.php', |
43 |
+ ), |
44 |
+ __DIR__ |
45 |
+); |
46 |
|
47 |
diff --git a/dev-php/sebastian-environment/metadata.xml b/dev-php/sebastian-environment/metadata.xml |
48 |
new file mode 100644 |
49 |
index 00000000000..b86acf66c75 |
50 |
--- /dev/null |
51 |
+++ b/dev-php/sebastian-environment/metadata.xml |
52 |
@@ -0,0 +1,8 @@ |
53 |
+<?xml version="1.0" encoding="UTF-8"?> |
54 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
55 |
+<pkgmetadata> |
56 |
+ <maintainer type="project"> |
57 |
+ <email>php-bugs@g.o</email> |
58 |
+ <name>PHP</name> |
59 |
+ </maintainer> |
60 |
+</pkgmetadata> |
61 |
|
62 |
diff --git a/dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild b/dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild |
63 |
new file mode 100644 |
64 |
index 00000000000..4b0b8b214a7 |
65 |
--- /dev/null |
66 |
+++ b/dev-php/sebastian-environment/sebastian-environment-2.0.0.ebuild |
67 |
@@ -0,0 +1,26 @@ |
68 |
+# Copyright 1999-2017 Gentoo Foundation |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+ |
71 |
+EAPI=6 |
72 |
+ |
73 |
+MY_PN="${PN/sebastian-//}" |
74 |
+ |
75 |
+DESCRIPTION="Helps writing PHP code that has runtime-specific execution paths" |
76 |
+HOMEPAGE="http://phpunit.de" |
77 |
+SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
78 |
+ |
79 |
+LICENSE="BSD" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="~amd64 ~x86" |
82 |
+IUSE="" |
83 |
+ |
84 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
85 |
+ |
86 |
+RDEPEND="dev-php/fedora-autoloader |
87 |
+ >=dev-lang/php-5.6:*" |
88 |
+ |
89 |
+src_install() { |
90 |
+ insinto /usr/share/php/SebastianBergmann/Environment |
91 |
+ doins -r src/* |
92 |
+ doins "${FILESDIR}/autoload.php" |
93 |
+} |