git: 184f8338aedf - main - multimedia/py-srt: New port: Library and tools for parsing, modifying, and composing SRT files
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 Oct 2023 18:50:32 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=184f8338aedf4af82aca0925df96bd273e3c775b
commit 184f8338aedf4af82aca0925df96bd273e3c775b
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-10-22 18:50:00 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-10-22 18:50:00 +0000
multimedia/py-srt: New port: Library and tools for parsing, modifying, and composing SRT files
---
multimedia/Makefile | 1 +
multimedia/py-srt/Makefile | 23 +++++++++++++++++++++++
multimedia/py-srt/distinfo | 3 +++
multimedia/py-srt/pkg-descr | 4 ++++
4 files changed, 31 insertions(+)
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 4b9e628c7cf8..54604c3a2271 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -318,6 +318,7 @@
SUBDIR += py-pymediainfo
SUBDIR += py-pysubs2
SUBDIR += py-soco
+ SUBDIR += py-srt
SUBDIR += py-subliminal
SUBDIR += py-tartube
SUBDIR += py-tvnamer
diff --git a/multimedia/py-srt/Makefile b/multimedia/py-srt/Makefile
new file mode 100644
index 000000000000..4c39456ab812
--- /dev/null
+++ b/multimedia/py-srt/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= srt
+PORTVERSION= 3.5.3
+CATEGORIES= multimedia python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Library and tools for parsing, modifying, and composing SRT files
+WWW= https://github.com/Zulko/moviepy
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils concurrent autoplist pytest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/multimedia/py-srt/distinfo b/multimedia/py-srt/distinfo
new file mode 100644
index 000000000000..fb7e11b858b2
--- /dev/null
+++ b/multimedia/py-srt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698000114
+SHA256 (srt-3.5.3.tar.gz) = 4884315043a4f0740fd1f878ed6caa376ac06d70e135f306a6dc44632eed0cc0
+SIZE (srt-3.5.3.tar.gz) = 28296
diff --git a/multimedia/py-srt/pkg-descr b/multimedia/py-srt/pkg-descr
new file mode 100644
index 000000000000..3e3a27a9d7c7
--- /dev/null
+++ b/multimedia/py-srt/pkg-descr
@@ -0,0 +1,4 @@
+srt is a tiny Python library for parsing, modifying, and composing SRT files.
+
+There are a number of tools shipped with the library to manipulate, process,
+and fix SRT files.