summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-13 09:31:40 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-13 09:31:40 +0200
commit4b5b5874f72907c5567dc9a0c2b9f39585ebb81a (patch)
tree9de1bd420a7c4141ce32914d36a8ff165626d209 /php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch
parent76b944f3921db2b9b11d471042e060bb46e2e6e7 (diff)
php-bartlett-PHP-CompatInfo: 4.4.0
Diffstat (limited to 'php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch')
-rw-r--r--php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch107
1 files changed, 0 insertions, 107 deletions
diff --git a/php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch b/php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch
deleted file mode 100644
index b1bbb9e..0000000
--- a/php-bartlett-PHP-CompatInfo-4.3.0-rpm.patch
+++ /dev/null
@@ -1,107 +0,0 @@
-diff -up ./bin/phpcompatinfo.json.dist.rpm ./bin/phpcompatinfo.json.dist
---- ./bin/phpcompatinfo.json.dist.rpm 2015-06-16 10:56:41.000000000 +0200
-+++ ./bin/phpcompatinfo.json.dist 2015-06-26 11:15:13.028747350 +0200
-@@ -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 2015-06-16 10:56:41.000000000 +0200
-+++ ./bin/phpcompatinfo 2015-06-26 11:15:13.033747371 +0200
-@@ -1,23 +1,13 @@
- #!/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';
-+putenv('BARTLETT_COMPATINFO_DB=/usr/share/php-bartlett-PHP-CompatInfo/compatinfo.sqlite');
-+if (!getenv("BARTLETTRC")) {
-+ putenv("BARTLETTRC=" . strtolower($appName) . '.json');
- }
--$loader = require_once $vendorDir . '/autoload.php';
--$loader->setUseIncludePath(true);
-
- if (PHP_SAPI !== 'cli') {
- return;
-@@ -28,5 +18,5 @@ use Bartlett\CompatInfo\Console\Applicat
-
- Environment::setScanDir();
-
--$application = new Application($appName, '4.3');
-+$application = new Application($appName, '4.3.0');
- $application->run();
-diff -up ./data/handleDB.php.rpm ./data/handleDB.php
---- ./data/handleDB.php.rpm 2015-06-16 10:56:41.000000000 +0200
-+++ ./data/handleDB.php 2015-06-26 11:15:13.028747350 +0200
-@@ -11,7 +11,8 @@
- * @since Release 4.0.0alpha3
- */
-
--require_once dirname(__DIR__) . '/vendor/autoload.php';
-+require_once __DIR__ . '/../src/Bartlett/CompatInfo/autoload.php';
-+
- require_once __DIR__ . '/ReferenceCollection.php';
-
- use Bartlett\CompatInfo\Reference\ExtensionFactory;
-diff -up ./src/Bartlett/CompatInfo/Environment.php.rpm ./src/Bartlett/CompatInfo/Environment.php
---- ./src/Bartlett/CompatInfo/Environment.php.rpm 2015-06-26 11:20:20.075019885 +0200
-+++ ./src/Bartlett/CompatInfo/Environment.php 2015-06-26 11:23:06.329708917 +0200
-@@ -34,6 +34,11 @@ class Environment
- */
- public static function initRefDb()
- {
-+ if (($database = getenv('BARTLETT_COMPATINFO_DB')) && file_exists($database)) {
-+ return new \PDO('sqlite:' . $database);
-+ } else if (file_exists($database = '/usr/share/php-bartlett-PHP-CompatInfo/compatinfo.sqlite')) {
-+ return new \PDO('sqlite:' . $database);
-+ }
- $database = 'compatinfo.sqlite';
- $tempDir = sys_get_temp_dir() . '/bartlett';
-
-diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
---- ./tests/bootstrap.php.rpm 2015-06-16 10:56:41.000000000 +0200
-+++ ./tests/bootstrap.php 2015-06-26 11:17:16.429258776 +0200
-@@ -1,8 +1,11 @@
- <?php
-
- $baseDir = dirname(__DIR__);
--$vendorDir = $baseDir . '/vendor';
-+$vendorDir = '/usr/share/php';
-
--require_once $vendorDir . '/autoload.php';
-+require_once 'Bartlett/CompatInfo/autoload.php';
-+$fedoraClassLoader->addPrefix('Bartlett\\Tests\\CompatInfo', $baseDir . '/tests');
-
-+putenv('BARTLETT_COMPATINFO_DB='.dirname(__DIR__).'/data/compatinfo.sqlite');
-+# Class not catched by autoloader
- require __DIR__ . '/Reference/GenericTest.php';