summaryrefslogtreecommitdiff
path: root/multimedia/py-scenedetect
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/py-scenedetect')
-rw-r--r--multimedia/py-scenedetect/Makefile30
-rw-r--r--multimedia/py-scenedetect/distinfo3
-rw-r--r--multimedia/py-scenedetect/files/patch-scenedetect_platform.py10
-rw-r--r--multimedia/py-scenedetect/pkg-descr3
4 files changed, 46 insertions, 0 deletions
diff --git a/multimedia/py-scenedetect/Makefile b/multimedia/py-scenedetect/Makefile
new file mode 100644
index 000000000000..cf024309e126
--- /dev/null
+++ b/multimedia/py-scenedetect/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= scenedetect
+DISTVERSION= 0.6.7
+CATEGORIES= multimedia python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= atanubiswas484@gmail.com
+COMMENT= OpenCV-based video scene detection program and Python library
+WWW= https://www.scenedetect.com/ \
+ https://github.com/Breakthrough/PySceneDetect/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0.37:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}click>=8.0:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}platformdirs>0:devel/py-platformdirs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} \
+ ffmpeg:multimedia/ffmpeg \
+ mkvmerge:multimedia/mkvtoolnix \
+ opencv>=0:graphics/opencv
+
+USES= python
+USE_PYTHON= autoplist pep517 pytest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/multimedia/py-scenedetect/distinfo b/multimedia/py-scenedetect/distinfo
new file mode 100644
index 000000000000..29b5a60124a8
--- /dev/null
+++ b/multimedia/py-scenedetect/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1756240360
+SHA256 (scenedetect-0.6.7.tar.gz) = 1a2c73b57de2e1656f7896edc8523de7217f361179a8966e947f79d33e40830f
+SIZE (scenedetect-0.6.7.tar.gz) = 164213
diff --git a/multimedia/py-scenedetect/files/patch-scenedetect_platform.py b/multimedia/py-scenedetect/files/patch-scenedetect_platform.py
new file mode 100644
index 000000000000..1af0bf35d3e5
--- /dev/null
+++ b/multimedia/py-scenedetect/files/patch-scenedetect_platform.py
@@ -0,0 +1,10 @@
+--- scenedetect/platform.py.orig 2022-11-29 01:37:13 UTC
++++ scenedetect/platform.py
+@@ -25,6 +25,7 @@ import subprocess
+ import sys
+ from typing import AnyStr, Dict, List, Optional, Union
+
++import numpy
+ import cv2
+
+ ##
diff --git a/multimedia/py-scenedetect/pkg-descr b/multimedia/py-scenedetect/pkg-descr
new file mode 100644
index 000000000000..ce7003385198
--- /dev/null
+++ b/multimedia/py-scenedetect/pkg-descr
@@ -0,0 +1,3 @@
+PySceneDetect is a command-line application and a Python library for detecting
+scene changes in videos, and automatically splitting the video into separate
+clips.