aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-10-22 18:50:00 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-10-22 18:50:00 +0000
commit184f8338aedf4af82aca0925df96bd273e3c775b (patch)
treed6fc1e8153c19cc3789acb9d4762f492cac91c55
parente79df2beed06349cb8f5af30a6518689400b5bf7 (diff)
multimedia/py-srt: New port: Library and tools for parsing, modifying, and composing SRT files
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/py-srt/Makefile23
-rw-r--r--multimedia/py-srt/distinfo3
-rw-r--r--multimedia/py-srt/pkg-descr4
4 files changed, 31 insertions, 0 deletions
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.