gnomevfs2 -> WITHOUT_KDE_MENUS knob

Franz Klammer klammer at webonaut.com
Mon Dec 29 10:55:05 PST 2003


i don't like to merge the kde-application-menus into the gnome because 
it filles up
the menu-bar with too many entries i only need as kde-user.

attached a patch for gnomevfs2 with adds a WITHOUT_KDE_MENUS knob and
if not set EXTRA_PATCHES is used to apply the patch.

also it changes xargs to ${XARGS} to make portlint more happy.

franz.

-------------- next part --------------
diff -Nur gnomevfs2.orig/Makefile gnomevfs2/Makefile
--- gnomevfs2.orig/Makefile	Mon Dec 29 10:28:47 2003
+++ gnomevfs2/Makefile	Mon Dec 29 19:52:02 2003
@@ -30,6 +30,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if !defined(WITHOUT_KDE_MENUS)
+EXTRA_PATCHES=	${FILESDIR}/modules_vfolder_applications-all-users.vfolder-info.in
+.endif
+
 .if exists(${LOCALBASE}/lib/libcdda_paranoia.a)
 WITH_CDPARANOIA=        yes
 .endif
@@ -48,7 +52,7 @@
 .endif
 
 post-patch:
-	@${FIND} ${WRKSRC} -name "*info.in" | xargs ${REINPLACE_CMD} -e \
+	@${FIND} ${WRKSRC} -name "*info.in" | ${XARGS} ${REINPLACE_CMD} -e \
 		's|\@datadir\@/gnome|\@datadir\@|g'
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
 		${WRKSRC}/libgnomevfs/Makefile.in \
diff -Nur gnomevfs2.orig/files/modules_vfolder_applications-all-users.vfolder-info.in gnomevfs2/files/modules_vfolder_applications-all-users.vfolder-info.in
--- gnomevfs2.orig/files/modules_vfolder_applications-all-users.vfolder-info.in	Thu Jan  1 01:00:00 1970
+++ gnomevfs2/files/modules_vfolder_applications-all-users.vfolder-info.in	Thu Oct 23 22:36:24 2003
@@ -0,0 +1,11 @@
+--- modules/vfolder/applications-all-users.vfolder-info.in.orig	Sat Oct 18 19:04:37 2003
++++ modules/vfolder/applications-all-users.vfolder-info.in	Sat Oct 18 19:05:18 2003
+@@ -19,7 +19,7 @@
+   <MergeDir>/usr/share/gnome/apps/</MergeDir>
+ 
+   <!-- Merge dirs optional -->
+-  <MergeDir>/etc/X11/applnk/</MergeDir>
++  <MergeDir>%%LOCALBASE%%/share/applnk/</MergeDir>
+ 
+   <!-- Root folder -->
+   <Folder>
diff -Nur gnomevfs2.orig/files/patch-modules_vfolder_applications-all-users.vfolder-info.in gnomevfs2/files/patch-modules_vfolder_applications-all-users.vfolder-info.in
--- gnomevfs2.orig/files/patch-modules_vfolder_applications-all-users.vfolder-info.in	Thu Oct 23 22:36:24 2003
+++ gnomevfs2/files/patch-modules_vfolder_applications-all-users.vfolder-info.in	Thu Jan  1 01:00:00 1970
@@ -1,11 +0,0 @@
---- modules/vfolder/applications-all-users.vfolder-info.in.orig	Sat Oct 18 19:04:37 2003
-+++ modules/vfolder/applications-all-users.vfolder-info.in	Sat Oct 18 19:05:18 2003
-@@ -19,7 +19,7 @@
-   <MergeDir>/usr/share/gnome/apps/</MergeDir>
- 
-   <!-- Merge dirs optional -->
--  <MergeDir>/etc/X11/applnk/</MergeDir>
-+  <MergeDir>%%LOCALBASE%%/share/applnk/</MergeDir>
- 
-   <!-- Root folder -->
-   <Folder>


More information about the freebsd-gnome mailing list