git: cacbddd3d462 - main - multimedia/py-tartube: Update to 2.5.40

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Tue, 03 Sep 2024 15:36:48 UTC
The branch main has been updated by nivit:

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

commit cacbddd3d462b8439dd2f097847323a02e5d3713
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-09-03 15:34:11 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-09-03 15:34:11 +0000

    multimedia/py-tartube: Update to 2.5.40
---
 multimedia/py-tartube/Makefile | 7 +++++--
 multimedia/py-tartube/distinfo | 6 +++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/multimedia/py-tartube/Makefile b/multimedia/py-tartube/Makefile
index 60e9ca3887a7..a731c1fc708c 100644
--- a/multimedia/py-tartube/Makefile
+++ b/multimedia/py-tartube/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	tartube
-DISTVERSION=	2.5.0
+DISTVERSION=	2.5.40
 CATEGORIES=	multimedia python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -31,7 +31,10 @@ MAKE_ENV=	TARTUBE_PKG_STRICT=1
 NO_ARCH=	yes
 
 post-patch:
-	${SED} -i.bak -e "s|\( = '\)/usr/share/tartube|\1${DATADIR}|1" ${WRKSRC}/setup.py
+	${SED} -i.bak -e "s|\( = '\)/usr/share/tartube|\1${DATADIR}|1" \
+		-e "s|\(version = \).*|\1'${PORTVERSION}',|1" \
+		-e "s|\(sound_path\) + '/'|\1|1" \
+		${WRKSRC}/setup.py
 	${SED} -i.bak -e "s|'/', 'usr', 'share', __main__.__packagename__|'${DATADIR}'|g" \
 		-e "s|\(self.ytdl_path =\) None|\1 '${LOCALBASE}/bin/yt-dlp'|1" \
 		${WRKSRC}/tartube/mainapp.py \
diff --git a/multimedia/py-tartube/distinfo b/multimedia/py-tartube/distinfo
index 9ea3c8504a6f..42349ea6448a 100644
--- a/multimedia/py-tartube/distinfo
+++ b/multimedia/py-tartube/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1704279095
-SHA256 (tartube-2.5.0.tar.gz) = b665d5df5bb84f8a452b030ef88943da56b7c272c7237a484b47eed6d0cb93a7
-SIZE (tartube-2.5.0.tar.gz) = 10137887
+TIMESTAMP = 1725288960
+SHA256 (tartube-2.5.40.tar.gz) = 7dfad1f821286fbd22ab7ea44724a5b612484d39f9a973b6c5ad25458927c09a
+SIZE (tartube-2.5.40.tar.gz) = 10182947