dev-php/File_Iterator: Version bump and use composer autoloading
authorBrian Evans <grknight@gentoo.org>
Thu, 9 Mar 2017 15:48:44 +0000 (10:48 -0500)
committerBrian Evans <grknight@gentoo.org>
Thu, 9 Mar 2017 16:22:36 +0000 (11:22 -0500)
Package-Manager: Portage-2.3.4, Repoman-2.3.2

dev-php/File_Iterator/File_Iterator-1.4.2.ebuild [new file with mode: 0644]
dev-php/File_Iterator/Manifest
dev-php/File_Iterator/files/autoload.php [new file with mode: 0644]

diff --git a/dev-php/File_Iterator/File_Iterator-1.4.2.ebuild b/dev-php/File_Iterator/File_Iterator-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..a5a1020
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="php-file-iterator"
+
+DESCRIPTION="FilterIterator implementation that filters files based on criteria"
+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/File/Iterator
+       doins -r src/*
+       doins "${FILESDIR}/autoload.php"
+}
+
+pkg_postinst() {
+       ewarn "This library now loads via /usr/share/php/File/Iterator/autoload.php"
+       ewarn "Please update any scripts to require the autoloader"
+}
index 93c5099fd90a43b643feccf50e07a72292084c13..062d82a1fcca5a6408065242bc757be275f56746 100644 (file)
@@ -1,2 +1,3 @@
 DIST File_Iterator-1.3.1.tgz 5157 SHA256 9a35bf5247c19988bb3033e10bbc2db0e25b174d231082c48f9639b3acb6aca1 SHA512 c5204fc5e10a713d474d5d42e728c0c52b89b214bd8d98c8918bef023511be8c86267c76656667ba49ca9d6252fb9156dc08c712556f49f8e1989ec11016fe7b WHIRLPOOL 4d0187fa41a5a82f5dbb0432c53c5fd2fc3ff73bf4171a1511e5b025e9d71981991bcb892c08ca61a0f692e302a5d5652d831da9d3ce3510678f57a43b08249d
 DIST File_Iterator-1.3.4.tgz 5199 SHA256 6f4ed93fc140aac0abb9d23313fa25c98789855a7d08088256c989a037730f7f SHA512 7117e0e56a9bc533d9f93556366a8026d1e5a9a3894c05551adef6c1e6cd556c1ebf6b96bd98279cb92077b3d8f8d7b7e42f446b39895850e573d0ec511392be WHIRLPOOL 6f7e4a589642ea3b6b0abbbb17b330f504153486b49840472a98cb6bb0fdb53447bdd994d3c112666f8c94ea8737e42bcf079c0785f1564f288319485dbeb1a7
+DIST File_Iterator-1.4.2.tar.gz 4141 SHA256 138c7ba11c72e7aff3cded47b6011fc152405e7b907d28578b95d5b4b7e062a2 SHA512 295943681853c858e3e1c336c030338c61a74169bd2a619da6fca8c43611e587c6f626fa92799d614bcb0a1f86bbb39895b20f2a389107cedb9660a7e792a243 WHIRLPOOL f3ba627a5366badb60df87dc6f0c15990badb5ff9e2bf1b9889c214c6ed36308ec64f076d2442ce3669720a650e1fd3b3337befc0ecc507e4596fb30a2407f88
diff --git a/dev-php/File_Iterator/files/autoload.php b/dev-php/File_Iterator/files/autoload.php
new file mode 100644 (file)
index 0000000..71372f0
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+/* Autoloader for dev-php/File_Iterator */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+    require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+    array(
+               'file_iterator' => '/Iterator.php',
+               'file_iterator_facade' => '/Facade.php',
+               'file_iterator_factory' => '/Factory.php',
+    ),
+    __DIR__
+);