- fix hardcoded paths in applications.menu

ok jasper@
This commit is contained in:
ajacoutot 2008-02-06 11:36:54 +00:00
parent f6134b0d85
commit 9847cb0494
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.17 2008/02/04 17:55:19 jasper Exp $
# $OpenBSD: Makefile,v 1.18 2008/02/06 11:36:54 ajacoutot Exp $
SHARED_ONLY= Yes
@ -7,7 +7,7 @@ COMMENT= implementation of the FreeDesktop Desktop Menu Spec
GNOME_PROJECT= gnome-menus
GNOME_VERSION= 2.20.3
SHARED_LIBS += gnome-menu 3.11 # .3.19
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
# GPL/LGPL
PERMIT_PACKAGE_CDROM= Yes
@ -33,6 +33,8 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
pre-configure:
perl -pi -e 's,!!MODPY_BIN!!,${MODPY_BIN},' \
${WRKSRC}/simple-editor/gmenu-simple-editor.in
perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g' \
${WRKSRC}/layout/applications.menu
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-menus

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-layout_applications_menu,v 1.1 2008/02/06 11:36:54 ajacoutot Exp $
--- layout/applications.menu.orig Mon Jan 7 23:27:42 2008
+++ layout/applications.menu Wed Feb 6 11:18:13 2008
@@ -8,8 +8,8 @@
<!-- Scan legacy dirs first, as later items take priority -->
<KDELegacyDirs/>
- <LegacyDir>/etc/X11/applnk</LegacyDir>
- <LegacyDir>/usr/share/gnome/apps</LegacyDir>
+ <LegacyDir>!!LOCALBASE!!/share/applnk</LegacyDir>
+ <LegacyDir>!!LOCALBASE!!/share/gnome/apps</LegacyDir>
<!-- Read standard .directory and .desktop file locations -->
<DefaultAppDirs/>