import hamster-applet 2.24.2

Project Hamster is time tracking for masses. It helps you to keep track
on how much time you have spent during the day on activities you have
set up. At the beginning you define some activities you do, like
"hacking GNOME", "listening to Humppa", "hurling beer", "pretend to be
hacking" and so on, and, whenever you change from doing one task to
other, you change your current activity in Hamster. After a while you
can see some statistics of how many hours you have spent on what. Some
nice reports and graphical statistics will help you keep time tracking
fun.

ok ajacoutot@
This commit is contained in:
jasper 2008-11-24 23:15:54 +00:00
parent fce7dbe60a
commit 3c1951d197
6 changed files with 227 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/11/24 23:15:54 jasper Exp $
COMMENT= time tracker applet for GNOME
GNOME_PROJECT= hamster-applet
GNOME_VERSION= 2.24.2
CATEGORIES= productivity
HOMEPAGE= http://live.gnome.org/ProjectHamster
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig \
freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 \
glitz gmodule-2.0 gobject-2.0 gtk-x11-2.0 m pango-1.0 \
pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png z
MODULES= devel/gettext \
lang/python \
x11/gnome
USE_X11= Yes
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= :python-sqlite-${MODPY_VERSION}*:lang/python/${MODPY_VERSION},-sqlite \
::x11/gnome/controlcenter2 \
::x11/gnome/py-gnome-desktop
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/hamster-applet
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
PYTHON="${MODPY_BIN}"
pre-configure:
${SUBST_CMD} ${WRKSRC}/hamster/hamster-applet.py
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (gnome/hamster-applet-2.24.2.tar.bz2) = t1TzlTxqoe9Ig43oEmANqA==
RMD160 (gnome/hamster-applet-2.24.2.tar.bz2) = a0iH0/SfqCCWB99q9E2q3alHAXA=
SHA1 (gnome/hamster-applet-2.24.2.tar.bz2) = RdEUuDEeynYcn69mjRxr8OKdaPw=
SHA256 (gnome/hamster-applet-2.24.2.tar.bz2) = K9DxS1QhGTEG/Y07ohx6WIC9o0jh6kv1iebFGs/bT20=
SIZE (gnome/hamster-applet-2.24.2.tar.bz2) = 401252

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-hamster___init___py,v 1.1.1.1 2008/11/24 23:15:54 jasper Exp $
--- hamster/__init__.py.orig Mon Nov 24 22:42:07 2008
+++ hamster/__init__.py Mon Nov 24 22:42:10 2008
@@ -75,6 +75,13 @@ if not exists(HAMSTER_DB):
print "Database not found in %s - installing default from %s!" % (HAMSTER_DB, SHARED_DATA_DIR)
copyfile(join(SHARED_DATA_DIR, DB_FILE), HAMSTER_DB)
+# In case we created the file read-only, change the mode.
+if exists(HAMSTER_DB):
+ try:
+ os.chmod(HAMSTER_DB, 0664)
+ except Exception , msg:
+ print 'Error:could not change mode on %s!' % (HAMSTER_DB)
+
# Init storage
dispatcher = Dispatcher()

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-hamster_hamster-applet_py,v 1.1.1.1 2008/11/24 23:15:54 jasper Exp $
--- hamster/hamster-applet.py.orig Tue Oct 28 20:56:08 2008
+++ hamster/hamster-applet.py Mon Nov 24 21:43:57 2008
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!${MODPY_BIN}
# - coding: utf-8 -
# Copyright (C) 2007, 2008 Toms Bauģis <toms.baugis at gmail.com>
@@ -50,11 +50,6 @@ gettext.bindtextdomain('hamster-applet', abspath(join(
if hasattr(gettext, 'bind_textdomain_codeset'):
gettext.bind_textdomain_codeset('hamster-applet','UTF-8')
gettext.textdomain('hamster-applet')
-
-locale.bindtextdomain('hamster-applet', abspath(join(hamster.defs.DATA_DIR, "locale")))
-if hasattr(locale, 'bind_textdomain_codeset'):
- locale.bind_textdomain_codeset('hamster-applet','UTF-8')
-locale.textdomain('hamster-applet')
hamster.__init_db()
import hamster.applet

View File

@ -0,0 +1,9 @@
Project Hamster is time tracking for masses. It helps you to keep track
on how much time you have spent during the day on activities you have
set up. At the beginning you define some activities you do, like
"hacking GNOME", "listening to Humppa", "hurling beer", "pretend to be
hacking" and so on, and, whenever you change from doing one task to
other, you change your current activity in Hamster. After a while you
can see some statistics of how many hours you have spent on what. Some
nice reports and graphical statistics will help you keep time tracking
fun.

View File

@ -0,0 +1,133 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/11/24 23:15:54 jasper Exp $
lib/bonobo/servers/Hamster_Applet.server
lib/hamster-applet/
lib/hamster-applet/hamster-applet
lib/python${MODPY_VERSION}/site-packages/hamster/
lib/python${MODPY_VERSION}/site-packages/hamster/Configuration.py
lib/python${MODPY_VERSION}/site-packages/hamster/Configuration.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/Configuration.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/KeyBinder.py
lib/python${MODPY_VERSION}/site-packages/hamster/KeyBinder.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/KeyBinder.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/__init__.py
lib/python${MODPY_VERSION}/site-packages/hamster/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/__init__.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/about.py
lib/python${MODPY_VERSION}/site-packages/hamster/about.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/about.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/add_custom_fact.py
lib/python${MODPY_VERSION}/site-packages/hamster/add_custom_fact.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/add_custom_fact.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/applet.py
lib/python${MODPY_VERSION}/site-packages/hamster/applet.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/applet.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/charting.py
lib/python${MODPY_VERSION}/site-packages/hamster/charting.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/charting.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/db.py
lib/python${MODPY_VERSION}/site-packages/hamster/db.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/db.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/defs.py
lib/python${MODPY_VERSION}/site-packages/hamster/defs.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/defs.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/dispatcher.py
lib/python${MODPY_VERSION}/site-packages/hamster/dispatcher.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/dispatcher.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/eds.py
lib/python${MODPY_VERSION}/site-packages/hamster/eds.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/eds.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/idle.py
lib/python${MODPY_VERSION}/site-packages/hamster/idle.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/idle.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/keybinder/
lib/python${MODPY_VERSION}/site-packages/hamster/keybinder/__init__.py
lib/python${MODPY_VERSION}/site-packages/hamster/keybinder/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/keybinder/__init__.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/keybinder/_keybinder.a
lib/python${MODPY_VERSION}/site-packages/hamster/keybinder/_keybinder.la
lib/python${MODPY_VERSION}/site-packages/hamster/keybinder/_keybinder.so
lib/python${MODPY_VERSION}/site-packages/hamster/preferences.py
lib/python${MODPY_VERSION}/site-packages/hamster/preferences.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/preferences.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/reports.py
lib/python${MODPY_VERSION}/site-packages/hamster/reports.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/reports.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/stats.py
lib/python${MODPY_VERSION}/site-packages/hamster/stats.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/stats.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/storage.py
lib/python${MODPY_VERSION}/site-packages/hamster/storage.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/storage.pyo
lib/python${MODPY_VERSION}/site-packages/hamster/stuff.py
lib/python${MODPY_VERSION}/site-packages/hamster/stuff.pyc
lib/python${MODPY_VERSION}/site-packages/hamster/stuff.pyo
share/gnome-control-center/keybindings/99-hamster-applet.xml
share/hamster-applet/
share/hamster-applet/Hamster_Applet.xml
share/hamster-applet/add_custom_fact.glade
share/hamster-applet/art/
share/hamster-applet/art/hamster-applet.png
share/hamster-applet/art/stock_calendar-view-day.png
share/hamster-applet/art/stock_calendar-view-month.png
share/hamster-applet/art/stock_calendar-view-week.png
share/hamster-applet/hamster.db
share/hamster-applet/menu.glade
share/hamster-applet/preferences.glade
share/hamster-applet/stats.glade
share/icons/hicolor/16x16/apps/hamster-applet.png
share/icons/hicolor/22x22/apps/hamster-applet.png
share/icons/hicolor/32x32/apps/hamster-applet.png
share/icons/hicolor/48x48/apps/hamster-applet.png
share/icons/hicolor/scalable/apps/hamster-applet.svg
share/locale/ar/LC_MESSAGES/hamster-applet.mo
share/locale/bg/LC_MESSAGES/hamster-applet.mo
share/locale/bn_IN/LC_MESSAGES/hamster-applet.mo
share/locale/ca/LC_MESSAGES/hamster-applet.mo
share/locale/cs/LC_MESSAGES/hamster-applet.mo
share/locale/da/LC_MESSAGES/hamster-applet.mo
share/locale/de/LC_MESSAGES/hamster-applet.mo
share/locale/el/LC_MESSAGES/hamster-applet.mo
share/locale/en_GB/LC_MESSAGES/hamster-applet.mo
share/locale/es/LC_MESSAGES/hamster-applet.mo
share/locale/et/LC_MESSAGES/hamster-applet.mo
share/locale/eu/LC_MESSAGES/hamster-applet.mo
share/locale/fi/LC_MESSAGES/hamster-applet.mo
share/locale/fr/LC_MESSAGES/hamster-applet.mo
share/locale/gl/LC_MESSAGES/hamster-applet.mo
share/locale/gu/LC_MESSAGES/hamster-applet.mo
share/locale/he/LC_MESSAGES/hamster-applet.mo
share/locale/hi/LC_MESSAGES/hamster-applet.mo
share/locale/hu/LC_MESSAGES/hamster-applet.mo
share/locale/it/LC_MESSAGES/hamster-applet.mo
share/locale/ja/LC_MESSAGES/hamster-applet.mo
share/locale/kn/LC_MESSAGES/hamster-applet.mo
share/locale/ko/LC_MESSAGES/hamster-applet.mo
share/locale/lt/LC_MESSAGES/hamster-applet.mo
share/locale/lv/LC_MESSAGES/hamster-applet.mo
share/locale/mk/LC_MESSAGES/hamster-applet.mo
share/locale/ml/LC_MESSAGES/hamster-applet.mo
share/locale/mr/LC_MESSAGES/hamster-applet.mo
share/locale/nb/LC_MESSAGES/hamster-applet.mo
share/locale/nl/LC_MESSAGES/hamster-applet.mo
share/locale/pa/LC_MESSAGES/hamster-applet.mo
share/locale/pl/LC_MESSAGES/hamster-applet.mo
share/locale/pt/LC_MESSAGES/hamster-applet.mo
share/locale/pt_BR/LC_MESSAGES/hamster-applet.mo
share/locale/ru/LC_MESSAGES/hamster-applet.mo
share/locale/sl/LC_MESSAGES/hamster-applet.mo
share/locale/sq/LC_MESSAGES/hamster-applet.mo
share/locale/sr/LC_MESSAGES/hamster-applet.mo
share/locale/sr@latin/LC_MESSAGES/hamster-applet.mo
share/locale/sv/LC_MESSAGES/hamster-applet.mo
share/locale/ta/LC_MESSAGES/hamster-applet.mo
share/locale/th/LC_MESSAGES/hamster-applet.mo
share/locale/tr/LC_MESSAGES/hamster-applet.mo
share/locale/zh_CN/LC_MESSAGES/hamster-applet.mo
share/locale/zh_HK/LC_MESSAGES/hamster-applet.mo
share/locale/zh_TW/LC_MESSAGES/hamster-applet.mo
@unexec GCONF_CONFIG_SOURCE=`%D/bin/gconftool-2 --get-default-source` %D/bin/gconftool-2 --makefile-uninstall-rule %D/share/schemas/hamster-applet/*.schemas > /dev/null
share/schemas/hamster-applet/
share/schemas/hamster-applet/hamster-applet.schemas
@exec GCONF_CONFIG_SOURCE=`%D/bin/gconftool-2 --get-default-source` %D/bin/gconftool-2 --makefile-install-rule %D/share/schemas/hamster-applet/*.schemas > /dev/null
@exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true
@unexec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true