From 2a9c1d59bdb08c2f81c00267245063b756bbdf85 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Thu, 27 Nov 2008 13:42:19 +0000 Subject: [PATCH] - fix the invest applet --- x11/gnome/applets2/Makefile | 7 ++++--- ...patch-invest-applet_invest_invest-applet_py | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 x11/gnome/applets2/patches/patch-invest-applet_invest_invest-applet_py diff --git a/x11/gnome/applets2/Makefile b/x11/gnome/applets2/Makefile index 7ee71468036..78aa5831f92 100644 --- a/x11/gnome/applets2/Makefile +++ b/x11/gnome/applets2/Makefile @@ -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: diff --git a/x11/gnome/applets2/patches/patch-invest-applet_invest_invest-applet_py b/x11/gnome/applets2/patches/patch-invest-applet_invest_invest-applet_py new file mode 100644 index 00000000000..3f288d7fc4a --- /dev/null +++ b/x11/gnome/applets2/patches/patch-invest-applet_invest_invest-applet_py @@ -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 _ +