Use SYSCONFDIR.
This commit is contained in:
parent
9c2eeffa38
commit
5e638812db
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2009/11/14 14:16:23 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 2009/11/20 08:45:21 ajacoutot Exp $
|
||||
|
||||
COMMENT= python library to access freedesktop.org standards
|
||||
|
||||
MODPY_EGG_VERSION= 0.18
|
||||
DISTNAME= pyxdg-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-xdg-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-xdg-${MODPY_EGG_VERSION}p0
|
||||
|
||||
CATEGORIES= devel
|
||||
|
||||
|
12
devel/py-xdg/patches/patch-xdg_Menu_py
Normal file
12
devel/py-xdg/patches/patch-xdg_Menu_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-xdg_Menu_py,v 1.5 2009/11/20 08:45:21 ajacoutot Exp $
|
||||
--- xdg/Menu.py.orig Fri Nov 20 09:42:48 2009
|
||||
+++ xdg/Menu.py Fri Nov 20 09:43:04 2009
|
||||
@@ -503,7 +503,7 @@ def parse(filename=None):
|
||||
filename = __getFileName(candidate)
|
||||
|
||||
if not filename:
|
||||
- raise ParsingError('File not found', "/etc/xdg/menus/%s" % candidate)
|
||||
+ raise ParsingError('File not found', "${SYSCONFDIR}/xdg/menus/%s" % candidate)
|
||||
|
||||
# check if it is a .menu file
|
||||
if not os.path.splitext(filename)[1] == ".menu":
|
Loading…
Reference in New Issue
Block a user