FreeBSD Bugzilla – Attachment 155254 Details for
Bug 199216
[PATCH] audio/py-karaoke: Fix runtime error on 9.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
audio_py-karaoke.diff
audio_py-karaoke.diff (text/plain), 4.09 KB, created by
tkato432
on 2015-04-06 18:37:34 UTC
(
hide
)
Description:
audio_py-karaoke.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2015-04-06 18:37:34 UTC
Size:
4.09 KB
patch
obsolete
>diff -urN /usr/ports/audio/py-karaoke/Makefile audio/py-karaoke/Makefile >--- /usr/ports/audio/py-karaoke/Makefile 2015-03-22 20:16:49.177619000 +0900 >+++ audio/py-karaoke/Makefile 2015-04-07 00:00:00.000000000 +0900 >@@ -3,7 +3,7 @@ > > PORTNAME= karaoke > PORTVERSION= 0.7.5 >-PORTREVISION= 8 >+PORTREVISION= 9 > CATEGORIES= audio python > MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION} > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >@@ -14,28 +14,40 @@ > > LICENSE= LGPL21 # (or later) > >-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:${PORTSDIR}/devel/py-game >+BUILD_DEPENDS= ${PYGAME} > LIB_DEPENDS= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \ > libaa.so:${PORTSDIR}/graphics/aalib >-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:${PORTSDIR}/devel/py-game \ >- dejavu>0:${PORTSDIR}/x11-fonts/dejavu \ >+RUN_DEPENDS= dejavu>0:${PORTSDIR}/x11-fonts/dejavu \ >+ ${PYGAME} \ > ${PYNUMPY} > >-USES= desktop-file-utils iconv python:2 zip >-USE_SDL= sdl >+USES= compiler:c++11-lib desktop-file-utils iconv python:2 zip > USE_XORG= x11 xau xcb xdmcp >+USE_SDL= sdl >+USE_PYTHON= distutils autoplist > USE_WX= 3.0+ > WX_COMPS= python:lib > >-USE_PYTHON= distutils autoplist >- > DATADIR= ${PREFIX}/share/py${PORTNAME} > >-OPTIONS_DEFINE= MUTAGEN >+PLIST_FILES= ${BIN_SCRIPTS:S,^,bin/,} \ >+ ${DATA_FONTS:S,^,%%DATADIR%%/fonts/,} >+ >+OPTIONS_DEFINE= MUTAGEN > > MUTAGEN_DESC= Mutagen support > MUTAGEN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:${PORTSDIR}/audio/py-mutagen > >+BIN_SCRIPTS= cdg2mpg pycdg pykar pykaraoke pykaraoke_mini pympg >+DATA_FONTS= DejaVuSans.ttf DejaVuSansCondensed.ttf \ >+ DejaVuSansCondensed-Bold.ttf >+ >+.include <bsd.port.pre.mk> >+ >+.if ${CHOSEN_COMPILER_TYPE} == gcc >+MAKE_ENV+= LD_LIBRARY_PATH="${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH" >+.endif >+ > post-patch: > @${REINPLACE_CMD} -e \ > 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.cfg >@@ -49,12 +61,35 @@ > /^Categories=/s|Application;||' ${WRKSRC}/install/${i} > .endfor > >+post-build: >+ @${MKDIR} ${WRKDIR}/wrappers >+.for i in ${BIN_SCRIPTS} >+ @${ECHO_CMD} -n \ >+ >> ${WRKDIR}/wrappers/${i} >+ @${ECHO_CMD} '#!/bin/sh' \ >+ >> ${WRKDIR}/wrappers/${i} >+.if ${CHOSEN_COMPILER_TYPE} == gcc >+ @${ECHO_CMD} 'LD_LIBRARY_PATH="${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH"' \ >+ >> ${WRKDIR}/wrappers/${i} >+ @${ECHO_CMD} 'export LD_LIBRARY_PATH' \ >+ >> ${WRKDIR}/wrappers/${i} >+ @${ECHO_CMD} \ >+ >> ${WRKDIR}/wrappers/${i} >+.endif >+ @${ECHO_CMD} 'exec ${PREFIX}/libexec/${i} "$$@"' \ >+ >> ${WRKDIR}/wrappers/${i} >+.endfor >+ > post-install: >+.for i in ${BIN_SCRIPTS} >+ (cd ${WRKDIR}/wrappers && ${INSTALL_SCRIPT} ${i} \ >+ ${STAGEDIR}${PREFIX}/bin) >+.endfor > @${MKDIR} ${STAGEDIR}${DATADIR}/fonts >-.for i in DejaVuSans.ttf DejaVuSansCondensed-Bold.ttf DejaVuSansCondensed.ttf >+.for i in ${DATA_FONTS} > @${LN} -sf ${LOCALBASE}/share/fonts/dejavu/${i} \ > ${STAGEDIR}${DATADIR}/fonts > .endfor > @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pycdgAux.so > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >diff -urN /usr/ports/audio/py-karaoke/files/patch-setup.py audio/py-karaoke/files/patch-setup.py >--- /usr/ports/audio/py-karaoke/files/patch-setup.py 2014-06-21 17:54:10.000000000 +0900 >+++ audio/py-karaoke/files/patch-setup.py 2015-04-07 00:00:00.000000000 +0900 >@@ -1,6 +1,6 @@ > --- setup.py.orig 2011-06-15 03:59:31.000000000 +0900 > +++ setup.py 2012-09-28 07:03:50.000000000 +0900 >-@@ -61,12 +61,7 @@ >+@@ -61,17 +61,12 @@ > 'icons/microphone.ico', > 'icons/microphone.png', > 'icons/pykaraoke.xpm', >@@ -14,3 +14,9 @@ > > # These data files only make sense on Unix-like systems. > if env != ENV_WINDOWS: >+ data_files += [ >+- ('bin', ['install/pykaraoke', >++ ('libexec', ['install/pykaraoke', >+ 'install/pykaraoke_mini', >+ 'install/pycdg', >+ 'install/pykar', >diff -urN /usr/ports/audio/py-karaoke/pkg-plist audio/py-karaoke/pkg-plist >--- /usr/ports/audio/py-karaoke/pkg-plist 2014-10-20 19:21:23.000000000 +0900 >+++ audio/py-karaoke/pkg-plist 1970-01-01 09:00:00.000000000 +0900 >@@ -1,3 +0,0 @@ >-%%DATADIR%%/fonts/DejaVuSans.ttf >-%%DATADIR%%/fonts/DejaVuSansCondensed-Bold.ttf >-%%DATADIR%%/fonts/DejaVuSansCondensed.ttf
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 199216
:
155254
|
159490