diff --git a/devel/py-xdg/Makefile b/devel/py-xdg/Makefile index 42e77b9ffb3..d339722788b 100644 --- a/devel/py-xdg/Makefile +++ b/devel/py-xdg/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2008/10/30 14:19:24 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.4 2008/10/30 14:23:31 ajacoutot Exp $ COMMENT= python library to access freedesktop.org standards @@ -24,6 +24,6 @@ MODULES= lang/python NO_REGRESS= Yes pre-configure: - ${SUBST_CMD} ${WRKSRC}/xdg/BaseDirectory.py + ${SUBST_CMD} ${WRKSRC}/xdg/{BaseDirectory.py,Menu.py} .include diff --git a/devel/py-xdg/patches/patch-xdg_Menu_py b/devel/py-xdg/patches/patch-xdg_Menu_py new file mode 100644 index 00000000000..5a878b89e3b --- /dev/null +++ b/devel/py-xdg/patches/patch-xdg_Menu_py @@ -0,0 +1,12 @@ +$OpenBSD: patch-xdg_Menu_py,v 1.3 2008/10/30 14:23:31 ajacoutot Exp $ +--- xdg/Menu.py.orig Thu Oct 30 15:20:37 2008 ++++ xdg/Menu.py Thu Oct 30 15:20:49 2008 +@@ -495,7 +495,7 @@ def parse(filename=None): + filename = __getFileName("applications.menu") + + if not filename: +- raise ParsingError('File not found', "/etc/xdg/menus/applications.menu") ++ raise ParsingError('File not found', "${SYSCONFDIR}/xdg/menus/applications.menu") + + # check if it is a .menu file + if not os.path.splitext(filename)[1] == ".menu":