Changeset View
Changeset View
Standalone View
Standalone View
www/py-pafy/Makefile
# Created by: Nicola Vitale <nivit@FreeBSD.org> | # Created by: Nicola Vitale <nivit@FreeBSD.org> | ||||
PORTNAME= pafy | PORTNAME= pafy | ||||
PORTVERSION= 0.5.5 | PORTVERSION= 0.5.5 | ||||
PORTREVISION= 0 | PORTREVISION= 1 | ||||
CATEGORIES= www | CATEGORIES= www | ||||
MASTER_SITES= CHEESESHOP | MASTER_SITES= CHEESESHOP | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= nivit@FreeBSD.org | MAINTAINER= nivit@FreeBSD.org | ||||
COMMENT= Python API for YouTube | COMMENT= Python API for YouTube | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
# At the moment the internal backend does not work | # At the moment the internal backend does not work | ||||
BUILD_DEPENDS= youtube_dl>=2016.02.22:www/youtube_dl | BUILD_DEPENDS= yt-dlp:www/yt-dlp | ||||
RUN_DEPENDS= youtube_dl>=2016.02.22:www/youtube_dl | RUN_DEPENDS= yt-dlp:www/yt-dlp | ||||
USES= python:3.6+ | USES= python:3.6+ | ||||
USE_PYTHON= autoplist concurrent distutils | USE_PYTHON= autoplist concurrent distutils | ||||
post-patch: | post-patch: | ||||
@(cd ${WRKSRC}/${PORTNAME} && \ | @(cd ${WRKSRC}/${PORTNAME} && \ | ||||
${REINPLACE_CMD} "s,%%LOCALBASE%%,${LOCALBASE},1" pafy.py backend_youtube_dl.py) | ${REINPLACE_CMD} "s,%%LOCALBASE%%,${LOCALBASE},1" pafy.py backend_youtube_dl.py) | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |