commit:     cf3855f776dce67949d4e046a78c4ed9fd7590b5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 18 07:47:58 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 18 07:48:12 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf3855f7

media-tv/mythtv: fix build w/ newer setuptools

Note that we need a revbump for this as it affects installed files.

Closes: https://bugs.gentoo.org/891189
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../mythtv/files/mythtv-32.0-python-version.patch  | 25 ++++++++++++++++++++++
 ...mythtv-32.0-r3.ebuild => mythtv-32.0-r4.ebuild} |  3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/media-tv/mythtv/files/mythtv-32.0-python-version.patch 
b/media-tv/mythtv/files/mythtv-32.0-python-version.patch
new file mode 100644
index 000000000000..8f86cdda3764
--- /dev/null
+++ b/media-tv/mythtv/files/mythtv-32.0-python-version.patch
@@ -0,0 +1,25 @@
+https://bugs.gentoo.org/891189
+https://github.com/MythTV/mythtv/issues/711
+https://github.com/MythTV/mythtv/commit/23e158cbd9357e0d31834dff9c45022758671255
+
+From 23e158cbd9357e0d31834dff9c45022758671255 Mon Sep 17 00:00:00 2001
+From: David Hampton <myt...@love2code.net>
+Date: Sun, 5 Jun 2022 00:43:38 -0400
+Subject: [PATCH] Fix "XX.0.-1 is an invalid version" warning in python
+ bindings.
+
+(cherry picked from commit 0f8e58b20a4246d46a77406fcf3c5368fbabaf8b)
+
+Fixes #711.
+--- a/bindings/python/setup.cfg
++++ b/bindings/python/setup.cfg
+@@ -2,7 +2,7 @@
+ 
+ [metadata]
+ name = MythTV
+-version = 32.0.-1
++version = 32.0
+ description = MythTV Python bindings.
+ long_description = Provides canned database and protocol access to the MythTV 
database, mythproto, mythxml, services_api and frontend remote control.
+ url = https://mythtv.org
+

diff --git a/media-tv/mythtv/mythtv-32.0-r3.ebuild 
b/media-tv/mythtv/mythtv-32.0-r4.ebuild
similarity index 99%
rename from media-tv/mythtv/mythtv-32.0-r3.ebuild
rename to media-tv/mythtv/mythtv-32.0-r4.ebuild
index 29e1671cf498..ce9af87d74fa 100644
--- a/media-tv/mythtv/mythtv-32.0-r3.ebuild
+++ b/media-tv/mythtv/mythtv-32.0-r4.ebuild
@@ -151,6 +151,7 @@ python_check_deps() {
 }
 
 PATCHES=(
+       "${FILESDIR}"/${PN}-32.0-python-version.patch
 )
 
 DISABLE_AUTOFORMATTING="yes"
@@ -158,7 +159,7 @@ DOC_CONTENTS="
 Support for metadata lookup changes is added. User configuration required.
 Details at: https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021
 
-Suppport for Python 2.7 is removed.
+Support for Python 2.7 is removed.
 
 If a MYSQL server is installed, a mythtv MySQL user and mythconverg database
 is created if it does not already exist.

Reply via email to