aboutsummaryrefslogtreecommitdiff
path: root/www/py-pafy/Makefile
blob: c788dc28603b6e711258d5898815fe00439d5483 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Created by: Nicola Vitale <nivit@FreeBSD.org>

PORTNAME=	pafy
PORTVERSION=	0.5.5
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	Python API for YouTube

LICENSE=	GPLv3

# At the moment the internal backend does not work
BUILD_DEPENDS=	yt-dlp:www/yt-dlp
RUN_DEPENDS=	yt-dlp:www/yt-dlp

USES=	python:3.6+
USE_PYTHON=	autoplist concurrent distutils

post-patch:
	@(cd ${WRKSRC}/${PORTNAME} && \
	${REINPLACE_CMD} "s,%%LOCALBASE%%,${LOCALBASE},1" pafy.py backend_youtube_dl.py)

.include <bsd.port.mk>