1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

- Fix i18n instead completely disable it.

- Fix runtime of gnome-time-tracker and hamster-standalone.
- Bump the PORTREVISION.

PR:		ports/150948
Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru>
This commit is contained in:
Jeremy Messenger 2010-10-01 02:50:11 +00:00
parent 9ff89ca99f
commit a1ea154256
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=262224
11 changed files with 111 additions and 55 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= hamster-applet
PORTVERSION= 2.30.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= deskutils gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2

View File

@ -0,0 +1,16 @@
--- src/hamster/widgets/activityentry.py 2010-06-22 13:59:09.000000000 +0400
+++ src/hamster/widgets/activityentry.py 2010-09-26 01:29:25.000000000 +0400
@@ -20,10 +20,10 @@
import gtk, gobject
import datetime as dt
-from .hamster.configuration import runtime
+from hamster.configuration import runtime
-from .hamster import stuff
-from .hamster.stuff import format_duration
+from hamster import stuff
+from hamster.stuff import format_duration
class ActivityEntry(gtk.Entry):
__gsignals__ = {

View File

@ -0,0 +1,11 @@
--- src/hamster/widgets/dateinput.py 2010-06-04 20:53:24.000000000 +0400
+++ src/hamster/widgets/dateinput.py 2010-09-26 01:30:30.000000000 +0400
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Project Hamster. If not, see <http://www.gnu.org/licenses/>.
-from .hamster.stuff import format_duration
+from hamster.stuff import format_duration
import gtk
import datetime as dt
import calendar

View File

@ -0,0 +1,13 @@
--- src/hamster/widgets/dayline.py 2010-06-22 13:59:09.000000000 +0400
+++ src/hamster/widgets/dayline.py 2010-09-26 01:31:11.000000000 +0400
@@ -20,8 +20,8 @@
import gtk
import gobject
-from .hamster import stuff
-from .hamster import graphics
+from hamster import stuff
+from hamster import graphics
import time
import datetime as dt

View File

@ -0,0 +1,13 @@
--- src/hamster/widgets/facttree.py 2010-06-22 13:59:09.000000000 +0400
+++ src/hamster/widgets/facttree.py 2010-09-26 01:31:57.000000000 +0400
@@ -20,8 +20,8 @@
import gtk, gobject
import datetime as dt
-from .hamster import stuff
-from .hamster.stuff import format_duration, format_activity
+from hamster import stuff
+from hamster.stuff import format_duration, format_activity
from tags import Tag
import pango

View File

@ -0,0 +1,14 @@
--- src/hamster/widgets/tags.py 2010-06-22 13:59:09.000000000 +0400
+++ src/hamster/widgets/tags.py 2010-09-26 01:32:32.000000000 +0400
@@ -21,9 +21,9 @@
import pango, cairo
from math import pi
-from .hamster import graphics
+from hamster import graphics
-from .hamster.configuration import runtime
+from hamster.configuration import runtime
class TagsEntry(gtk.Entry):
__gsignals__ = {

View File

@ -0,0 +1,11 @@
--- src/hamster/widgets/timechart.py 2010-06-22 13:59:09.000000000 +0400
+++ src/hamster/widgets/timechart.py 2010-09-26 01:33:04.000000000 +0400
@@ -20,7 +20,7 @@
import os # for locale
import gtk, pango
-from .hamster import graphics
+from hamster import graphics
import time, datetime as dt
import calendar

View File

@ -0,0 +1,11 @@
--- src/hamster/widgets/timeinput.py 2010-06-04 20:53:24.000000000 +0400
+++ src/hamster/widgets/timeinput.py 2010-09-26 01:33:38.000000000 +0400
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with Project Hamster. If not, see <http://www.gnu.org/licenses/>.
-from .hamster.stuff import format_duration
+from hamster.stuff import format_duration
import gtk
from gtk import keysyms
import datetime as dt

View File

@ -1,22 +1,11 @@
--- src/gnome-time-tracker.orig 2010-06-24 16:14:42.000000000 -0500
+++ src/gnome-time-tracker 2010-06-24 16:15:22.000000000 -0500
@@ -524,13 +524,13 @@
from hamster import defs
--- src/gnome-time-tracker 2010-06-22 13:59:09.000000000 +0400
+++ src/gnome-time-tracker 2010-09-26 01:52:16.000000000 +0400
@@ -525,7 +525,7 @@
# Setup i18n
- locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
- for module in (gettext, locale):
- module.bindtextdomain('hamster-applet', locale_dir)
- module.textdomain('hamster-applet')
+# locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
+# for module in (gettext, locale):
+# module.bindtextdomain('hamster-applet', locale_dir)
+# module.textdomain('hamster-applet')
+ for module in (gettext,):
module.bindtextdomain('hamster-applet', locale_dir)
module.textdomain('hamster-applet')
- if hasattr(module, 'bind_textdomain_codeset'):
- module.bind_textdomain_codeset('hamster-applet','UTF-8')
+# if hasattr(module, 'bind_textdomain_codeset'):
+# module.bind_textdomain_codeset('hamster-applet','UTF-8')
gtk.gdk.threads_init()
app = ProjectHamster()

View File

@ -1,22 +1,11 @@
--- src/hamster-applet.py.orig 2010-01-29 17:37:34.000000000 +0800
+++ src/hamster-applet.py 2010-01-29 17:38:21.000000000 +0800
@@ -95,13 +95,13 @@ if __name__ == "__main__":
from hamster.configuration import runtime, dialogs
--- src/hamster-applet.py 2010-06-22 13:59:09.000000000 +0400
+++ src/hamster-applet.py 2010-09-26 01:52:33.000000000 +0400
@@ -96,7 +96,7 @@
# Setup i18n
- locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
- for module in (gettext, locale):
- module.bindtextdomain('hamster-applet', locale_dir)
- module.textdomain('hamster-applet')
+# locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
+# for module in (gettext, locale):
+# module.bindtextdomain('hamster-applet', locale_dir)
+# module.textdomain('hamster-applet')
- if hasattr(module, 'bind_textdomain_codeset'):
- module.bind_textdomain_codeset('hamster-applet','UTF-8')
+# if hasattr(module, 'bind_textdomain_codeset'):
+# module.bind_textdomain_codeset('hamster-applet','UTF-8')
gtk.window_set_default_icon_name("hamster-applet")
+ for module in (gettext,):
module.bindtextdomain('hamster-applet', locale_dir)
module.textdomain('hamster-applet')

View File

@ -1,22 +1,11 @@
--- src/hamster-standalone.orig 2010-06-24 16:14:54.000000000 -0500
+++ src/hamster-standalone 2010-06-24 16:15:43.000000000 -0500
@@ -524,13 +524,13 @@
from hamster import defs
--- src/hamster-standalone 2010-06-22 13:59:09.000000000 +0400
+++ src/hamster-standalone 2010-09-26 01:52:50.000000000 +0400
@@ -525,7 +525,7 @@
# Setup i18n
- locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
- for module in (gettext, locale):
- module.bindtextdomain('hamster-applet', locale_dir)
- module.textdomain('hamster-applet')
+# locale_dir = os.path.abspath(os.path.join(defs.DATA_DIR, "locale"))
+# for module in (gettext, locale):
+# module.bindtextdomain('hamster-applet', locale_dir)
+# module.textdomain('hamster-applet')
+ for module in (gettext,):
module.bindtextdomain('hamster-applet', locale_dir)
module.textdomain('hamster-applet')
- if hasattr(module, 'bind_textdomain_codeset'):
- module.bind_textdomain_codeset('hamster-applet','UTF-8')
+# if hasattr(module, 'bind_textdomain_codeset'):
+# module.bind_textdomain_codeset('hamster-applet','UTF-8')
gtk.gdk.threads_init()
app = ProjectHamster()