commit: a4344147b6dd67e88d6bf58c6d5406da6473d4a6
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 9 15:26:03 2017 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Thu Mar 9 16:21:43 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4344147
dev-php/sebastian-diff: New package for an unbundled phpunit
Package-Manager: Portage-2.3.4, Repoman-2.3.2
dev-php/sebastian-diff/Manifest | 1 +
dev-php/sebastian-diff/files/autoload.php | 20 +++++++++++++++++
dev-php/sebastian-diff/metadata.xml | 8 +++++++
dev-php/sebastian-diff/sebastian-diff-1.4.1.ebuild | 26 ++++++++++++++++++++++
4 files changed, 55 insertions(+)
diff --git a/dev-php/sebastian-diff/Manifest b/dev-php/sebastian-diff/Manifest
new file mode 100644
index 00000000000..dddaa406943
--- /dev/null
+++ b/dev-php/sebastian-diff/Manifest
@@ -0,0 +1 @@
+DIST sebastian-diff-1.4.1.tar.gz 10310 SHA256
ddedfbae9063434dfdabf8b74d0f6ee427412b4a894880ab7d0609c8e2495775 SHA512
b355f1407619ea6f1e9153a7946c339e790530c1c86369005998dc0c1078b96ef1ca369fec32f134b056dd8833770fcdb30443334275c8cb17b69e95ef8325a9
WHIRLPOOL
f9a718790f62df5fba7e82d0fbd785150be6a4396209066d9420e41f9e7a6416a5aa3ebe004cb84fceb0b5bdac03c71b8edec1065f26b3d2bb08e8b54a78d4eb
diff --git a/dev-php/sebastian-diff/files/autoload.php
b/dev-php/sebastian-diff/files/autoload.php
new file mode 100644
index 00000000000..40925e7dd6f
--- /dev/null
+++ b/dev-php/sebastian-diff/files/autoload.php
@@ -0,0 +1,20 @@
+<?php
+/* Autoloader for dev-php/sebastian-diff */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ array(
+ 'sebastianbergmann\diff\chunk' => '/Chunk.php',
+ 'sebastianbergmann\diff\diff' => '/Diff.php',
+ 'sebastianbergmann\diff\differ' => '/Differ.php',
+ 'sebastianbergmann\diff\line' => '/Line.php',
+ 'sebastianbergmann\diff\parser' => '/Parser.php',
+ 'sebastianbergmann\diff\lcs\longestcommonsubsequence' =>
'/LCS/LongestCommonSubsequence.php',
+
'sebastianbergmann\diff\lcs\memoryefficientlongestcommonsubsequenceimplementation'
=> '/LCS/MemoryEfficientLongestCommonSubsequenceImplementation.php',
+
'sebastianbergmann\diff\lcs\timeefficientlongestcommonsubsequenceimplementation'
=> '/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php',
+ ),
+ __DIR__
+);
diff --git a/dev-php/sebastian-diff/metadata.xml
b/dev-php/sebastian-diff/metadata.xml
new file mode 100644
index 00000000000..b86acf66c75
--- /dev/null
+++ b/dev-php/sebastian-diff/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>[email protected]</email>
+ <name>PHP</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-php/sebastian-diff/sebastian-diff-1.4.1.ebuild
b/dev-php/sebastian-diff/sebastian-diff-1.4.1.ebuild
new file mode 100644
index 00000000000..fe8aa111a37
--- /dev/null
+++ b/dev-php/sebastian-diff/sebastian-diff-1.4.1.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="diff"
+
+DESCRIPTION="PHP Diff implementation"
+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/Diff
+ doins -r src/*
+ doins "${FILESDIR}/autoload.php"
+}