git: a0dcd38ffe97 - main - multimedia/ytfzf: Update to 2.6.0

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 13 May 2023 08:57:06 UTC
The branch main has been updated by eduardo:

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

commit a0dcd38ffe974d44c5993c6f30068bcc9051b772
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2023-05-13 08:53:09 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-05-13 08:56:25 +0000

    multimedia/ytfzf: Update to 2.6.0
    
    - Take maintainership
    - Install manual pages
    
    ChangeLog: https://github.com/pystardust/ytfzf/releases/tag/v2.6.0
---
 multimedia/ytfzf/Makefile          | 20 +++++++++-----------
 multimedia/ytfzf/distinfo          |  6 +++---
 multimedia/ytfzf/files/patch-ytfzf | 11 -----------
 3 files changed, 12 insertions(+), 25 deletions(-)

diff --git a/multimedia/ytfzf/Makefile b/multimedia/ytfzf/Makefile
index b02a2a378626..cbe05f47a881 100644
--- a/multimedia/ytfzf/Makefile
+++ b/multimedia/ytfzf/Makefile
@@ -1,10 +1,9 @@
 PORTNAME=	ytfzf
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.2.0
-PORTREVISION=	2
+DISTVERSION=	2.6.0
 CATEGORIES=	multimedia
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	eduardo@FreeBSD.org
 COMMENT=	Find and watch YouTube videos from the terminal
 WWW=		https://github.com/pystardust/ytfzf
 
@@ -28,21 +27,20 @@ PYTHON_NO_DEPENDS=	yes
 NO_ARCH=	yes
 NO_BUILD=	yes
 
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} \
+		share/man/man1/${PORTNAME}.1.gz \
+		share/man/man5/${PORTNAME}.5.gz
 
-PORTDOCS=	USAGE.md conf.sh
 PORTEXAMPLES=	conf.sh
 
-OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_DEFINE=	EXAMPLES
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/docs/man/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
+	${INSTALL_MAN} ${WRKSRC}/docs/man/${PORTNAME}.5 ${STAGEDIR}${PREFIX}/share/man/man5
 
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/USAGE.md ${STAGEDIR}${DOCSDIR}
-
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/docs/conf.sh ${STAGEDIR}${EXAMPLESDIR}
-	${RLN} ${STAGEDIR}${EXAMPLESDIR}/conf.sh ${STAGEDIR}${DOCSDIR}/conf.sh
 
 .include <bsd.port.mk>
diff --git a/multimedia/ytfzf/distinfo b/multimedia/ytfzf/distinfo
index 444f30a69b03..cd6f8c469ad7 100644
--- a/multimedia/ytfzf/distinfo
+++ b/multimedia/ytfzf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1625097159
-SHA256 (pystardust-ytfzf-v1.2.0_GH0.tar.gz) = 244205d59f4fbab30c87740b7181c387a1892e23d8e20a034adcfaa686130fa7
-SIZE (pystardust-ytfzf-v1.2.0_GH0.tar.gz) = 3229824
+TIMESTAMP = 1683961953
+SHA256 (pystardust-ytfzf-v2.6.0_GH0.tar.gz) = bc54847ec3d613e25902404cfcb8dfdc657c8258b7cefdeb581cc92d58696835
+SIZE (pystardust-ytfzf-v2.6.0_GH0.tar.gz) = 3277853
diff --git a/multimedia/ytfzf/files/patch-ytfzf b/multimedia/ytfzf/files/patch-ytfzf
deleted file mode 100644
index c7a5827d6be3..000000000000
--- a/multimedia/ytfzf/files/patch-ytfzf
+++ /dev/null
@@ -1,11 +0,0 @@
---- ytfzf.orig	2021-06-26 05:44:53 UTC
-+++ ytfzf
-@@ -1095,7 +1095,7 @@ play_url () {
- session_is_running () {
-     session_count=0
-     while read -r pid; do
--	[ -d /proc/"$pid" ] && session_count=$(( session_count + 1 ))
-+	kill -0 "$pid" 2>/dev/null && session_count=$(( session_count + 1 ))
-     done < "$pid_file"
-     [ $session_count -eq 1 ] && return 1 || return 0
- }