1 |
commit: 06c5bda11ec423d9c52a4792a89ffaaffb2952c0 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 9 15:14:06 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 9 16:21:01 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06c5bda1 |
7 |
|
8 |
dev-php/webmozart-assert: New package for an unbundled phpunit |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
dev-php/webmozart-assert/Manifest | 1 + |
13 |
dev-php/webmozart-assert/files/autoload.php | 8 +++++++ |
14 |
dev-php/webmozart-assert/metadata.xml | 8 +++++++ |
15 |
.../webmozart-assert/webmozart-assert-1.2.0.ebuild | 26 ++++++++++++++++++++++ |
16 |
4 files changed, 43 insertions(+) |
17 |
|
18 |
diff --git a/dev-php/webmozart-assert/Manifest b/dev-php/webmozart-assert/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..c3109a7bc6e |
21 |
--- /dev/null |
22 |
+++ b/dev-php/webmozart-assert/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST webmozart-assert-1.2.0.tar.gz 11866 SHA256 95bd88f5db9e083093e72afcad69bfafca080c55c60b534d55ea883d2e03517d SHA512 36bae648cfe5bbd258d738574a820ea3de2e95b59700d556dd5eadbb1657bc09a7e73000e3436d020e060ecd2a99944199795f315a278acbeeea90570b0a4a22 WHIRLPOOL 0e8e220c1bf579206df3a2f75bdbc4ad3c5938e816127db013e464d0a0b596e7357014c5516c9cc64fa7a201ac4a320087724395cf326590b227173cda808ed9 |
25 |
|
26 |
diff --git a/dev-php/webmozart-assert/files/autoload.php b/dev-php/webmozart-assert/files/autoload.php |
27 |
new file mode 100644 |
28 |
index 00000000000..45ece0641b6 |
29 |
--- /dev/null |
30 |
+++ b/dev-php/webmozart-assert/files/autoload.php |
31 |
@@ -0,0 +1,8 @@ |
32 |
+<?php |
33 |
+/* Autoloader for dev-php/webmozart-assert */ |
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::addPsr4('Webmozart\\Assert\\', __DIR__); |
40 |
|
41 |
diff --git a/dev-php/webmozart-assert/metadata.xml b/dev-php/webmozart-assert/metadata.xml |
42 |
new file mode 100644 |
43 |
index 00000000000..b86acf66c75 |
44 |
--- /dev/null |
45 |
+++ b/dev-php/webmozart-assert/metadata.xml |
46 |
@@ -0,0 +1,8 @@ |
47 |
+<?xml version="1.0" encoding="UTF-8"?> |
48 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
49 |
+<pkgmetadata> |
50 |
+ <maintainer type="project"> |
51 |
+ <email>php-bugs@g.o</email> |
52 |
+ <name>PHP</name> |
53 |
+ </maintainer> |
54 |
+</pkgmetadata> |
55 |
|
56 |
diff --git a/dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild b/dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild |
57 |
new file mode 100644 |
58 |
index 00000000000..ae442678e21 |
59 |
--- /dev/null |
60 |
+++ b/dev-php/webmozart-assert/webmozart-assert-1.2.0.ebuild |
61 |
@@ -0,0 +1,26 @@ |
62 |
+# Copyright 1999-2017 Gentoo Foundation |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=6 |
66 |
+ |
67 |
+MY_PN="${PN/webmozart-//}" |
68 |
+ |
69 |
+DESCRIPTION="Assertions to validate method input/output with nice error messages" |
70 |
+HOMEPAGE="https://github.com/webmozart/assert" |
71 |
+SRC_URI="https://github.com/webmozart/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="MIT" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~x86" |
76 |
+IUSE="" |
77 |
+ |
78 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
79 |
+ |
80 |
+RDEPEND="dev-php/fedora-autoloader |
81 |
+ >=dev-lang/php-5.6:*" |
82 |
+ |
83 |
+src_install() { |
84 |
+ insinto /usr/share/php/Webmozart/Assert |
85 |
+ doins -r src/* |
86 |
+ doins "${FILESDIR}/autoload.php" |
87 |
+} |