summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-10-22 14:45:28 +0200
committerRemi Collet <remi@remirepo.net>2019-10-22 14:45:28 +0200
commit064b8e28291c081076126e70eae57efad424a8a7 (patch)
tree2fc4c72ae78c30d74920b4940eba4e60b5ea570a /php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch
parenta03e33d8cb4b91960494440d4f8ee99d16473dc3 (diff)
v5.2.1 (no change)
Diffstat (limited to 'php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch')
-rw-r--r--php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch73
1 files changed, 0 insertions, 73 deletions
diff --git a/php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch b/php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch
deleted file mode 100644
index d8a8fb7..0000000
--- a/php-bartlett-PHP-CompatInfo-5.1.0-rpm.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-diff -up ./bin/phpcompatinfo.json.dist.rpm ./bin/phpcompatinfo.json.dist
---- ./bin/phpcompatinfo.json.dist.rpm 2018-11-27 22:03:39.000000000 +0100
-+++ ./bin/phpcompatinfo.json.dist 2018-11-28 08:53:47.258278539 +0100
-@@ -6,6 +6,19 @@
- }
- ],
- "plugins": [
-+ {
-+ "name": "Cache",
-+ "class": "Bartlett\\Reflect\\Plugin\\CachePlugin",
-+ "options": {
-+ "adapter": "DoctrineCacheAdapter",
-+ "backend": {
-+ "class": "Doctrine\\Common\\Cache\\FilesystemCache",
-+ "args": [
-+ "%{HOME}/.cache/php-reflect"
-+ ]
-+ }
-+ }
-+ }
- ],
- "analysers" : [
- ],
-diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo
---- ./bin/phpcompatinfo.rpm 2018-11-28 08:53:47.258278539 +0100
-+++ ./bin/phpcompatinfo 2018-11-28 08:55:38.807878501 +0100
-@@ -1,40 +1,22 @@
- #!/usr/bin/env php
- <?php
- $appName = 'phpCompatInfo';
-+$vendorDir = '/usr/share/php';
-
--if (\Phar::running()) {
-- $vendorDir = 'phar://' . strtolower($appName) . '.phar/vendor';
--} else {
-- $baseDir = dirname(__DIR__);
-- $vendorDir = $baseDir . '/vendor';
--
-- if (!file_exists($vendorDir . '/autoload.php')) {
-- $vendorDir = dirname(dirname($baseDir));
-- }
--
-- if (!getenv("BARTLETTRC")) {
-- putenv("BARTLETTRC=" . strtolower($appName) . '.json');
-- }
-+require_once $vendorDir . '/Bartlett/CompatInfo/autoload.php';
-+
-+if (!getenv("BARTLETTRC")) {
-+ putenv("BARTLETTRC=" . strtolower($appName) . '.json');
- }
--$loader = require_once $vendorDir . '/autoload.php';
--$loader->setUseIncludePath(true);
-
- if (PHP_SAPI !== 'cli') {
- return;
- }
-
--if (\Phar::running()) {
-- try {
-- Bartlett\CompatInfoDb\Environment::checkRequirements();
-- } catch (\RuntimeException $e) {
-- die ($e->getMessage());
-- }
--}
--
- use Bartlett\Reflect\Environment;
- use Bartlett\CompatInfo\Console\Application;
-
- Environment::setScanDir();
-
--$application = new Application($appName, '5.1');
-+$application = new Application($appName, '@package_version@');
- $application->run();