Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2022 14:00:29 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f62f965a9a45 - main - multimedia/mythtv: Fix build with setuptools 58.0.0+
Message-ID:  <202206031400.253E0T0Q098572@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit f62f965a9a45caa89c53d76502b6d61083e2b68f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-03 13:56:37 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-03 13:59:08 +0000

    multimedia/mythtv: Fix build with setuptools 58.0.0+
    
    - Bump PORTREVISION for package change
    
    With hat:       python
---
 multimedia/mythtv/Makefile                             |  6 +++++-
 multimedia/mythtv/files/patch-bindings-python-setup.py | 10 ++++++++++
 multimedia/mythtv/pkg-plist                            |  5 ++++-
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile
index 389ca16ebe13..d291f28ab323 100644
--- a/multimedia/mythtv/Makefile
+++ b/multimedia/mythtv/Makefile
@@ -3,7 +3,7 @@
 PORTNAME=	mythtv
 DISTVERSIONPREFIX=	v
 DISTVERSION=	31.0
-PORTREVISION=	7
+PORTREVISION=	8
 PORTEPOCH=	1
 CATEGORIES=	multimedia
 
@@ -234,6 +234,10 @@ post-install:
 		${GREP} -q 'x-executable; charset=binary'" \; -print | ${XARGS} ${STRIP_CMD}
 	@${FIND} ${STAGEDIR}${PREFIX}/lib -type f -name lib\*.so.\* | ${XARGS} ${STRIP_CMD}
 
+post-install-BINDINGS-on:
+	${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/MythTV/ttvdb/XSLT/
+	${INSTALL_DATA} ${WRKSRC}/bindings/python/MythTV/ttvdb/XSLT/*.xsl ${STAGEDIR}${PYTHON_SITELIBDIR}/MythTV/ttvdb/XSLT/
+
 # Apply additional substitutions to pkg-plist generated by the 'makeplist' target
 create-plist: stage
 	@(cd ${.CURDIR} && ${MAKE} makeplist > pkg-plist && \
diff --git a/multimedia/mythtv/files/patch-bindings-python-setup.py b/multimedia/mythtv/files/patch-bindings-python-setup.py
new file mode 100644
index 000000000000..3619849050c9
--- /dev/null
+++ b/multimedia/mythtv/files/patch-bindings-python-setup.py
@@ -0,0 +1,10 @@
+--- bindings/python/setup.py.orig	2020-03-23 14:32:28 UTC
++++ bindings/python/setup.py
+@@ -86,7 +86,6 @@ setup(
+                   'MythTV/wikiscripts', 'MythTV/utility',
+ 				  'MythTV/services_api'],
+         package_dir={'MythTV/tmdb3':'./tmdb3/tmdb3'},
+-        data_files=[('MythTV/ttvdb/XSLT', glob.glob('MythTV/ttvdb/XSLT/*'))],
+         url=['http://www.mythtv.org/'],
+         scripts=SCRIPTS,
+         requires=['MySQLdb','lxml'],
diff --git a/multimedia/mythtv/pkg-plist b/multimedia/mythtv/pkg-plist
index 9084381904ad..8457b8ad3b3f 100644
--- a/multimedia/mythtv/pkg-plist
+++ b/multimedia/mythtv/pkg-plist
@@ -586,7 +586,10 @@ lib/libmythupnp-31.so.31.0.0
 %%BINDINGS%%%%SITE_PERL%%/MythTV/Program.pm
 %%BINDINGS%%%%SITE_PERL%%/MythTV/Recording.pm
 %%BINDINGS%%%%SITE_PERL%%/MythTV/StorageGroup.pm
-%%BINDINGS%%%%PYTHON_SITELIBDIR%%/MythTV-31.0._1-py%%PYTHON_VER%%.egg-info
+%%BINDINGS%%%%PYTHON_SITELIBDIR%%/MythTV-31.0._1-py%%PYTHON_VER%%.egg-info/PKG-INFO
+%%BINDINGS%%%%PYTHON_SITELIBDIR%%/MythTV-31.0._1-py%%PYTHON_VER%%.egg-info/SOURCES.txt
+%%BINDINGS%%%%PYTHON_SITELIBDIR%%/MythTV-31.0._1-py%%PYTHON_VER%%.egg-info/dependency_links.txt
+%%BINDINGS%%%%PYTHON_SITELIBDIR%%/MythTV-31.0._1-py%%PYTHON_VER%%.egg-info/top_level.txt
 %%BINDINGS%%%%PYTHON_SITELIBDIR%%/MythTV/__init__.py
 %%BINDINGS%%%%PYTHON_SITELIBDIR%%/MythTV/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
 %%BINDINGS%%%%PYTHON_SITELIBDIR%%/MythTV/__pycache__/_conn_mysqldb.cpython-%%PYTHON_SUFFIX%%.pyc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206031400.253E0T0Q098572>