[23839] users/pipping/test.pl

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 10 15:04:39 PDT 2007


Revision: 23839
          http://trac.macosforge.org/projects/macports/changeset/23839
Author:   pipping at macports.org
Date:     2007-04-10 15:04:38 -0700 (Tue, 10 Apr 2007)

Log Message:
-----------
 * simplify regex to match a dependency, under the assumption, that none of the
   strings below appear outside a dependency-declaration:
   * port:<name of port>
   * bin:<name of binary>:<name of port>
   * lib:<name of library>:<name of port>
   * path:<path to file>:<name of port>

Modified Paths:
--------------
    users/pipping/test.pl

Modified: users/pipping/test.pl
===================================================================
--- users/pipping/test.pl	2007-04-10 21:41:19 UTC (rev 23838)
+++ users/pipping/test.pl	2007-04-10 22:04:38 UTC (rev 23839)
@@ -12,9 +12,11 @@
 
 my $quick_check = qr{:$port}i;
 
-my $dependency  = qr{depends_(?=[brl])(?:build|run|lib)(?:-(?:append|delete))?
-                  .*
-                  (?=[plb])(?:port|(?:path|lib|bin):[^:]+):(?i:${port})(?:\s|$)}x;
+my $dependency  = qr{
+                      (?=[plb])(?:port|(?:path|lib|bin):[^:]+)  # kind
+                      :                                         # separator
+                      (?i:${port})(?:\s|$)                      # name
+                  }x;
 
 $/ = ".\n";
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070410/8a0f8b18/attachment.html


More information about the macports-changes mailing list