diff --git a/audio/py-pyradio/Makefile b/audio/py-pyradio/Makefile index a6b3fe5d630e..d91624dfa18f 100644 --- a/audio/py-pyradio/Makefile +++ b/audio/py-pyradio/Makefile @@ -1,80 +1,80 @@ PORTNAME= pyradio -DISTVERSION= 0.9.3.11.3 +DISTVERSION= 0.9.3.11.4 PORTREVISION= 0 CATEGORIES= audio python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Curses based Internet radio player WWW= https://github.com/coderholic/pyradio LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PKGNAMEPREFIX}dnspython>=2.2.1:dns/py-dnspython@${PY_FLAVOR} \ ${PKGNAMEPREFIX}netifaces>=0.11.0:net/py-netifaces@${PY_FLAVOR} \ ${PKGNAMEPREFIX}psutil>=5.9.2:sysutils/py-psutil@${PY_FLAVOR} \ ${PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PKGNAMEPREFIX}requests>=2.28.1:www/py-requests@${PY_FLAVOR} \ ${PKGNAMEPREFIX}wheel>=0.38.4:devel/py-wheel@${PY_FLAVOR} \ bash:shells/bash RUN_DEPENDS= ${PKGNAMEPREFIX}dnspython>=2.2.1:dns/py-dnspython@${PY_FLAVOR} \ ${PKGNAMEPREFIX}netifaces>=0.11.0:net/py-netifaces@${PY_FLAVOR} \ ${PKGNAMEPREFIX}psutil>=5.9.2:sysutils/py-psutil@${PY_FLAVOR} \ ${PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PKGNAMEPREFIX}requests>=2.28.1:www/py-requests@${PY_FLAVOR} \ ${PKGNAMEPREFIX}rich>=13.3.2:textproc/py-rich@${PY_FLAVOR} \ ${PKGNAMEPREFIX}wheel>=0.38.4:devel/py-wheel@${PY_FLAVOR} \ bash:shells/bash \ xdg-open:devel/xdg-utils USES= python USE_GITHUB= yes GH_ACCOUNT= coderholic USE_PYTHON= autoplist pep517 NO_ARCH= yes PLIST_FILES= share/applications/${PORTNAME}.desktop \ share/pixmaps/${PORTNAME}.png PORTDOCS= * OPTIONS_DEFINE= DOCS METADATA OPTIONS_DEFAULT= METADATA MPV OPTIONS_SINGLE= MEDIA_PLAYER OPTIONS_SINGLE_MEDIA_PLAYER= MPLAYER MPV VLC METADATA_DESC= Insert tags, chapters and cover into recordings # override predefined *_DESC MPV_DESC= Mpv media player support VLC_DESC= VLC media player support DOCS_PLIST_FILES= share/man/man1/pyradio-client.1.gz \ share/man/man1/pyradio.1.gz \ share/man/man1/pyradio_rb.1.gz \ share/man/man1/pyradio_rec.1.gz \ share/man/man1/pyradio_server.1.gz METADATA_RUN_DEPENDS+= mkvinfo:multimedia/mkvtoolnix@nogui MPLAYER_RUN_DEPENDS+= mplayer:multimedia/mplayer MPV_RUN_DEPENDS+= mpv:multimedia/mpv VLC_RUN_DEPENDS+= vlc:multimedia/vlc post-patch: @${SED} -i.bak -e 's/\(distro =\) None/\1 ${OPSYS}/' \ -e 's/\(enable_notifications =\) -1/\1 0/' \ -e 's/\(remove_station_icons =\) True/\1 False/' \ -e 's/\(xdg_compliant =\) False/\1 True/' \ ${WRKSRC}/pyradio/config post-install: ${INSTALL_DATA} ${WRKSRC}/devel/${PORTNAME}.desktop \ ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}.desktop ${INSTALL_DATA} ${WRKSRC}/devel/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/pyradio*.1 ${STAGEDIR}${PREFIX}/share/man/man1 ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR}/ .include diff --git a/audio/py-pyradio/distinfo b/audio/py-pyradio/distinfo index e09f8424bfdf..737fc13faad4 100644 --- a/audio/py-pyradio/distinfo +++ b/audio/py-pyradio/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1733492092 -SHA256 (coderholic-pyradio-0.9.3.11.3_GH0.tar.gz) = 3d28b2977c8d4179b4e95678f544af06c98e171731c91f4919d7a6c3017ba669 -SIZE (coderholic-pyradio-0.9.3.11.3_GH0.tar.gz) = 1526952 +TIMESTAMP = 1737277606 +SHA256 (coderholic-pyradio-0.9.3.11.4_GH0.tar.gz) = 6f74783cb06fffff9d1875bb3bede4f710cedbf8755b42d59bc2d5d020a7180d +SIZE (coderholic-pyradio-0.9.3.11.4_GH0.tar.gz) = 1547353 diff --git a/audio/py-pyradio/files/patch-pyradio_ping.py b/audio/py-pyradio/files/patch-pyradio_ping.py index 2ce6336c4c71..87cbdd370315 100644 --- a/audio/py-pyradio/files/patch-pyradio_ping.py +++ b/audio/py-pyradio/files/patch-pyradio_ping.py @@ -1,11 +1,11 @@ ---- pyradio/ping.py.orig 2022-12-09 15:36:15 UTC +--- pyradio/ping.py.orig 2025-01-18 18:10:46 UTC +++ pyradio/ping.py -@@ -49,7 +49,7 @@ def linux_ping(server, count=1, timeout_in_seconds=1): - return 0 if '100%' in out[0] else 1 - else: - r=subprocess.Popen( -- ['ping', '-c', str(count), '-w', -+ ['ping', '-c', str(count), '-t', - str(timeout_in_seconds), server], - stderr=subprocess.DEVNULL, - stdout=subprocess.PIPE +@@ -42,7 +42,7 @@ def linux_ping(server, count=1, timeout_in_seconds=1): + ''' + try: + r = subprocess.Popen( +- ['ping', '-c', str(count), '-w', ++ ['ping', '-c', str(count), '-t', + str(timeout_in_seconds), server], + stderr=subprocess.DEVNULL, + stdout=subprocess.PIPE