summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-01-17 07:58:45 +0100
committerRemi Collet <fedora@famillecollet.com>2015-01-17 07:58:45 +0100
commit7ac3e53ebc348d12aac4ac280759d96cabcbd657 (patch)
treedf21d546dd6f62563cf6a0b37e6446a2fbdf725f
parent0fc1daf31ff1c92aaf6fe1dc7cd0e8c39db935ad (diff)
php-bartlett-PHP-Reflect: 3.0.0alpha3 (WIP)
-rw-r--r--php-bartlett-PHP-Reflect-3.0.0-rpm.patch51
-rw-r--r--php-bartlett-PHP-Reflect-dev.spec9
2 files changed, 23 insertions, 37 deletions
diff --git a/php-bartlett-PHP-Reflect-3.0.0-rpm.patch b/php-bartlett-PHP-Reflect-3.0.0-rpm.patch
index c110e33..06b3b79 100644
--- a/php-bartlett-PHP-Reflect-3.0.0-rpm.patch
+++ b/php-bartlett-PHP-Reflect-3.0.0-rpm.patch
@@ -1,29 +1,7 @@
diff -up ./bin/phpreflect.json.dist.rpm ./bin/phpreflect.json.dist
---- ./bin/phpreflect.json.dist.rpm 2015-01-05 17:32:31.000000000 +0100
-+++ ./bin/phpreflect.json.dist 2015-01-06 17:26:55.756023189 +0100
-@@ -9,6 +9,19 @@
- {
- "name": "Analyser",
- "class": "Bartlett\\Reflect\\Plugin\\Analyser\\AnalyserPlugin"
-+ },
-+ {
-+ "name": "Cache",
-+ "class": "Bartlett\\Reflect\\Plugin\\Cache\\CachePlugin",
-+ "options": {
-+ "adapter": "DoctrineCacheAdapter",
-+ "backend": {
-+ "class": "Doctrine\\Common\\Cache\\FilesystemCache",
-+ "args": [
-+ "%{HOME}/.cache/phpreflect"
-+ ]
-+ }
-+ }
- }
- ],
- "analysers" : [
diff -up ./bin/phpreflect.rpm ./bin/phpreflect
---- ./bin/phpreflect.rpm 2015-01-06 17:26:55.757023193 +0100
-+++ ./bin/phpreflect 2015-01-06 17:39:21.867932297 +0100
+--- ./bin/phpreflect.rpm 2015-01-15 17:38:39.000000000 +0100
++++ ./bin/phpreflect 2015-01-16 11:26:45.900540580 +0100
@@ -1,23 +1,35 @@
-#!/usr/bin/env php
+#!/usr/bin/php
@@ -42,8 +20,7 @@ diff -up ./bin/phpreflect.rpm ./bin/phpreflect
+ $vendorDir = '/usr/share/php';
if (!getenv("BARTLETTRC")) {
-- putenv("BARTLETTRC=" . strtolower($appName) . '.json');
-+ putenv("BARTLETTRC=" . strtolower($appName) . '.json');
+ putenv("BARTLETTRC=" . strtolower($appName) . '.json');
}
}
-$loader = require_once $vendorDir . '/autoload.php';
@@ -71,9 +48,9 @@ diff -up ./bin/phpreflect.rpm ./bin/phpreflect
if (PHP_SAPI !== 'cli') {
return;
diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
---- ./tests/bootstrap.php.rpm 2015-01-06 17:26:55.757023193 +0100
-+++ ./tests/bootstrap.php 2015-01-06 17:44:46.957205474 +0100
-@@ -1,12 +1,21 @@
+--- ./tests/bootstrap.php.rpm 2015-01-16 11:32:46.045016105 +0100
++++ ./tests/bootstrap.php 2015-01-16 11:32:49.152028834 +0100
+@@ -1,16 +1,31 @@
<?php
$baseDir = dirname(__DIR__);
@@ -83,10 +60,15 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
-$loader = require_once $vendorDir . '/autoload.php';
-$loader->addClassMap(
- array(
-- 'Bartlett\Tests\Reflect\Model\GenericModelTest'
-- => __DIR__ . '/Model/GenericModelTest.php',
++$tab = array(
+ 'Bartlett\Tests\Reflect\Analyser\FooAnalyser'
+ => __DIR__ . '/Analyser/FooAnalyser.php',
+ 'Bartlett\Tests\Reflect\Analyser\BarAnalyser'
+ => __DIR__ . '/Analyser/BarAnalyser.php',
+ 'Bartlett\Tests\Reflect\Model\GenericModelTest'
+ => __DIR__ . '/Model/GenericModelTest.php',
- )
--);
+ );
+require_once $vendorDir . '/PhpParser/Autoloader.php';
+PhpParser\Autoloader::register();
+
@@ -102,5 +84,6 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
+$loader->useIncludePath(true);
+$loader->register();
+
-+require_once __DIR__ . '/Model/GenericModelTest.php';
-diff -up ./tests/EnvironmentTest.php.rpm ./tests/EnvironmentTest.php
++foreach ($tab as $class => $file) {
++ require_once $file;
++}
diff --git a/php-bartlett-PHP-Reflect-dev.spec b/php-bartlett-PHP-Reflect-dev.spec
index f9276af..6230ea8 100644
--- a/php-bartlett-PHP-Reflect-dev.spec
+++ b/php-bartlett-PHP-Reflect-dev.spec
@@ -6,15 +6,15 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit 51f79686ba79f6b0ab7e847788980567b59540ce
+%global gh_commit 0189a641c73503d2f23d5f412d9f2b29f2315d79
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
-%global gh_date 20150105
+%global gh_date 20150115
%global gh_owner llaville
%global gh_project php-reflect
Name: php-bartlett-PHP-Reflect
Version: 3.0.0
-%global specrel 1
+%global specrel 2
Release: %{?gh_short:0.%{specrel}.%{?gh_date}git%{gh_short}}%{!?gh_short:%{specrel}}%{?dist}
Summary: Adds the ability to reverse-engineer PHP
@@ -165,6 +165,9 @@ fi
%changelog
+* Fri Jan 16 2015 Remi Collet <remi@fedoraproject.org> - 3.0.0-0.1.20150115git0189a64
+- update to 3.0.0 alpha3
+
* Tue Jan 6 2015 Remi Collet <remi@fedoraproject.org> - 3.0.0-0.1.20150105git51f7968
- update to 3.0.0 alpha2
- drop dependency on phpunit/php-timer