Author: glen                         Date: Tue Jun  2 10:28:42 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use runkit pecl ext for syntax lint (faster)

---- Files affected:
packages/ZendFramework:
   ZendFramework.spec (1.61 -> 1.62) 

---- Diffs:

================================================================
Index: packages/ZendFramework/ZendFramework.spec
diff -u packages/ZendFramework/ZendFramework.spec:1.61 
packages/ZendFramework/ZendFramework.spec:1.62
--- packages/ZendFramework/ZendFramework.spec:1.61      Tue Jun  2 12:12:32 2009
+++ packages/ZendFramework/ZendFramework.spec   Tue Jun  2 12:28:36 2009
@@ -16,6 +16,7 @@
 Patch1:                %{name}-deps.patch
 Patch2:                %{name}-bug6499.patch
 URL:           http://framework.zend.com/
+BuildRequires: php-pecl-runkit
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
 BuildRequires: sed >= 4.0
 Requires:      php-common >= 4:5.1.4
@@ -1273,9 +1274,20 @@
 %build
 # check *.php files syntax using runkit extension
 lint_php() {
-       for a in $(find library -name '*.php'); do
-               php -l "$a"
-       done
+       php -r '
+               $errors = 0;
+               array_shift($argv);
+               echo "Checking syntax of ", count($argv), " PHP files";
+               foreach ($argv as $file) {
+                       echo ".";
+                       if (!runkit_lint_file($file)) {
+                               echo "PHP Lint: $file\n";
+                               $errors++;
+                       }
+               }
+               echo "\nDONE!\n";
+               exit($errors ? 1 : 0);
+       ' $(find library -name '*.php')
 }
 lint_php
 
@@ -1703,6 +1715,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.62  2009/06/02 10:28:36  glen
+- use runkit pecl ext for syntax lint (faster)
+
 Revision 1.61  2009/06/02 10:12:32  glen
 - ZendFramework-db_charset.patch was cause of syntax errors
 - ZF-1541 was fixed in 1.8.0; rel 2
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ZendFramework/ZendFramework.spec?r1=1.61&r2=1.62&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to