From 56c9ac8599599d95367f4504dd2c6b75e317dd80 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Sat, 6 Dec 2008 00:59:42 +0000 Subject: Fix path to python interpreter in hamster-applet, and copy hamster.db with proper permissions to home directory. Bump PKGREVISION. --- time/hamster-applet/Makefile | 9 ++++++++- time/hamster-applet/distinfo | 3 ++- time/hamster-applet/patches/patch-aa | 13 +++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 time/hamster-applet/patches/patch-aa (limited to 'time') 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 -- cgit v1.2.3