summaryrefslogtreecommitdiffstats
path: root/x11/gnome-menus
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gnome-menus')
-rw-r--r--x11/gnome-menus/Makefile8
-rw-r--r--x11/gnome-menus/pkg-plist6
2 files changed, 10 insertions, 4 deletions
diff --git a/x11/gnome-menus/Makefile b/x11/gnome-menus/Makefile
index fd8c6a3f4..ed760a59a 100644
--- a/x11/gnome-menus/Makefile
+++ b/x11/gnome-menus/Makefile
@@ -3,11 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11/gnome-menus/Makefile,v 1.34 2006/07/27 15:43:31 marcus Exp $
+# $MCom: ports/x11/gnome-menus/Makefile,v 1.35 2006/08/08 01:28:34 ahze Exp $
#
PORTNAME= gnome-menus
PORTVERSION= 2.15.91
+PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
@@ -34,6 +35,10 @@ USE_FAM= yes
.endif
post-patch:
+ @${REINPLACE_CMD} -e 's|applications.menu||' \
+ ${WRKSRC}/layout/Makefile.in
+ @${REINPLACE_CMD} -e 's|applications.menu|gnome.applications.menu|' \
+ ${WRKSRC}/util/test-menu-spec.c
@${REINPLACE_CMD} -e 's|/usr/share/gnome|${LOCALBASE}/share/gnome|g' \
${WRKSRC}/layout/applications.menu \
${WRKSRC}/layout/settings.menu
@@ -45,6 +50,7 @@ post-patch:
post-install:
@${MKDIR} ${PREFIX}/share/gnome/desktop-directories
+ @${INSTALL_DATA} ${WRKSRC}/layout/applications.menu ${PREFIX}/etc/xdg/menus/gnome.applications.menu
@${INSTALL_DATA} ${WRKSRC}/KDE.directory ${PREFIX}/share/gnome/desktop-directories
.include <bsd.port.post.mk>
diff --git a/x11/gnome-menus/pkg-plist b/x11/gnome-menus/pkg-plist
index 65cc73b1b..bd0af03b3 100644
--- a/x11/gnome-menus/pkg-plist
+++ b/x11/gnome-menus/pkg-plist
@@ -1,5 +1,5 @@
bin/gnome-menu-spec-test
-etc/xdg/menus/applications.menu
+etc/xdg/menus/gnome.applications.menu
etc/xdg/menus/preferences.menu
etc/xdg/menus/settings.menu
include/gnome-menus/gmenu-tree.h
@@ -129,7 +129,7 @@ share/locale/zh_TW/LC_MESSAGES/gnome-menus.mo
@dirrmtry share/locale/bn_IN
@dirrm share/gnome/desktop-directories
@dirrm include/gnome-menus
-@dirrm etc/xdg/menus
-@dirrm etc/xdg
+@dirrmtry etc/xdg/menus
+@dirrmtry etc/xdg
@dirrmtry %%PYTHON_SITELIBDIR%%
@dirrmtry %%PYTHON_LIBDIR%%