aboutsummaryrefslogtreecommitdiff
path: root/devel/gnomevfs2
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-06-26 03:28:37 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-06-26 03:28:37 +0000
commit93181c3dd70583aadb2a3f0d4ffa568b390a4622 (patch)
tree42987e3e2a4e9ccb8565682ae25c48d8517d62e4 /devel/gnomevfs2
parent450c885cbe8bfb12fa1741f76f2521b12e5369d7 (diff)
downloadports-93181c3dd70583aadb2a3f0d4ffa568b390a4622.tar.gz
ports-93181c3dd70583aadb2a3f0d4ffa568b390a4622.zip
Notes
Diffstat (limited to 'devel/gnomevfs2')
-rw-r--r--devel/gnomevfs2/Makefile6
-rw-r--r--devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c11
2 files changed, 15 insertions, 2 deletions
diff --git a/devel/gnomevfs2/Makefile b/devel/gnomevfs2/Makefile
index 5b79b7171707..55a2134cf8b1 100644
--- a/devel/gnomevfs2/Makefile
+++ b/devel/gnomevfs2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.6.1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.6
@@ -83,8 +83,10 @@ post-patch:
's|\@datadir\@/gnome|\@datadir\@|g'
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/libgnomevfs/Makefile.in \
- ${WRKSRC}/libgnomevfs/xdgmime.c \
${WRKSRC}/modules/vfolder/applications-all-users.vfolder-info.in
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
+ s|%%X11BASE%%|${X11BASE}|g' \
+ ${WRKSRC}/libgnomevfs/xdgmime.c
.if !defined(WITHOUT_KDE_MENUS)
@${SED} -e 's|/usr/local|${LOCALBASE}|g' \
< ${FILESDIR}/KDE.directory > ${WRKSRC}/KDE.directory
diff --git a/devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c b/devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c
new file mode 100644
index 000000000000..213ed03ece45
--- /dev/null
+++ b/devel/gnomevfs2/files/patch-libgnomevfs_xdgmime.c
@@ -0,0 +1,11 @@
+--- libgnomevfs/xdgmime.c.orig Wed Jun 23 20:15:25 2004
++++ libgnomevfs/xdgmime.c Wed Jun 23 20:15:41 2004
+@@ -97,7 +97,7 @@
+
+ xdg_data_dirs = getenv ("XDG_DATA_DIRS");
+ if (xdg_data_dirs == NULL)
+- xdg_data_dirs = "/usr/local/share/:/usr/share/";
++ xdg_data_dirs = "/usr/local/share/:%%X11BASE%%/share/:/usr/share/";
+
+ ptr = xdg_data_dirs;
+