git: 7d7d2a890956 - main - multimedia/py-tartube: Update to 2.5.100
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Feb 2025 14:51:32 UTC
The branch main has been updated by nivit:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7d7d2a8909561361938eb9e24aa690983bf05160
commit 7d7d2a8909561361938eb9e24aa690983bf05160
Author: Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2025-02-17 14:47:53 +0000
Commit: Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2025-02-17 14:47:53 +0000
multimedia/py-tartube: Update to 2.5.100
- Add option NLS
- Add files/patch-setup.py to support NLS optionally
Reported by: axcore/tartube <tartube@noreply.github.com>
---
multimedia/py-tartube/Makefile | 7 ++++++-
multimedia/py-tartube/distinfo | 6 +++---
multimedia/py-tartube/files/patch-setup.py | 23 +++++++++++++++++++++++
3 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/multimedia/py-tartube/Makefile b/multimedia/py-tartube/Makefile
index edbd76d7cabe..1270bf1bdd4b 100644
--- a/multimedia/py-tartube/Makefile
+++ b/multimedia/py-tartube/Makefile
@@ -1,5 +1,5 @@
PORTNAME= tartube
-DISTVERSION= 2.5.62
+DISTVERSION= 2.5.100
CATEGORIES= multimedia python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -30,10 +30,15 @@ MAKE_ENV= TARTUBE_PKG_STRICT=1
NO_ARCH= yes
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+NLS_MAKE_ENV= WITH_LOCALE=yes
+
post-patch:
${SED} -i.bak -e "s|\( = '\)/usr/share/tartube|\1${DATADIR}|1" \
-e "s|\(version = \).*|\1'${PORTVERSION}',|1" \
-e "s|\(sound_path\) + '/'|\1|1" \
+ -e "s|/usr\(/share/locale\)|${PREFIX}\1|g" \
${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" \
diff --git a/multimedia/py-tartube/distinfo b/multimedia/py-tartube/distinfo
index eeb806e858d1..5dee8f948df5 100644
--- a/multimedia/py-tartube/distinfo
+++ b/multimedia/py-tartube/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1733998932
-SHA256 (tartube-2.5.62.tar.gz) = 33014ad21c65b013ee7c6c455392baeb1e43d8c482bffbbde1d38e8b4d411002
-SIZE (tartube-2.5.62.tar.gz) = 10185761
+TIMESTAMP = 1739747361
+SHA256 (tartube-2.5.100.tar.gz) = 8477b77036a8d6d78a23a2d0aba2aaf67cdf88a8b1656d2fa63bacea2a4dbd83
+SIZE (tartube-2.5.100.tar.gz) = 11242364
diff --git a/multimedia/py-tartube/files/patch-setup.py b/multimedia/py-tartube/files/patch-setup.py
new file mode 100644
index 000000000000..a6e7bbc3977c
--- /dev/null
+++ b/multimedia/py-tartube/files/patch-setup.py
@@ -0,0 +1,23 @@
+--- setup.py.orig 2025-02-02 18:51:01 UTC
++++ setup.py
+@@ -162,12 +162,14 @@ for subdir in icon_subdir_list:
+
+ #for path in glob.glob('locale/*'):
+ # param_list.append((locale_path, [path]))
+-for root, dirs, files in os.walk('locale'):
+- for file in files:
+- param_list.append((
+- os.path.join('/usr/share/locale', os.path.relpath(root, 'locale')),
+- [os.path.join(root, file)]
+- ))
++with_locale = os.environ.get('WITH_LOCALE', None)
++if with_locale is not None:
++ for root, dirs, files in os.walk('locale'):
++ for file in files:
++ param_list.append((
++ os.path.join('/usr/share/locale', os.path.relpath(root, 'locale')),
++ [os.path.join(root, file)]
++ ))
+
+ for path in glob.glob('sounds/*'):
+ param_list.append((sound_path, [path]))