Quick and dirty patch to solve the bug in Picard when we use the command

"pydoc -k". Also make the regress target works.

from Amaury Gauthier (maintainer)
This commit is contained in:
ajacoutot 2009-07-19 09:06:43 +00:00
parent a4e80472aa
commit 355ab9e3b8
2 changed files with 21 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/07/12 20:43:22 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.2 2009/07/19 09:06:43 ajacoutot Exp $
COMMENT = automatic audio files tagger
MODPY_EGG_VERSION = 0.11
DISTNAME = picard-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME}p0
CATEGORIES = audio
@ -58,4 +59,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/contrib/plugins/${file} ${PREFIX}/share/picard/${file}
.endfor
do-regress:
cd ${WRKSRC} && ${MODPY_BIN} ./setup.py build_ext -i test
.include <bsd.port.mk>

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-picard_const_py,v 1.1 2009/07/19 09:06:43 ajacoutot Exp $
Quick and dirty patch to solve the bug in Picard when we use the command
"pydoc -k". Also make the regress target works.
--- picard/const.py.orig Sat Jul 18 00:02:45 2009
+++ picard/const.py Sat Jul 18 00:03:23 2009
@@ -17,6 +17,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+import __builtin__
+__builtin__.__dict__['N_'] = lambda a: a
# Host for PUID submissions
PUID_SUBMIT_HOST = "musicbrainz.org"