summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-php/sebastian-comparator/Manifest1
-rw-r--r--dev-php/sebastian-comparator/files/autoload.php32
-rw-r--r--dev-php/sebastian-comparator/metadata.xml8
-rw-r--r--dev-php/sebastian-comparator/sebastian-comparator-1.2.4.ebuild28
4 files changed, 69 insertions, 0 deletions
diff --git a/dev-php/sebastian-comparator/Manifest b/dev-php/sebastian-comparator/Manifest
new file mode 100644
index 000000000000..f2fc1486e751
--- /dev/null
+++ b/dev-php/sebastian-comparator/Manifest
@@ -0,0 +1 @@
+DIST sebastian-comparator-1.2.4.tar.gz 13402 SHA256 d85e80e59d25151ab831696a9c661ce06032b6ed6dc2b1a999df2efe6a920273 SHA512 b7ca4bbdd91c9d59f83c4ccbd63d7755205f6686de7d7e41808faba404df8f58173a0699a0e4d1fbc09914c2fcf841ddc4df41a86aa5cd0fdffa3be4d438a8aa WHIRLPOOL ca9ebce6f8a64b832a3e13e7680ee0172f82decaaf2aaedcd8b718c32ee19a336a23803092b63d4a5ef4c8e3fc73e34a22cf43090a6183c7795450338b4a8870
diff --git a/dev-php/sebastian-comparator/files/autoload.php b/dev-php/sebastian-comparator/files/autoload.php
new file mode 100644
index 000000000000..696ae0327d79
--- /dev/null
+++ b/dev-php/sebastian-comparator/files/autoload.php
@@ -0,0 +1,32 @@
+<?php
+/* Autoloader for dev-php/sebastian-comparator */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ array(
+ 'sebastianbergmann\comparator\arraycomparator' => '/ArrayComparator.php',
+ 'sebastianbergmann\comparator\comparator' => '/Comparator.php',
+ 'sebastianbergmann\comparator\comparisonfailure' => '/ComparisonFailure.php',
+ 'sebastianbergmann\comparator\domnodecomparator' => '/DOMNodeComparator.php',
+ 'sebastianbergmann\comparator\datetimecomparator' => '/DateTimeComparator.php',
+ 'sebastianbergmann\comparator\doublecomparator' => '/DoubleComparator.php',
+ 'sebastianbergmann\comparator\exceptioncomparator' => '/ExceptionComparator.php',
+ 'sebastianbergmann\comparator\factory' => '/Factory.php',
+ 'sebastianbergmann\comparator\mockobjectcomparator' => '/MockObjectComparator.php',
+ 'sebastianbergmann\comparator\numericcomparator' => '/NumericComparator.php',
+ 'sebastianbergmann\comparator\objectcomparator' => '/ObjectComparator.php',
+ 'sebastianbergmann\comparator\resourcecomparator' => '/ResourceComparator.php',
+ 'sebastianbergmann\comparator\scalarcomparator' => '/ScalarComparator.php',
+ 'sebastianbergmann\comparator\splobjectstoragecomparator' => '/SplObjectStorageComparator.php',
+ 'sebastianbergmann\comparator\typecomparator' => '/TypeComparator.php',
+ ),
+ __DIR__
+);
+
+\Fedora\Autoloader\Dependencies::required(array(
+ '/usr/share/php/SebastianBergmann/Diff/autoload.php',
+ '/usr/share/php/SebastianBergmann/Exporter/autoload.php',
+));
diff --git a/dev-php/sebastian-comparator/metadata.xml b/dev-php/sebastian-comparator/metadata.xml
new file mode 100644
index 000000000000..b86acf66c756
--- /dev/null
+++ b/dev-php/sebastian-comparator/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>php-bugs@gentoo.org</email>
+ <name>PHP</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-php/sebastian-comparator/sebastian-comparator-1.2.4.ebuild b/dev-php/sebastian-comparator/sebastian-comparator-1.2.4.ebuild
new file mode 100644
index 000000000000..152273611434
--- /dev/null
+++ b/dev-php/sebastian-comparator/sebastian-comparator-1.2.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/sebastian-//}"
+
+DESCRIPTION="Compare PHP values for equality"
+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-php/sebastian-diff-2.0
+ <dev-php/sebastian-exporter-3.0
+ >=dev-lang/php-5.6:*
+"
+src_install() {
+ insinto /usr/share/php/SebastianBergmann/Comparator
+ doins -r src/*
+ doins "${FILESDIR}/autoload.php"
+}