Skip to content

Commit

Permalink
audio/py-pyradio: Fix a runtime error (missing icon)
Browse files Browse the repository at this point in the history
- When notifications are enabled and the user doesn't have a custom icon
  the program raises a Python Exception, because it doesn't find the default one.
  The patch was provided by Spiros Georgaras (upstream) via email.

- Bump PORTREVISION
  • Loading branch information
nivit committed Jan 30, 2023
1 parent 23b8649 commit d7dd628
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion audio/py-pyradio/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pyradio
DISTVERSION= 0.9.0
PORTREVISION= 1
CATEGORIES= audio python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

Expand Down Expand Up @@ -47,9 +48,11 @@ MPV_RUN_DEPENDS+= mpv:multimedia/mpv
VLC_RUN_DEPENDS+= vlc:multimedia/vlc

post-patch:
${SED} -i.bak -e 's/\(distro =\) None/\1 ${OPSYS}/' \
@${SED} -i.bak -e 's/\(distro =\) None/\1 ${OPSYS}/' \
-e 's/\(enable_notifications =\) -1/\1 0/' \
${WRKSRC}/pyradio/config
@${SED} -i.bak -e "s,/usr/local/share/icons\(/pyradio.png\),${PREFIX}/share/pixmaps\1,1" \
${WRKSRC}/pyradio/log.py

post-install:
${INSTALL_DATA} ${WRKSRC}/devel/${PORTNAME}.desktop \
Expand Down

0 comments on commit d7dd628

Please sign in to comment.