--- /dev/null
+<?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__
+);
--- /dev/null
+<?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>
--- /dev/null
+# 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"
+}