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: fix PKGNAME gues...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6b206a8a0b31
branches:  trunk
changeset: 383273:6b206a8a0b31
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Aug 16 20:10:32 2022 +0000

description:
lintpkgsrc: fix PKGNAME guessing for Lua packages

Previously, the guessed PKGNAME of devel/lua-busted was '-busted-2.0.0',
now it is 'lua-busted-2.0.0'.

diffstat:

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

diffs (27 lines):

diff -r a53cb0158f40 -r 6b206a8a0b31 pkgtools/lintpkgsrc/files/lintpkgsrc.pl
--- a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Tue Aug 16 20:08:53 2022 +0000
+++ b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl   Tue Aug 16 20:10:32 2022 +0000
@@ -1,5 +1,5 @@
 #!@PERL5@
-# $NetBSD: lintpkgsrc.pl,v 1.104 2022/08/16 20:06:05 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.105 2022/08/16 20:10:32 rillig Exp $
 
 # Written by David Brownlee <abs%netbsd.org@localhost>.
 #
@@ -201,6 +201,7 @@
 }
 
 sub canonicalize_pkgname($pkgname) {
+       $pkgname =~ s,^lua\d+-,lua-,;
        $pkgname =~ s,^py\d+(?:pth|)-,py-,;
        $pkgname =~ s,^ruby\d+-,ruby-,;
        $pkgname =~ s,^php\d+-,php-,;
@@ -705,6 +706,8 @@
        }
 
        $default_vars->{PACKAGES} ||= $default_vars->{PKGSRCDIR} . '/packages';
+
+       $default_vars->{LUA_PKGPREFIX} = 'lua54';
 }
 
 # Determine if a package version is current. If not, report the correct



Home | Main Index | Thread Index | Old Index