diff options
author | rillig <rillig@pkgsrc.org> | 2022-08-16 20:10:32 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2022-08-16 20:10:32 +0000 |
commit | 2d159d76b0e13c6863c9d00cf2cecbbaf527ca86 (patch) | |
tree | c947ed791feb57fe8311be55610576d8c59bc9e2 /pkgtools/lintpkgsrc | |
parent | 39871739e98c374cd9718fe1faa5384c6731b6ba (diff) | |
download | pkgsrc-2d159d76b0e13c6863c9d00cf2cecbbaf527ca86.tar.gz |
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 (limited to 'pkgtools/lintpkgsrc')
-rwxr-xr-x | pkgtools/lintpkgsrc/files/lintpkgsrc.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl index e4ade936917..e48a56b555d 100755 --- a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl +++ b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl @@ -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>. # @@ -201,6 +201,7 @@ sub listdir($base, $dir = undef) { } 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 @@ sub get_default_makefile_vars() { } $default_vars->{PACKAGES} ||= $default_vars->{PKGSRCDIR} . '/packages'; + + $default_vars->{LUA_PKGPREFIX} = 'lua54'; } # Determine if a package version is current. If not, report the correct |