pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/lintpkgsrc/files lintpkgsrc: improve PKGNAME ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f04d2568322
branches:  trunk
changeset: 383274:9f04d2568322
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Aug 16 20:28:41 2022 +0000

description:
lintpkgsrc: improve PKGNAME guessing for PHP, Python, Ruby packages

diffstat:

 pkgtools/lintpkgsrc/files/lintpkgsrc.pl |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 6b206a8a0b31 -r 9f04d2568322 pkgtools/lintpkgsrc/files/lintpkgsrc.pl
--- a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Tue Aug 16 20:10:32 2022 +0000
+++ b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Tue Aug 16 20:28:41 2022 +0000
@@ -1,5 +1,5 @@
 #!@PERL5@
-# $NetBSD: lintpkgsrc.pl,v 1.105 2022/08/16 20:10:32 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.106 2022/08/16 20:28:41 rillig Exp $
 
 # Written by David Brownlee <abs%netbsd.org@localhost>.
 #
@@ -612,6 +612,12 @@
                }
        }
 
+       if ($opt{D}) {
+               print "Before expansion:\n";
+               foreach my $varname (sort keys %vars) {
+                       print "\t$varname = $vars{$varname}\n";
+               }
+       }
        debug("$file: expand");
 
        # Handle variable substitutions  FRED = a-${JIM:S/-/-b-/}
@@ -707,7 +713,10 @@
 
        $default_vars->{PACKAGES} ||= $default_vars->{PKGSRCDIR} . '/packages';
 
-       $default_vars->{LUA_PKGPREFIX} = 'lua54';
+       $default_vars->{LUA_PKGPREFIX} = 'lua12345';
+       $default_vars->{PHP_PKG_PREFIX} = 'php12345';
+       $default_vars->{PYPKGPREFIX} = 'py12345';
+       $default_vars->{RUBY_PKGPREFIX} = 'ruby12345';
 }
 
 # Determine if a package version is current. If not, report the correct



Home | Main Index | Thread Index | Old Index