git: 278771d60cbc - main - ports-mgmt/portscout: Bugfix with empty MASTER_SITES, bump PORTREVISION

From: Ryan Steinmetz <zi_at_FreeBSD.org>
Date: Mon, 31 Jan 2022 14:17:28 UTC
The branch main has been updated by zi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=278771d60cbc937f1cf7224db0ace55e692701f9

commit 278771d60cbc937f1cf7224db0ace55e692701f9
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2022-01-31 14:17:07 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2022-01-31 14:17:07 +0000

    ports-mgmt/portscout: Bugfix with empty MASTER_SITES, bump PORTREVISION
---
 ports-mgmt/portscout/Makefile                               |  1 +
 ports-mgmt/portscout/files/patch-Portscout_DataSrc_Ports.pm | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/ports-mgmt/portscout/Makefile b/ports-mgmt/portscout/Makefile
index 8f59121a6d82..63fb9efb247a 100644
--- a/ports-mgmt/portscout/Makefile
+++ b/ports-mgmt/portscout/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	portscout
 PORTVERSION=	0.8.1.4
+PORTREVISION=	1
 CATEGORIES=	ports-mgmt
 
 MAINTAINER=	koobs@FreeBSD.org
diff --git a/ports-mgmt/portscout/files/patch-Portscout_DataSrc_Ports.pm b/ports-mgmt/portscout/files/patch-Portscout_DataSrc_Ports.pm
new file mode 100644
index 000000000000..a878688be9a6
--- /dev/null
+++ b/ports-mgmt/portscout/files/patch-Portscout_DataSrc_Ports.pm
@@ -0,0 +1,11 @@
+--- Portscout/DataSrc/Ports.pm.orig	2019-10-11 12:05:53 UTC
++++ Portscout/DataSrc/Ports.pm
+@@ -454,6 +454,8 @@ sub BuildPort
+ 		$site =~ s/\/+$/\//;
+ 		$site =~ s/:[A-Za-z0-9][A-Za-z0-9\,]*$//g; # site group spec.
+ 
++		next if ($site eq "");
++
+ 		$site = URI->new($site)->canonical;
+ 		next if (length $site->host == 0);
+