freebsd-ports/www/py-pafy/Makefile
Joseph Mingrone 80e4e8275e
Ports that depend on youtube-dl: Depend on yt-dlp
yt-dlp [1] is a youtube-dl fork with additional features and fixes.  For
ports that depend on www/youtube-dl switch the dependency to www/yt-dlp.
For ports that have an optional dependency on www/youtube-dl, create a
new OPTIONS_RADIO that includes www/yt-dlp and make it the default.

[1] https://github.com/yt-dlp/yt-dlp

Other changes:
- www/yt-dlp: Turn the symlink option on by default
- www/py-pafy: Fix build when depending on www/yt-dlp

PR:		259944
Reported by:	Oleh Vinichenko <moonlapse81@gmail.com>
Reviewed by:	diizzy, Oleh Vinichenko <moonlapse81@gmail.com>,
		VVD <vvd@unislabs.com>
Approved by:	0mp, adridg (kde@), rm, tcberner (multimedia@),
		yuri (maintainers)
		acm and nivit (maintainers, timeout)
Differential Revision:	https://reviews.freebsd.org/D33090
2021-12-06 10:09:50 -04:00

26 lines
588 B
Makefile

# 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>