1 |
commit: a4344147b6dd67e88d6bf58c6d5406da6473d4a6 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 9 15:26:03 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 9 16:21:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4344147 |
7 |
|
8 |
dev-php/sebastian-diff: New package for an unbundled phpunit |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
dev-php/sebastian-diff/Manifest | 1 + |
13 |
dev-php/sebastian-diff/files/autoload.php | 20 +++++++++++++++++ |
14 |
dev-php/sebastian-diff/metadata.xml | 8 +++++++ |
15 |
dev-php/sebastian-diff/sebastian-diff-1.4.1.ebuild | 26 ++++++++++++++++++++++ |
16 |
4 files changed, 55 insertions(+) |
17 |
|
18 |
diff --git a/dev-php/sebastian-diff/Manifest b/dev-php/sebastian-diff/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..dddaa406943 |
21 |
--- /dev/null |
22 |
+++ b/dev-php/sebastian-diff/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST sebastian-diff-1.4.1.tar.gz 10310 SHA256 ddedfbae9063434dfdabf8b74d0f6ee427412b4a894880ab7d0609c8e2495775 SHA512 b355f1407619ea6f1e9153a7946c339e790530c1c86369005998dc0c1078b96ef1ca369fec32f134b056dd8833770fcdb30443334275c8cb17b69e95ef8325a9 WHIRLPOOL f9a718790f62df5fba7e82d0fbd785150be6a4396209066d9420e41f9e7a6416a5aa3ebe004cb84fceb0b5bdac03c71b8edec1065f26b3d2bb08e8b54a78d4eb |
25 |
|
26 |
diff --git a/dev-php/sebastian-diff/files/autoload.php b/dev-php/sebastian-diff/files/autoload.php |
27 |
new file mode 100644 |
28 |
index 00000000000..40925e7dd6f |
29 |
--- /dev/null |
30 |
+++ b/dev-php/sebastian-diff/files/autoload.php |
31 |
@@ -0,0 +1,20 @@ |
32 |
+<?php |
33 |
+/* Autoloader for dev-php/sebastian-diff */ |
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\diff\chunk' => '/Chunk.php', |
42 |
+ 'sebastianbergmann\diff\diff' => '/Diff.php', |
43 |
+ 'sebastianbergmann\diff\differ' => '/Differ.php', |
44 |
+ 'sebastianbergmann\diff\line' => '/Line.php', |
45 |
+ 'sebastianbergmann\diff\parser' => '/Parser.php', |
46 |
+ 'sebastianbergmann\diff\lcs\longestcommonsubsequence' => '/LCS/LongestCommonSubsequence.php', |
47 |
+ 'sebastianbergmann\diff\lcs\memoryefficientlongestcommonsubsequenceimplementation' => '/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php', |
48 |
+ 'sebastianbergmann\diff\lcs\timeefficientlongestcommonsubsequenceimplementation' => '/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php', |
49 |
+ ), |
50 |
+ __DIR__ |
51 |
+); |
52 |
|
53 |
diff --git a/dev-php/sebastian-diff/metadata.xml b/dev-php/sebastian-diff/metadata.xml |
54 |
new file mode 100644 |
55 |
index 00000000000..b86acf66c75 |
56 |
--- /dev/null |
57 |
+++ b/dev-php/sebastian-diff/metadata.xml |
58 |
@@ -0,0 +1,8 @@ |
59 |
+<?xml version="1.0" encoding="UTF-8"?> |
60 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
61 |
+<pkgmetadata> |
62 |
+ <maintainer type="project"> |
63 |
+ <email>php-bugs@g.o</email> |
64 |
+ <name>PHP</name> |
65 |
+ </maintainer> |
66 |
+</pkgmetadata> |
67 |
|
68 |
diff --git a/dev-php/sebastian-diff/sebastian-diff-1.4.1.ebuild b/dev-php/sebastian-diff/sebastian-diff-1.4.1.ebuild |
69 |
new file mode 100644 |
70 |
index 00000000000..fe8aa111a37 |
71 |
--- /dev/null |
72 |
+++ b/dev-php/sebastian-diff/sebastian-diff-1.4.1.ebuild |
73 |
@@ -0,0 +1,26 @@ |
74 |
+# Copyright 1999-2017 Gentoo Foundation |
75 |
+# Distributed under the terms of the GNU General Public License v2 |
76 |
+ |
77 |
+EAPI=6 |
78 |
+ |
79 |
+MY_PN="diff" |
80 |
+ |
81 |
+DESCRIPTION="PHP Diff implementation" |
82 |
+HOMEPAGE="http://phpunit.de" |
83 |
+SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
84 |
+ |
85 |
+LICENSE="BSD" |
86 |
+SLOT="0" |
87 |
+KEYWORDS="~amd64 ~x86" |
88 |
+IUSE="" |
89 |
+ |
90 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
91 |
+ |
92 |
+RDEPEND="dev-php/fedora-autoloader |
93 |
+ >=dev-lang/php-5.6:*" |
94 |
+ |
95 |
+src_install() { |
96 |
+ insinto /usr/share/php/SebastianBergmann/Diff |
97 |
+ doins -r src/* |
98 |
+ doins "${FILESDIR}/autoload.php" |
99 |
+} |