From owner-svn-ports-all@freebsd.org Mon Apr 27 12:57:24 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4D7442B78B8; Mon, 27 Apr 2020 12:57:24 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 499lDN1CQkz40Xm; Mon, 27 Apr 2020 12:57:24 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1FF5CAA9E; Mon, 27 Apr 2020 12:57:24 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03RCvNSa064654; Mon, 27 Apr 2020 12:57:23 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03RCvNMx064650; Mon, 27 Apr 2020 12:57:23 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <202004271257.03RCvNMx064650@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Mon, 27 Apr 2020 12:57:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533133 - in head/multimedia: . streamlink X-SVN-Group: ports-head X-SVN-Commit-Author: mandree X-SVN-Commit-Paths: in head/multimedia: . streamlink X-SVN-Commit-Revision: 533133 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 12:57:24 -0000 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 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/