summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-02 22:38:55 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-02 22:38:55 +0800
commit470a0da5baf3c062fa815c5e45697bc28275959e (patch)
tree54ba5f567276a3bd3846127adbce4f300e3673de
parent18f8492a218851d028498dfa5e01783772398b7b (diff)
downloadmarcuscom-ports-470a0da5baf3c062fa815c5e45697bc28275959e.tar
marcuscom-ports-470a0da5baf3c062fa815c5e45697bc28275959e.tar.gz
marcuscom-ports-470a0da5baf3c062fa815c5e45697bc28275959e.tar.bz2
marcuscom-ports-470a0da5baf3c062fa815c5e45697bc28275959e.tar.lz
marcuscom-ports-470a0da5baf3c062fa815c5e45697bc28275959e.tar.xz
marcuscom-ports-470a0da5baf3c062fa815c5e45697bc28275959e.tar.zst
marcuscom-ports-470a0da5baf3c062fa815c5e45697bc28275959e.zip
- Add fallback to gnome-applications.menu if nothing else is found
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7184 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--devel/py-xdg/Makefile4
-rw-r--r--devel/py-xdg/files/patch-xdg_Menu.py13
2 files changed, 15 insertions, 2 deletions
diff --git a/devel/py-xdg/Makefile b/devel/py-xdg/Makefile
index 9db344c02..631b4265a 100644
--- a/devel/py-xdg/Makefile
+++ b/devel/py-xdg/Makefile
@@ -3,12 +3,12 @@
# Whom: michael johnson <ahze@ahze.net>
#
# $FreeBSD$
-# $MCom: ports-stable/devel/py-xdg/Makefile,v 1.4 2005/08/12 00:08:44 ahze Exp $
+# $MCom: ports/devel/py-xdg/Makefile,v 1.1 2006/09/01 20:58:00 ahze Exp $
#
PORTNAME= xdg
PORTVERSION= 0.15
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= http://www.freedesktop.org/~lanius/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-xdg/files/patch-xdg_Menu.py b/devel/py-xdg/files/patch-xdg_Menu.py
new file mode 100644
index 000000000..186fda591
--- /dev/null
+++ b/devel/py-xdg/files/patch-xdg_Menu.py
@@ -0,0 +1,13 @@
+--- xdg/Menu.py.orig Thu Aug 11 07:37:48 2005
++++ xdg/Menu.py Sat Sep 2 05:10:19 2006
+@@ -494,6 +494,10 @@
+ if not filename:
+ filename = __getFileName("applications.menu")
+
++ # use gnome if no filename given
++ if not filename:
++ filename = __getFileName("gnome-applications.menu")
++
+ if not filename:
+ raise ParsingError('File not found', "/etc/xdg/menus/applications.menu")
+