pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Allow multiple USE_TOOLS+= lines.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/45c42f89a090
branches:  trunk
changeset: 494439:45c42f89a090
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue May 24 12:38:41 2005 +0000

description:
Allow multiple USE_TOOLS+= lines.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r de3653530dfe -r 45c42f89a090 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Tue May 24 12:29:40 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Tue May 24 12:38:41 2005 +0000
@@ -11,7 +11,7 @@
 # Freely redistributable.  Absolutely no warranty.
 #
 # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.172 2005/05/23 09:31:20 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.173 2005/05/24 12:38:41 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -1391,7 +1391,7 @@
        # ...nor settings of TEST_TARGET & BUILD_TARGET
        $j =~ s/\nTEST_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nTEST_TARGET=#replaced\n/;
        $j =~ s/\nBUILD_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nBUILD_TARGET=#replaced\n/;
-       $j =~ s/\n(?:PKGSRC_)?USE_TOOLS[ \t]*\+=[ \t]*[^\n]*\n/\nUSE_TOOLS=#replaced\n/;
+       $j =~ s/\n(?:PKGSRC_)?USE_TOOLS[ \t]*\+?=[ \t]*[^\n]*\n/\nUSE_TOOLS=#replaced\n/g;
        if ($opt_warn_directcmd) {
                foreach my $i (keys %cmdnames) {
                        if ($j =~ /[ \t\/@]$i[ \t\n;]/) {



Home | Main Index | Thread Index | Old Index