Hi, Here an update for py-pafy.
As no ports currently uses it, I switched it to py3, so it could use its youtube-dl backend. It provides a ytdl script, but the interest of pafy is in providing youtube API in a python module. Thanks. -- Sebastien Marie Index: Makefile =================================================================== RCS file: /cvs/ports/multimedia/py-pafy/Makefile,v retrieving revision 1.6 diff -u -p -r1.6 Makefile --- Makefile 23 May 2017 11:11:16 -0000 1.6 +++ Makefile 18 Nov 2018 11:32:54 -0000 @@ -1,6 +1,6 @@ # $OpenBSD: Makefile,v 1.6 2017/05/23 11:11:16 benoit Exp $ -MODPY_EGG_VERSION = 0.5.3.1 +MODPY_EGG_VERSION = 0.5.4 COMMENT = download YouTube content and retrieve metadata DISTNAME = pafy-${MODPY_EGG_VERSION} PKGNAME = py-pafy-${MODPY_EGG_VERSION} @@ -14,9 +14,9 @@ PERMIT_PACKAGE_CDROM = Yes MODULES = lang/python MODPY_SETUPTOOLS = Yes MODPY_PI = Yes -MODPY_PI_DIR = p/pafy -pre-configure: - perl -pi -e "s,xprint\(xenc,print(xenc,g" ${WRKSRC}/scripts/ytdl +MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3} + +RUN_DEPENDS += www/youtube-dl .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/multimedia/py-pafy/distinfo,v retrieving revision 1.3 diff -u -p -r1.3 distinfo --- distinfo 23 May 2017 11:11:16 -0000 1.3 +++ distinfo 18 Nov 2018 08:37:42 -0000 @@ -1,2 +1,2 @@ -SHA256 (pafy-0.5.3.1.tar.gz) = NeZP9JW11i8x9loxrAym3Bqznh295NB7HgSEWlLs7ag= -SIZE (pafy-0.5.3.1.tar.gz) = 25636 +SHA256 (pafy-0.5.4.tar.gz) = 6ELcWJozmocLWGnMOALy6Vgk7fNH9lEoIjzV69/yECQ= +SIZE (pafy-0.5.4.tar.gz) = 27393 Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/multimedia/py-pafy/pkg/PLIST,v retrieving revision 1.3 diff -u -p -r1.3 PLIST --- pkg/PLIST 23 May 2017 11:11:16 -0000 1.3 +++ pkg/PLIST 18 Nov 2018 11:34:29 -0000 @@ -8,20 +8,23 @@ lib/python${MODPY_VERSION}/site-packages lib/python${MODPY_VERSION}/site-packages/pafy-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt lib/python${MODPY_VERSION}/site-packages/pafy-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt lib/python${MODPY_VERSION}/site-packages/pafy/__init__.py -lib/python${MODPY_VERSION}/site-packages/pafy/__init__.pyc +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}/ +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}backend_internal.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}backend_shared.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}backend_youtube_dl.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}channel.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}g.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}jsinterp.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}pafy.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}playlist.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pafy/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}pyc lib/python${MODPY_VERSION}/site-packages/pafy/backend_internal.py -lib/python${MODPY_VERSION}/site-packages/pafy/backend_internal.pyc lib/python${MODPY_VERSION}/site-packages/pafy/backend_shared.py -lib/python${MODPY_VERSION}/site-packages/pafy/backend_shared.pyc lib/python${MODPY_VERSION}/site-packages/pafy/backend_youtube_dl.py -lib/python${MODPY_VERSION}/site-packages/pafy/backend_youtube_dl.pyc +lib/python${MODPY_VERSION}/site-packages/pafy/channel.py lib/python${MODPY_VERSION}/site-packages/pafy/g.py -lib/python${MODPY_VERSION}/site-packages/pafy/g.pyc lib/python${MODPY_VERSION}/site-packages/pafy/jsinterp.py -lib/python${MODPY_VERSION}/site-packages/pafy/jsinterp.pyc lib/python${MODPY_VERSION}/site-packages/pafy/pafy.py -lib/python${MODPY_VERSION}/site-packages/pafy/pafy.pyc lib/python${MODPY_VERSION}/site-packages/pafy/playlist.py -lib/python${MODPY_VERSION}/site-packages/pafy/playlist.pyc lib/python${MODPY_VERSION}/site-packages/pafy/util.py -lib/python${MODPY_VERSION}/site-packages/pafy/util.pyc