Date: Mon, 27 Apr 2020 12:57:23 +0000 (UTC) From: Matthias Andree <mandree@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533133 - in head/multimedia: . streamlink Message-ID: <202004271257.03RCvNMx064650@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mandree Date: Mon Apr 27 12:57:22 2020 New Revision: 533133 URL: https://svnweb.freebsd.org/changeset/ports/533133 Log: New port multimedia/streamlink 1.4.1. ---------------------------------------------------------------------------- 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 allow the user to avoid buggy and CPU heavy flash plugins but still be able to enjoy various streamed content. 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/ ---------------------------------------------------------------------------- Over the original submission, add these changes: - limit to Python 3.5+ because 241566 was lacking the four requisites (one not even in the ports tree before) needed additionally on 2.7, and upstream deprecated Python 2.7 support - add support for make test (TEST_DEPENDS=, do-test:) - add a PYCOUNTRY port option with a "magic" default that will be enabled while textproc/py-iso3166 (new -> Bugzilla #241565) is missing and use py-country instead of py-iso-639 and py-iso3166. So this port no longer depends on PR 241565. PR: 241566 Submitted by: takefu@airport.fm (new maintainer) Added: head/multimedia/streamlink/ head/multimedia/streamlink/Makefile (contents, props changed) head/multimedia/streamlink/distinfo (contents, props changed) head/multimedia/streamlink/pkg-descr (contents, props changed) Modified: head/multimedia/Makefile Modified: head/multimedia/Makefile ============================================================================== --- head/multimedia/Makefile Mon Apr 27 12:50:08 2020 (r533132) +++ head/multimedia/Makefile Mon Apr 27 12:57:22 2020 (r533133) @@ -390,6 +390,7 @@ SUBDIR += snappy SUBDIR += spigot SUBDIR += spook + SUBDIR += streamlink SUBDIR += subsync SUBDIR += subtitlecomposer SUBDIR += subtitleoffsetmodifier Added: head/multimedia/streamlink/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/streamlink/Makefile Mon Apr 27 12:57:22 2020 (r533133) @@ -0,0 +1,51 @@ +# $FreeBSD$ + +PORTNAME= streamlink +PORTVERSION= 1.4.1 +CATEGORIES= multimedia +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= takefu@airport.fm +COMMENT= Command-line utility that pipes video streams + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}isodate>0:devel/py-isodate@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pycryptodome>=3.4.3:security/py-pycryptodome@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}websocket-client>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} + +# The upstream port would in theory support python 2.7, but deprecates use of streamlink +# on it, there are 4 additional RUN_DEPENDS, and also one of the self-tests fails on 2.7 +# but not 3.7, and is encoding-related, so to avoid run-time issues, limit to >= 3.5. +USES= python:3.5+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= PYCOUNTRY +OPTIONS_DEFAULT= +.if !exists(../../textproc/py-iso3166/Makefile) +OPTIONS_DEFAULT+= PYCOUNTRY +.endif +PYCOUNTRY_DESC= Use pycountry instead of py-iso-639 and py-iso3166 + +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 + +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> Added: head/multimedia/streamlink/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/streamlink/distinfo Mon Apr 27 12:57:22 2020 (r533133) @@ -0,0 +1,3 @@ +TIMESTAMP = 1587983605 +SHA256 (streamlink-1.4.1.tar.gz) = ed3278d18f17e473bf3b35c8943da9dc19a37d43ba6b8122e260d3f0d14485e8 +SIZE (streamlink-1.4.1.tar.gz) = 720299 Added: head/multimedia/streamlink/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/streamlink/pkg-descr Mon Apr 27 12:57:22 2020 (r533133) @@ -0,0 +1,12 @@ +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 allow the user to avoid buggy and CPU +heavy flash plugins but still be able to enjoy various streamed content. + +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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004271257.03RCvNMx064650>