- fix the invest applet

This commit is contained in:
ajacoutot 2008-11-27 13:42:19 +00:00
parent 62d03977aa
commit 2a9c1d59bd
2 changed files with 22 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.50 2008/11/25 08:19:43 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.51 2008/11/27 13:42:19 ajacoutot Exp $
COMMENT-main= applets for use with the GNOME panel
COMMENT-battstat= GNOME applet for monitoring battery level
@ -6,7 +6,7 @@ COMMENT-battstat= GNOME applet for monitoring battery level
GNOME_PROJECT= gnome-applets
GNOME_VERSION= 2.24.2
PKGNAME-main= gnome-applets2-${VERSION}
PKGNAME-main= gnome-applets2-${VERSION}p0
PKGNAME-battstat= gnome-applets2-battstat-${VERSION}
CATEGORIES= x11
@ -76,7 +76,8 @@ WANTLIB-main= ${WANTLIB} \
pre-configure:
${SUBST_CMD} ${WRKSRC}/configure \
${WRKSRC}/invest-applet/invest/invest-chart
${WRKSRC}/invest-applet/invest/invest-chart \
${WRKSRC}/invest-applet/invest/invest-applet.py
.if !${FLAVOR:L:Mno_battstat}
post-install:

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-invest-applet_invest_invest-applet_py,v 1.1 2008/11/27 13:42:20 ajacoutot Exp $
--- invest-applet/invest/invest-applet.py.orig Wed Sep 24 01:47:18 2008
+++ invest-applet/invest/invest-applet.py Thu Nov 27 14:21:02 2008
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!${MODPY_BIN}
#
import gobject
@@ -25,8 +25,6 @@ import invest, invest.applet, invest.defs
import gettext, locale
gettext.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.GNOMELOCALEDIR)
gettext.textdomain(invest.defs.GETTEXT_PACKAGE)
-locale.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.GNOMELOCALEDIR)
-locale.textdomain(invest.defs.GETTEXT_PACKAGE)
from gettext import gettext as _