summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorjmcneill <jmcneill>2008-12-06 00:59:42 +0000
committerjmcneill <jmcneill>2008-12-06 00:59:42 +0000
commitb7a4e794b80b289b549b4876a0b92effae318ac9 (patch)
treec8a3a65c8f8f56d54be5c8cdd87bf84163ba7b42 /time
parentd0112efa88091a86bec7f6a3e330c440956d32f1 (diff)
downloadpkgsrc-b7a4e794b80b289b549b4876a0b92effae318ac9.tar.gz
Fix path to python interpreter in hamster-applet, and copy hamster.db
with proper permissions to home directory. Bump PKGREVISION.
Diffstat (limited to 'time')
-rw-r--r--time/hamster-applet/Makefile9
-rw-r--r--time/hamster-applet/distinfo3
-rw-r--r--time/hamster-applet/patches/patch-aa13
3 files changed, 23 insertions, 2 deletions
diff --git a/time/hamster-applet/Makefile b/time/hamster-applet/Makefile
index 6ab84e49451..0a644362a77 100644
--- a/time/hamster-applet/Makefile
+++ b/time/hamster-applet/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/12/02 22:36:35 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2008/12/06 00:59:42 jmcneill Exp $
#
DISTNAME= hamster-applet-2.24.2
+PKGREVISION= 1
CATEGORIES= time
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/hamster-applet/2.24/}
@@ -18,6 +19,12 @@ USE_TOOLS+= gmake intltool pkg-config
GCONF_SCHEMAS+= hamster-applet.schemas
PY_PATCHPLIST= yes
+SUBST_CLASSES+= python
+SUBST_MESSAGE.python= Fixing path to Python interpreter.
+SUBST_STAGE.python= post-patch
+SUBST_FILES.python= hamster/hamster-applet.py
+SUBST_SED.python= -e 's@/usr/bin/env python@${PYTHONBIN}@g'
+
.include "../../lang/python/extension.mk"
.if ${PYPKGPREFIX} == "py24"
diff --git a/time/hamster-applet/distinfo b/time/hamster-applet/distinfo
index 96daa102a65..c22ceca6987 100644
--- a/time/hamster-applet/distinfo
+++ b/time/hamster-applet/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/12/02 22:36:35 wiz Exp $
+$NetBSD: distinfo,v 1.2 2008/12/06 00:59:42 jmcneill Exp $
SHA1 (hamster-applet-2.24.2.tar.gz) = 32f5ca5aa861604ec89689d7f1b4d49573d650d6
RMD160 (hamster-applet-2.24.2.tar.gz) = b4ddde48eec65f7f717be76fe484f2283b0fc76f
Size (hamster-applet-2.24.2.tar.gz) = 482374 bytes
+SHA1 (patch-aa) = 0bcbf0a0894b3bb506ddee5dec8f0ee858f2d12b
diff --git a/time/hamster-applet/patches/patch-aa b/time/hamster-applet/patches/patch-aa
new file mode 100644
index 00000000000..ebd43f7100c
--- /dev/null
+++ b/time/hamster-applet/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2008/12/06 00:59:42 jmcneill Exp $
+
+--- hamster/__init__.py.orig 2008-10-25 17:15:16.000000000 -0400
++++ hamster/__init__.py
+@@ -22,7 +22,7 @@
+
+ import os, sys
+ from os.path import join, exists, isdir, isfile, dirname, abspath, expanduser
+-from shutil import copy as copyfile
++from shutil import copyfile
+
+ import gtk, gnome.ui
+ from gtk import glade