Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2020 15:47:49 +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: r533145 - head/multimedia/streamlink
Message-ID:  <202004271547.03RFlnPm070397@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mandree
Date: Mon Apr 27 15:47:49 2020
New Revision: 533145
URL: https://svnweb.freebsd.org/changeset/ports/533145

Log:
  multimedia/streamlink: add missing requisites
  
  https://streamlink.github.io/install.html#dependencies
  
  - py-pysocks is a mandatory dependency (the import isn't guarded
    by try...except)
  - ffmpeg and rtmpdump are formally optional,
    but required for high-profile streaming sites, make them
    options enabled by default
  - add PORTREVISION=1 to pull pysocks in.

Modified:
  head/multimedia/streamlink/Makefile

Modified: head/multimedia/streamlink/Makefile
==============================================================================
--- head/multimedia/streamlink/Makefile	Mon Apr 27 14:43:28 2020	(r533144)
+++ head/multimedia/streamlink/Makefile	Mon Apr 27 15:47:49 2020	(r533145)
@@ -2,6 +2,7 @@
 
 PORTNAME=	streamlink
 PORTVERSION=	1.4.1
+PORTREVISION=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,6 +15,7 @@ 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}pysocks>0:net/py-pysocks${PY_FLAVOUR} \
 		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}websocket-client>0:www/py-websocket-client@${PY_FLAVOR}
 
@@ -32,17 +34,19 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-OPTIONS_DEFINE=		PYCOUNTRY
-OPTIONS_DEFAULT=
+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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004271547.03RFlnPm070397>