git: 2157107ea586 - main - ports-mgmt/portlint: Update to 2.22.1

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Thu, 11 Apr 2024 11:45:49 UTC
The branch main has been updated by marcus:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2157107ea58683e95bf377fa4439ecd116c7f868

commit 2157107ea58683e95bf377fa4439ecd116c7f868
Author:     Joe Marcus Clarke <marcus@FreeBSD.org>
AuthorDate: 2024-04-11 11:45:00 +0000
Commit:     Joe Marcus Clarke <marcus@FreeBSD.org>
CommitDate: 2024-04-11 11:45:00 +0000

    ports-mgmt/portlint: Update to 2.22.1
    
    Remove the WWW check for pkg-descr.
    
    PR:             278069
---
 ports-mgmt/portlint/Makefile        |  3 +--
 ports-mgmt/portlint/src/portlint.pl | 32 +-------------------------------
 2 files changed, 2 insertions(+), 33 deletions(-)

diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile
index efe7ea72f6c0..7e3df9f319fd 100644
--- a/ports-mgmt/portlint/Makefile
+++ b/ports-mgmt/portlint/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	portlint
-PORTVERSION=	2.22.0
-PORTREVISION=	1
+PORTVERSION=	2.22.1
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	# none
 DISTFILES=	# none
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index 5fa4267e6065..53d80a8847c0 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -52,7 +52,7 @@ $portdir = '.';
 # version variables
 my $major = 2;
 my $minor = 22;
-my $micro = 0;
+my $micro = 1;
 
 # default setting - for FreeBSD
 my $portsdir = '/usr/ports';
@@ -544,36 +544,6 @@ sub checkdescr {
 			"other local characters.  files should be in ".
 			"plain 7-bit ASCII");
 	}
-	if ($file =~ /\bpkg-descr/ && $tmp =~ m,https?://,) {
-		my $has_url = 0;
-		my $has_www = 0;
-		my $cpan_url = 0;
-		my $has_endslash = 0;
-		foreach my $line (grep($_ =~ "https?://", split(/\n+/, $tmp))) {
-			$has_url = 1;
-			if ($line =~ m,WWW:[ \t]+https?://,) {
-				$has_www = 1;
-				if ($line =~ m,search.cpan.org,) {
-					$cpan_url = 1;
-					if ($line =~ m,/$,) {
-						$has_endslash = 1;
-					}
-				}
-			}
-		}
-
-		if (!$has_url) {
-			&perror("WARN", $file, -1, "add \"WWW: URL:\" for this port if possible");
-		}
-
-		if ($cpan_url && !$has_endslash) {
-			&perror("WARN", $file, -1, "end WWW CPAN URL with a \"/\"");
-		}
-
-		if ($has_url && ! $has_www) {
-			&perror("FATAL", $file, -1, "contains a URL but no \"WWW:\"");
-		}
-	}
 	close(IN);
 }