git: 7885ac3a6798 - main - multimedia/py-python-mpv: New port

From: Joel Bodenmann <jbo_at_FreeBSD.org>
Date: Fri, 05 Jan 2024 02:01:10 UTC
The branch main has been updated by jbo:

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

commit 7885ac3a6798fc81438fdc693ec267451db06908
Author:     Lexi Winter <lexi@le-fay.org>
AuthorDate: 2023-12-26 11:41:12 +0000
Commit:     Joel Bodenmann <jbo@FreeBSD.org>
CommitDate: 2024-01-05 02:00:21 +0000

    multimedia/py-python-mpv: New port
    
    Python interface to the mpv media player.
    
    PR:                     275945
    Approved by:            tcberner (mentor)
    Differential Revision:  https://reviews.freebsd.org/D43266
---
 multimedia/Makefile                |  1 +
 multimedia/py-python-mpv/Makefile  | 21 +++++++++++++++++++++
 multimedia/py-python-mpv/distinfo  |  3 +++
 multimedia/py-python-mpv/pkg-descr |  4 ++++
 4 files changed, 29 insertions(+)

diff --git a/multimedia/Makefile b/multimedia/Makefile
index 2c63670e9be8..da53f7b6d583 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -311,6 +311,7 @@
     SUBDIR += py-pretty_midi
     SUBDIR += py-pymediainfo
     SUBDIR += py-pysubs2
+    SUBDIR += py-python-mpv
     SUBDIR += py-soco
     SUBDIR += py-srt
     SUBDIR += py-subliminal
diff --git a/multimedia/py-python-mpv/Makefile b/multimedia/py-python-mpv/Makefile
new file mode 100644
index 000000000000..9d48534a2ead
--- /dev/null
+++ b/multimedia/py-python-mpv/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	python-mpv
+DISTVERSION=	1.0.5
+CATEGORIES=	multimedia python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	lexi.freebsd@le-fay.org
+COMMENT=	Python interface to the mpv media player
+WWW=		https://pypi.org/project/python-mpv/
+
+LICENSE=	GPLv2+ LGPL21+
+LICENSE_COMB=	dual
+
+BUILD_DEPENDS=  ${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	mpv>0:multimedia/mpv
+
+USES=		python
+USE_PYTHON=	pep517 autoplist
+
+.include <bsd.port.mk>
diff --git a/multimedia/py-python-mpv/distinfo b/multimedia/py-python-mpv/distinfo
new file mode 100644
index 000000000000..2c942fffb014
--- /dev/null
+++ b/multimedia/py-python-mpv/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703589695
+SHA256 (python-mpv-1.0.5.tar.gz) = 9053ebf05c581810a1cff6c5492d516ea465039dc0ac24ac7779ee21c777d65d
+SIZE (python-mpv-1.0.5.tar.gz) = 50785
diff --git a/multimedia/py-python-mpv/pkg-descr b/multimedia/py-python-mpv/pkg-descr
new file mode 100644
index 000000000000..817b497a64a3
--- /dev/null
+++ b/multimedia/py-python-mpv/pkg-descr
@@ -0,0 +1,4 @@
+python-mpv is a ctypes-based python interface to the mpv media player.
+
+It gives you more or less full control of all features of the player,
+just as the lua interface does.