From aae465d6ededb7014bf902670cb9f661c2c3cd73 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 5 Aug 2024 01:08:45 +0800 Subject: [PATCH] net/py-casttube: Add missing RUN_DEPENDS - Update WWW - Convert to USE_PYTHON=pep517 - Add NO_ARCH - Update pkg-descr - Bump PORTREVISION for dependency and package change - Take maintainership --- net/py-casttube/Makefile | 18 +++++++++++++----- net/py-casttube/files/patch-setup.py | 10 ++++++++++ net/py-casttube/pkg-descr | 15 +++++++-------- 3 files changed, 30 insertions(+), 13 deletions(-) create mode 100644 net/py-casttube/files/patch-setup.py diff --git a/net/py-casttube/Makefile b/net/py-casttube/Makefile index 659b48ab342e..3faabd0bd050 100644 --- a/net/py-casttube/Makefile +++ b/net/py-casttube/Makefile @@ -1,16 +1,24 @@ PORTNAME= casttube -DISTVERSION= 0.2.1 +PORTVERSION= 0.2.1 +PORTREVISION= 1 CATEGORIES= net python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= ports@freebsd.org -COMMENT= YouTube Chromecast api -WWW= https://pypi.org/project/casttube/ +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= YouTube Chromecast API +WWW= https://github.com/ur1katz/casttube LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes .include diff --git a/net/py-casttube/files/patch-setup.py b/net/py-casttube/files/patch-setup.py new file mode 100644 index 000000000000..9d437ac9f6c8 --- /dev/null +++ b/net/py-casttube/files/patch-setup.py @@ -0,0 +1,10 @@ +--- setup.py.orig 2020-04-08 12:40:53 UTC ++++ setup.py +@@ -12,7 +12,6 @@ setup(name='casttube', + author='Uri Katz', + author_email='4urikatz@gmail.com', + license='MIT', +- data_files = [("", ["LICENSE"])], + packages=['casttube'], + zip_safe=False, + keywords = ['youtube', 'chromecast', 'youtube-api'], diff --git a/net/py-casttube/pkg-descr b/net/py-casttube/pkg-descr index ce73cfd47ebd..ae2813e05ffe 100644 --- a/net/py-casttube/pkg-descr +++ b/net/py-casttube/pkg-descr @@ -1,10 +1,9 @@ -casttube provides a way to interact with the YouTube Chromecast API. +CastTube provides a way to interact with the Youtube Chromecast API. Features: - -* Play video -* Play a playlist -* Add video to the end of the play queue -* Play next -* Remove video -* Clear the entire queue +- Play video +- Play a playlist +- Add video to the end of the play queue +- Play next +- Remove video +- Clear the entire queue