summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--deskutils/alacarte/Makefile5
-rw-r--r--deskutils/alacarte/files/patch-Alacarte_util.py29
2 files changed, 32 insertions, 2 deletions
diff --git a/deskutils/alacarte/Makefile b/deskutils/alacarte/Makefile
index e3dd8b55d..5bc16db7f 100644
--- a/deskutils/alacarte/Makefile
+++ b/deskutils/alacarte/Makefile
@@ -3,7 +3,7 @@
# Whom: FreeBSD GNOME Team
#
# $FreeBSD$
-# $MCom: ports/deskutils/alacarte/Makefile,v 1.3 2006/07/27 13:45:11 marcus Exp $
+# $MCom: ports/deskutils/alacarte/Makefile,v 1.4 2006/07/28 20:55:55 mezz Exp $
PORTNAME= alacarte
PORTVERSION= 0.9.90
@@ -29,7 +29,8 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
- ${WRKSRC}/Alacarte/DialogHandler.py
+ ${WRKSRC}/Alacarte/DialogHandler.py \
+ ${WRKSRC}/Alacarte/util.py
@${REINPLACE_CMD} -e 's|gmsgfmt|msgfmt|g' \
${WRKSRC}/configure
diff --git a/deskutils/alacarte/files/patch-Alacarte_util.py b/deskutils/alacarte/files/patch-Alacarte_util.py
new file mode 100644
index 000000000..49825a343
--- /dev/null
+++ b/deskutils/alacarte/files/patch-Alacarte_util.py
@@ -0,0 +1,29 @@
+--- Alacarte/util.py.orig Fri Jul 28 17:10:40 2006
++++ Alacarte/util.py Fri Jul 28 17:15:42 2006
+@@ -138,7 +138,7 @@ def getItemPath(file_id):
+ file_path = os.path.join(system_path, 'applications', file_id)
+ if os.path.isfile(file_path):
+ return file_path
+- file_path = os.path.join('/', 'usr', 'share', 'applications', file_id)
++ file_path = os.path.join('/', '/usr/local', 'share', 'gnome', 'applications', file_id)
+ if os.path.isfile(file_path):
+ return file_path
+ return False
+@@ -163,7 +163,7 @@ def getDirectoryPath(file_id):
+ file_path = os.path.join(system_path, 'desktop-directories', file_id)
+ if os.path.isfile(file_path):
+ return file_path
+- file_path = os.path.join('/', 'usr', 'share', 'desktop-directories', file_id)
++ file_path = os.path.join('/', '/usr/local', 'share', 'gnome', 'desktop-directories', file_id)
+ if os.path.isfile(file_path):
+ return file_path
+ return False
+@@ -183,7 +183,7 @@ def getSystemMenuPath(file_name):
+ for system_path in os.environ['XDG_CONFIG_DIRS'].split(':'):
+ if os.path.isfile(os.path.join(system_path, 'menus', file_name)):
+ return os.path.join(system_path, file_name)
+- file_path = os.path.join('/', 'etc', 'xdg', 'menus', file_name)
++ file_path = os.path.join('/', '/usr/local', 'etc', 'xdg', 'menus', file_name)
+ if os.path.isfile(file_path):
+ return file_path
+ return False