Date: Sun, 23 Jan 2022 19:28: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: d7405ce8487a - main - multimedia/py-cec: Update to 0.2.8 Message-ID: <202201231928.20NJSTUR016007@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=d7405ce8487a821abd9d76a66461a60a9740a056 commit d7405ce8487a821abd9d76a66461a60a9740a056 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-01-23 18:19:47 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-01-23 18:50:46 +0000 multimedia/py-cec: Update to 0.2.8 Changes: https://github.com/trainman419/python-cec/commits/master --- multimedia/py-cec/Makefile | 3 +-- multimedia/py-cec/distinfo | 6 +++--- multimedia/py-cec/files/patch-cec.cpp | 37 ----------------------------------- 3 files changed, 4 insertions(+), 42 deletions(-) diff --git a/multimedia/py-cec/Makefile b/multimedia/py-cec/Makefile index 4542f3a82e1e..edc81612aa99 100644 --- a/multimedia/py-cec/Makefile +++ b/multimedia/py-cec/Makefile @@ -1,6 +1,5 @@ PORTNAME= cec -PORTVERSION= 0.2.7 -PORTREVISION= 3 +PORTVERSION= 0.2.8 CATEGORIES= multimedia python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/multimedia/py-cec/distinfo b/multimedia/py-cec/distinfo index 140a5437c0c1..f8b81c0148f4 100644 --- a/multimedia/py-cec/distinfo +++ b/multimedia/py-cec/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1573958556 -SHA256 (cec-0.2.7.tar.gz) = dab092aa5ff15b64c4965ab6dea351dead565173022f589e9fd1bc2ff47f6adb -SIZE (cec-0.2.7.tar.gz) = 17882 +TIMESTAMP = 1642102327 +SHA256 (cec-0.2.8.tar.gz) = 81e59d85dffdd5552b9bec556779e97fb1d6bd120c7320c216c020743a46083a +SIZE (cec-0.2.8.tar.gz) = 20316 diff --git a/multimedia/py-cec/files/patch-cec.cpp b/multimedia/py-cec/files/patch-cec.cpp deleted file mode 100644 index b83c746b57c9..000000000000 --- a/multimedia/py-cec/files/patch-cec.cpp +++ /dev/null @@ -1,37 +0,0 @@ ---- cec.cpp.orig 2019-11-12 05:53:01 UTC -+++ cec.cpp -@@ -612,14 +612,22 @@ PyObject * set_port(PyObject * self, PyObject * args) - - PyObject * can_persist_config(PyObject * self, PyObject * args) { - if( PyArg_ParseTuple(args, ":can_persist_config") ) { -+#if CEC_LIB_VERSION_MAJOR >= 5 -+ RETURN_BOOL(CEC_adapter->CanSaveConfiguration()); -+#else - RETURN_BOOL(CEC_adapter->CanPersistConfiguration()); -+#endif - } - return NULL; - } - - PyObject * persist_config(PyObject * self, PyObject * args) { - if( PyArg_ParseTuple(args, ":persist_config") ) { -+#if CEC_LIB_VERSION_MAJOR >= 5 -+ if( ! CEC_adapter->CanSaveConfiguration() ) { -+#else - if( ! CEC_adapter->CanPersistConfiguration() ) { -+#endif - PyErr_SetString(PyExc_NotImplementedError, - "Cannot persist configuration"); - return NULL; -@@ -629,7 +637,11 @@ PyObject * persist_config(PyObject * self, PyObject * - PyErr_SetString(PyExc_IOError, "Could not get configuration"); - return NULL; - } -+#if CEC_LIB_VERSION_MAJOR >= 5 -+ RETURN_BOOL(CEC_adapter->SetConfiguration(&config)); -+#else - RETURN_BOOL(CEC_adapter->PersistConfiguration(&config)); -+#endif - } - return NULL; - }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201231928.20NJSTUR016007>