summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-11-30 00:38:11 +0100
committerThomas Deutschmann <whissi@gentoo.org>2020-11-30 01:39:15 +0100
commit6083c01b19d77bff46f257539f918287c5f8139b (patch)
tree13d633129d55f2ccd75b6171720a1628b078fa64 /dev-php/theseer-Autoload/files
parentdev-php/zetacomponents-ConsoleTools: new package (diff)
downloadgentoo-6083c01b19d77bff46f257539f918287c5f8139b.tar.gz
gentoo-6083c01b19d77bff46f257539f918287c5f8139b.tar.bz2
gentoo-6083c01b19d77bff46f257539f918287c5f8139b.zip
dev-php/theseer-Autoload: new package
Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-php/theseer-Autoload/files')
-rw-r--r--dev-php/theseer-Autoload/files/autoload.php.tpl26
-rw-r--r--dev-php/theseer-Autoload/files/fedora.php.tpl12
-rw-r--r--dev-php/theseer-Autoload/files/fedora2.php.tpl12
-rw-r--r--dev-php/theseer-Autoload/files/theseer-Autoload-1.26.0-autoload.php.patch12
4 files changed, 62 insertions, 0 deletions
diff --git a/dev-php/theseer-Autoload/files/autoload.php.tpl b/dev-php/theseer-Autoload/files/autoload.php.tpl
new file mode 100644
index 000000000000..cb88eb77c450
--- /dev/null
+++ b/dev-php/theseer-Autoload/files/autoload.php.tpl
@@ -0,0 +1,26 @@
+<?php
+
+require_once 'TheSeer/DirectoryScanner/autoload.php';
+require_once 'ezc/Base/autoload.php';
+require_once 'ezc/ConsoleTools/autoload.php';
+
+// @codingStandardsIgnoreFile
+// @codeCoverageIgnoreStart
+// this is an autogenerated file - do not edit
+spl_autoload_register(
+ function($class) {
+ static $classes = null;
+ if ($classes === null) {
+ $classes = array(
+ ___CLASSLIST___
+ );
+ }
+ $cn = strtolower($class);
+ if (isset($classes[$cn])) {
+ require ___BASEDIR___$classes[$cn];
+ }
+ },
+ true,
+ false
+);
+// @codeCoverageIgnoreEnd
diff --git a/dev-php/theseer-Autoload/files/fedora.php.tpl b/dev-php/theseer-Autoload/files/fedora.php.tpl
new file mode 100644
index 000000000000..d05f27231892
--- /dev/null
+++ b/dev-php/theseer-Autoload/files/fedora.php.tpl
@@ -0,0 +1,12 @@
+<?php
+// @codingStandardsIgnoreFile
+// @codeCoverageIgnoreStart
+require_once '/usr/share/php/Fedora/Autoloader'.'/autoload.php';
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ array(
+ ___CLASSLIST___,
+ ),
+ __DIR__
+);
+// @codeCoverageIgnoreEnd
diff --git a/dev-php/theseer-Autoload/files/fedora2.php.tpl b/dev-php/theseer-Autoload/files/fedora2.php.tpl
new file mode 100644
index 000000000000..b337b9646b34
--- /dev/null
+++ b/dev-php/theseer-Autoload/files/fedora2.php.tpl
@@ -0,0 +1,12 @@
+<?php
+// @codingStandardsIgnoreFile
+// @codeCoverageIgnoreStart
+require_once 'Fedora/Autoloader'.'/autoload.php';
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ array(
+ ___CLASSLIST___,
+ ),
+ __DIR__
+);
+// @codeCoverageIgnoreEnd
diff --git a/dev-php/theseer-Autoload/files/theseer-Autoload-1.26.0-autoload.php.patch b/dev-php/theseer-Autoload/files/theseer-Autoload-1.26.0-autoload.php.patch
new file mode 100644
index 000000000000..d85409d47126
--- /dev/null
+++ b/dev-php/theseer-Autoload/files/theseer-Autoload-1.26.0-autoload.php.patch
@@ -0,0 +1,12 @@
+--- a/composer/bin/phpab
++++ b/composer/bin/phpab
+@@ -56,7 +56,7 @@ foreach ($files as $file) {
+ }
+ }
+
+-require __DIR__ . '/../../src/autoload.php';
++require 'TheSeer/Autoload/autoload.php';
+
+ $factory = new \TheSeer\Autoload\Factory();
+ $factory->getCLI()->run();
+