Lines 1-8
Link Here
|
1 |
PORTNAME= streamlink |
1 |
PORTNAME= streamlink |
2 |
PORTVERSION= 2.1.2 |
2 |
PORTVERSION= 5.5.1 |
3 |
PORTREVISION= 1 |
|
|
4 |
CATEGORIES= multimedia |
3 |
CATEGORIES= multimedia |
5 |
MASTER_SITES= PYPI |
4 |
MASTER_SITES= CHEESESHOP |
6 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
|
6 |
|
8 |
MAINTAINER= takefu@airport.fm |
7 |
MAINTAINER= takefu@airport.fm |
Lines 12-48
WWW= https://streamlink.github.io/
Link Here
|
12 |
LICENSE= BSD2CLAUSE |
11 |
LICENSE= BSD2CLAUSE |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
|
13 |
|
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}isodate>0:devel/py-isodate@${PY_FLAVOR} \ |
14 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=45.0.0:devel/py-setuptools@${PY_FLAVOR}\ |
16 |
${PYTHON_PKGNAMEPREFIX}pycryptodome>=3.4.3:security/py-pycryptodome@${PY_FLAVOR} \ |
15 |
${PYTHON_PKGNAMEPREFIX}versioningit>=2.0.0:devel/py-versioningit@${PY_FLAVOR}\ |
17 |
${PYTHON_PKGNAMEPREFIX}pysocks>0:net/py-pysocks@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} |
18 |
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ |
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR}\ |
19 |
${PYTHON_PKGNAMEPREFIX}websocket-client>=0.58.0:www/py-websocket-client@${PY_FLAVOR} |
18 |
${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR}\ |
20 |
|
19 |
${PYTHON_PKGNAMEPREFIX}isodate>0:devel/py-isodate@${PY_FLAVOR}\ |
21 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports>0:devel/py-backports@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}lxml>=4.6.4:devel/py-lxml@${PY_FLAVOR}\ |
22 |
${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}pycryptodome>=3.4.3:security/py-pycryptodome@${PY_FLAVOR}\ |
23 |
${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}pysocks>1.5.7:net/py-pysocks@${PY_FLAVOR}\ |
24 |
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}requests>2.26.0:www/py-requests@${PY_FLAVOR}\ |
25 |
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}websocket-client>=1.2.1:www/py-websocket-client@${PY_FLAVOR} |
|
|
25 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports>0:devel/py-backports@${PY_FLAVOR}\ |
26 |
${PYTHON_PKGNAMEPREFIX}flake8>0:devel/py-flake8@${PY_FLAVOR}\ |
27 |
${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR}\ |
28 |
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}\ |
29 |
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}\ |
30 |
${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR}\ |
26 |
${PYTHON_PKGNAMEPREFIX}requests-mock>0:www/py-requests-mock@${PY_FLAVOR} |
31 |
${PYTHON_PKGNAMEPREFIX}requests-mock>0:www/py-requests-mock@${PY_FLAVOR} |
27 |
|
32 |
|
28 |
USES= python:3.6+ |
33 |
USES= python:3.7+ |
29 |
USE_PYTHON= autoplist concurrent distutils |
34 |
USE_PYTHON= autoplist concurrent distutils |
30 |
|
|
|
31 |
NO_ARCH= yes |
35 |
NO_ARCH= yes |
32 |
|
36 |
OPTIONS_DEFINE= FFMPEG RTMPDUMP |
33 |
OPTIONS_DEFINE= FFMPEG PYCOUNTRY RTMPDUMP |
|
|
34 |
OPTIONS_DEFAULT= FFMPEG RTMPDUMP |
37 |
OPTIONS_DEFAULT= FFMPEG RTMPDUMP |
35 |
.if !exists(../../textproc/py-iso3166/Makefile) |
38 |
FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg |
36 |
OPTIONS_DEFAULT+= PYCOUNTRY |
39 |
RTMPDUMP_RUN_DEPENDS= rtmpdump:multimedia/rtmpdump |
37 |
.endif |
|
|
38 |
PYCOUNTRY_DESC= Use pycountry instead of py-iso-639 and py-iso3166 |
39 |
|
40 |
FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg |
41 |
PYCOUNTRY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR} |
42 |
PYCOUNTRY_RUN_DEPENDS_OFF= ${PYTHON_PKGNAMEPREFIX}iso-639>0:textproc/py-iso-639@${PY_FLAVOR} \ |
43 |
${PYTHON_PKGNAMEPREFIX}iso3166>0:textproc/py-iso3166@${PY_FLAVOR} |
44 |
PYCOUNTRY_MAKE_ENV= STREAMLINK_USE_PYCOUNTRY=1 |
45 |
RTMPDUMP_RUN_DEPENDS= rtmpdump:multimedia/rtmpdump |
46 |
|
40 |
|
47 |
do-test: .PHONY |
41 |
do-test: .PHONY |
48 |
cd ${WRKSRC} && ${SETENV} PYTHONPATH=${WRKSRC}/src ${PYTHON_CMD} -u -m pytest -v -ra \ |
42 |
cd ${WRKSRC} && ${SETENV} PYTHONPATH=${WRKSRC}/src ${PYTHON_CMD} -u -m pytest -v -ra \ |