From nobody Sat Dec 10 13:51:59 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NTq7g6h8Rz4kThM; Sat, 10 Dec 2022 13:51:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NTq7g68mpz4KPr; Sat, 10 Dec 2022 13:51:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670680319; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UwTozyC/sh48LdoLjSf1u9MzpPlEMd0xdpMgxR+zw1s=; b=bdaJQuWoJNtsY1u/4yH3FDQKY7amAiZfVm/TSN1V+3qSEwCERHMT3/iGnvcKMHXiz9s4XU 0uw4k6IZNA1nA93drxqdOdcVgIpwpxRzIKdqPsoNN3EqSYAeM1UlmGiBKXUVWUNHXOAQsf l8hszwx4tEUvKs3GVCbwijsXpB35F2ZmJfuZu15b8cgBCDJFtFI7+NDry44/GFlU4gZDlW p6Z4gvhin8kn6VdVW1av52dEVO69gdOo8UwbYlkSYgocOxA52oJjVSO1okjFpZkmmjL3FZ 9MHNupAoRru2jYg8Gt1d4Hu0czrRWFA8Qeq+/3eCoNbJ1nvvDy3v8xzPzzvNWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670680319; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UwTozyC/sh48LdoLjSf1u9MzpPlEMd0xdpMgxR+zw1s=; b=Iyqz3YiJcOmx84atDHFzYpFOctUkRWM2QhwraCVUc/76eWKM+q6R4HuXMaPOTj2FeQ7m46 qcCoc75l3I2jGw1oBKI0y1D9jljtSWqWE0yQEEvzSDKQFBEidZV3rjm9jwyZA24zMbGSM5 iMfeq5xzWJhgNgJd551JIFwAE7peZwftTn77dG7XpewQGsbF/V+qFzFabNwT6tWZwO+77Z v7URml87+ADIPk1LrETTJJWPd6kkFFegruxjJphC4B5mCBfjSzJS4xeA+5poDmOtRhH+tU ijGeict+4ZPgDuLUnP7cj70YLLm/gpLK1iyqS6p7LXb1hyJ4umjed7NWXcf1SQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670680319; a=rsa-sha256; cv=none; b=HGyg3PfoG8JWgsvjaFsPQVbQ6JDxWBNNntmloz9T35mdPSEMY089dcMRtZcOzrYhDghSJw P+zqueWVpMtqPeuojHjcQopiQLffllt7daZxAw/Sh86ZrRtFPkXaISNY4ZFNmoomr36Bjs wqUTrE541gPJoUM3xtdLopkrY36ubCTFeP/gd2oJXW5MI89J8LrD2+9DJ7z2wTVyFDr4/i Z47dSfGiVEpobF5gQd4tXDFgOnpiEG1R5l1WlCg9NzklNKJChgZ/h2STde9sqa8vl4uEn3 oVCXBGxIeGIehddYX6lKi9yDyQIisYTRpjMoxUINuUrJA/JI8xF3ZyEpY5qreA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NTq7g5FrSzJ0k; Sat, 10 Dec 2022 13:51:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BADpxml087178; Sat, 10 Dec 2022 13:51:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BADpx3s087177; Sat, 10 Dec 2022 13:51:59 GMT (envelope-from git) Date: Sat, 10 Dec 2022 13:51:59 GMT Message-Id: <202212101351.2BADpx3s087177@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: 584a88ad2575 - main - audio/py-pyradio: Update to 0.8.9.32 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 584a88ad25752c63b8951cf38fe8ab418942fb2d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=584a88ad25752c63b8951cf38fe8ab418942fb2d commit 584a88ad25752c63b8951cf38fe8ab418942fb2d Author: Nicola Vitale AuthorDate: 2022-12-10 13:48:15 +0000 Commit: Nicola Vitale CommitDate: 2022-12-10 13:50:25 +0000 audio/py-pyradio: Update to 0.8.9.32 - Install additional files (.desktop and icon) - Add a post-patch target to set up default configuration - Add desktop-file-utils to USES Changelog: https://github.com/coderholic/pyradio/releases/tag/0.8.9.32 --- audio/py-pyradio/Makefile | 17 ++++++++++++++--- audio/py-pyradio/distinfo | 6 +++--- audio/py-pyradio/files/patch-pyradio_ping.py | 20 ++++++++++---------- 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/audio/py-pyradio/Makefile b/audio/py-pyradio/Makefile index db7e65364794..9d82a06aedab 100644 --- a/audio/py-pyradio/Makefile +++ b/audio/py-pyradio/Makefile @@ -1,5 +1,5 @@ PORTNAME= pyradio -DISTVERSION= 0.8.9.31 +DISTVERSION= 0.8.9.32 CATEGORIES= audio python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -21,11 +21,13 @@ RUN_DEPENDS= ${PKGNAMEPREFIX}dnspython>=2.2.1:dns/py-dnspython@${PY_FLAVOR} \ ${PKGNAMEPREFIX}wheel>=0.38.4:devel/py-wheel@${PY_FLAVOR} \ bash:shells/bash -USES= python:3.7+ +USES= desktop-file-utils python:3.7+ USE_GITHUB= yes GH_ACCOUNT= coderholic USE_PYTHON= autoplist distutils +PLIST_FILES= share/applications/${PORTNAME}.desktop \ + share/pixmaps/${PORTNAME}.png PORTDOCS= * OPTIONS_DEFINE= DOCS @@ -43,9 +45,18 @@ 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/' \ + ${WRKSRC}/pyradio/config + post-install-DOCS-on: - ${MKDIR} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/pyradio*.1 ${STAGEDIR}${MANPREFIX}/man/man1 ${INSTALL_DATA} ${WRKSRC}/*.html ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/devel/${PORTNAME}.desktop \ + ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}.desktop + ${INSTALL_DATA} ${WRKSRC}/devel/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png .include diff --git a/audio/py-pyradio/distinfo b/audio/py-pyradio/distinfo index ad54fa8f4cee..c77e29f2bf02 100644 --- a/audio/py-pyradio/distinfo +++ b/audio/py-pyradio/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1669451407 -SHA256 (coderholic-pyradio-0.8.9.31_GH0.tar.gz) = f5787d002f4bb891dc00421934c93ab42f6afa616dd51773cc53f775b16112a2 -SIZE (coderholic-pyradio-0.8.9.31_GH0.tar.gz) = 629976 +TIMESTAMP = 1670604676 +SHA256 (coderholic-pyradio-0.8.9.32_GH0.tar.gz) = d86f13849151aa9ea5d40310cfb827a3bd7138e8809affa9a0442fbc427b5df6 +SIZE (coderholic-pyradio-0.8.9.32_GH0.tar.gz) = 635875 diff --git a/audio/py-pyradio/files/patch-pyradio_ping.py b/audio/py-pyradio/files/patch-pyradio_ping.py index fe35285c2b92..2ce6336c4c71 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-11-25 15:21:16 UTC +--- pyradio/ping.py.orig 2022-12-09 15:36:15 UTC +++ pyradio/ping.py -@@ -35,7 +35,7 @@ def linux_ping(server, count=1, timeout_in_seconds=1): - -1: error - ''' - try: -- r=subprocess.Popen(['ping', '-c', str(count), '-w', str(timeout_in_seconds), server ], stdout=subprocess.PIPE).stdout.read() -+ r=subprocess.Popen(['ping', '-c', str(count), '-t', str(timeout_in_seconds), server ], stdout=subprocess.PIPE).stdout.read() - # print(r) - return 0 if '100%' in str(r) else 1 - except: +@@ -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