From 5db7ed50e743c37981153155c8c9e696c06d0da3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 31 Mar 2015 13:47:25 +0200 Subject: php-bartlett-umlwriter: 1.0.0RC2 --- php-bartlett-umlwriter-rpm.patch | 89 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 php-bartlett-umlwriter-rpm.patch (limited to 'php-bartlett-umlwriter-rpm.patch') diff --git a/php-bartlett-umlwriter-rpm.patch b/php-bartlett-umlwriter-rpm.patch new file mode 100644 index 0000000..5a09d6f --- /dev/null +++ b/php-bartlett-umlwriter-rpm.patch @@ -0,0 +1,89 @@ +diff -up ./bin/umlwriter.rpm ./bin/umlwriter +--- ./bin/umlwriter.rpm 2015-03-31 11:24:18.000000000 +0200 ++++ ./bin/umlwriter 2015-03-31 11:29:43.000000000 +0200 +@@ -1,24 +1,36 @@ +-#!/usr/bin/env php ++#!/usr/bin/php + registerNamespaces(array( ++ 'Symfony\\Component' => $vendorDir, ++ 'Doctrine\\Common' => $vendorDir, ++ 'phpDocumentor\\Reflection' => $vendorDir, ++ 'Seld\\JsonLint' => $vendorDir, ++ 'JsonSchema' => $vendorDir, ++ 'Bartlett' => $vendorDir, ++ 'TokenReflection' => $vendorDir, ++)); ++$loader->useIncludePath(true); ++$loader->register(); ++ + use Bartlett\UmlWriter\Console\Application; + +-$application = new Application($appName, '1.0'); ++$application = new Application($appName, '@package_version@'); + $application->run(); +diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php +--- ./tests/bootstrap.php.rpm 2015-03-31 09:46:46.000000000 +0200 ++++ ./tests/bootstrap.php 2015-03-31 11:30:51.000000000 +0200 +@@ -1,6 +1,30 @@ + registerNamespaces(array( ++ 'Symfony\\Component' => $vendorDir, ++ 'Doctrine\\Common' => $vendorDir, ++ 'phpDocumentor\\Reflection' => $vendorDir, ++ 'Seld\\JsonLint' => $vendorDir, ++ 'JsonSchema' => $vendorDir, ++ 'Bartlett\\UmlWriter' => $baseDir . '/src', ++ 'Bartlett\\Tests\\UmlWriter' => $baseDir . '/tests', ++ 'Bartlett' => $vendorDir, ++ 'TokenReflection' => $vendorDir, ++)); ++ ++$loader->register(); ++ ++# Class not catched by autoloader ++require $vendorDir . '/Bartlett/Reflect.php'; -- cgit