git: d7277abb83fa - main - multimedia/streamlink: Revert version
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Mar 2022 18:07:41 UTC
The branch main has been updated by nc:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d7277abb83fad9e3a348d158f9bf9cd79853a922
commit d7277abb83fad9e3a348d158f9bf9cd79853a922
Author: Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2022-03-10 18:07:14 +0000
Commit: Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-03-10 18:07:14 +0000
multimedia/streamlink: Revert version
Not all updates to dependencies were committed.
This reverts commit a6976a7dda52e65445ed95bd1c3cacefb9566545.
---
multimedia/streamlink/Makefile | 45 ++++++++++++++++++++++++-----------------
multimedia/streamlink/distinfo | 6 +++---
multimedia/streamlink/pkg-descr | 11 +++++++---
3 files changed, 38 insertions(+), 24 deletions(-)
diff --git a/multimedia/streamlink/Makefile b/multimedia/streamlink/Makefile
index 3705afaa2e90..14afea460139 100644
--- a/multimedia/streamlink/Makefile
+++ b/multimedia/streamlink/Makefile
@@ -1,5 +1,5 @@
PORTNAME= streamlink
-DISTVERSION= 3.2.0
+PORTVERSION= 2.1.2
CATEGORIES= multimedia
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,31 +10,40 @@ COMMENT= Command-line utility that pipes video streams
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}isodate>0:devel/py-isodate@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}lxml>=4.6.4:devel/py-lxml@${PY_FLAVOR} \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}isodate>0:devel/py-isodate@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycryptodome>=3.4.3:security/py-pycryptodome@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.6:net/py-pysocks@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}requests>=2.26.0:www/py-requests@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}websocket-client>=1.2.1:www/py-websocket-client@${PY_FLAVOR}
-
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}freezegun>=1.0.0:devel/py-freezegun@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pysocks>0:net/py-pysocks@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}websocket-client>=0.58.0:www/py-websocket-client@${PY_FLAVOR}
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports>0:devel/py-backports@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests-mock>0:www/py-requests-mock@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
-TEST_ENV= PYTHONPATH=${WRKSRC}/src
-
NO_ARCH= yes
-OPTIONS_DEFINE= FFMPEG
-OPTIONS_DEFAULT= FFMPEG
-
-FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
-
-do-test:
- @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest -v -ra)
+OPTIONS_DEFINE= FFMPEG PYCOUNTRY RTMPDUMP
+OPTIONS_DEFAULT= FFMPEG RTMPDUMP
+.if !exists(../../textproc/py-iso3166/Makefile)
+OPTIONS_DEFAULT+= PYCOUNTRY
+.endif
+PYCOUNTRY_DESC= Use pycountry instead of py-iso-639 and py-iso3166
+
+FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
+PYCOUNTRY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR}
+PYCOUNTRY_RUN_DEPENDS_OFF= ${PYTHON_PKGNAMEPREFIX}iso-639>0:textproc/py-iso-639@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}iso3166>0:textproc/py-iso3166@${PY_FLAVOR}
+PYCOUNTRY_MAKE_ENV= STREAMLINK_USE_PYCOUNTRY=1
+RTMPDUMP_RUN_DEPENDS= rtmpdump:multimedia/rtmpdump
+
+do-test: .PHONY
+ cd ${WRKSRC} && ${SETENV} PYTHONPATH=${WRKSRC}/src ${PYTHON_CMD} -u -m pytest -v -ra \
+ || ${SETENV} PYTHONPATH=${WRKSRC}/src ${PYTHON_CMD} -um unittest discover -v
.include <bsd.port.mk>
diff --git a/multimedia/streamlink/distinfo b/multimedia/streamlink/distinfo
index d18a651c6c60..c4c55e7687b7 100644
--- a/multimedia/streamlink/distinfo
+++ b/multimedia/streamlink/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1646776784
-SHA256 (streamlink-3.2.0.tar.gz) = 9770d2d83844c5378a73e14130dcb760abc856566caa0a41fc5b97a0ded5d926
-SIZE (streamlink-3.2.0.tar.gz) = 517552
+TIMESTAMP = 1621854352
+SHA256 (streamlink-2.1.2.tar.gz) = 5e3be17673ed6b7da359a4636bd1e6961b4e58acb2dd7d219f9aaab377a4c84d
+SIZE (streamlink-2.1.2.tar.gz) = 509287
diff --git a/multimedia/streamlink/pkg-descr b/multimedia/streamlink/pkg-descr
index 827c2b475c9f..11e71973f472 100644
--- a/multimedia/streamlink/pkg-descr
+++ b/multimedia/streamlink/pkg-descr
@@ -1,7 +1,12 @@
-Streamlink is a CLI utility which pipes video streams from various services into a video player, such as VLC.
+Streamlink is a command-line utility that pipes video streams from various
+services into a video player, such as VLC.
-The main purpose of streamlink is to avoid resource-heavy and unoptimized websites, while still allowing the user to enjoy various streamed content.
+The main purpose of Streamlink is to allow the user to avoid buggy and CPU
+heavy flash plugins but still be able to enjoy various streamed content.
-Streamlink is a fork of the Livestreamer project.
+There is also an API available for developers who want access to the video
+stream data.
+
+This project was forked from Livestreamer, which is no longer maintained.
WWW: https://streamlink.github.io/