From 53a77365d8c752a4ecc604393a1b5517d50579c5 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Wed, 14 Oct 2009 09:01:39 +0000 Subject: [PATCH] Add desktop file from Fedora to be able to directly mount archives for browsing (uses libarchive). --- x11/gnome/gvfs/Makefile | 15 +++++++++++++-- x11/gnome/gvfs/files/mount-archive.desktop.in | 14 ++++++++++++++ x11/gnome/gvfs/pkg/PLIST-main | 6 +++++- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 x11/gnome/gvfs/files/mount-archive.desktop.in diff --git a/x11/gnome/gvfs/Makefile b/x11/gnome/gvfs/Makefile index ce3b23f2ea8..f6d62b288ee 100644 --- a/x11/gnome/gvfs/Makefile +++ b/x11/gnome/gvfs/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.16 2009/10/11 13:32:27 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.17 2009/10/14 09:01:39 ajacoutot Exp $ COMMENT-main= GNOME virtual file system COMMENT-smb= samba module for GVFS @@ -6,7 +6,7 @@ COMMENT-smb= samba module for GVFS GNOME_PROJECT= gvfs GNOME_VERSION= 1.4.0 -PKGNAME-main= ${DISTNAME} +PKGNAME-main= ${DISTNAME}p0 PKGNAME-smb= ${GNOME_PROJECT}-smb-${GNOME_VERSION} SHARED_LIBS += gvfscommon 2.0 # .0.0 @@ -32,6 +32,8 @@ WANTLIB-main += ${WANTLIB} WANTLIB-main += bz2 crypto gcrypt gnutls gpg-error lzma m proxy soup-2.4 WANTLIB-main += sqlite3 tasn1 xml2 z +DESKTOP_FILES= Yes + LIB_DEPENDS-main= ${LIB_DEPENDS} \ archive::archivers/libarchive \ soup-gnome-2.4.>=1::devel/libsoup,-gnome \ @@ -60,4 +62,13 @@ CONFIGURE_ARGS= --disable-gtk-doc \ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +SUBST_VARS+= GNOME_VERSION + +post-install: + ${SUBST_CMD} -c ${FILESDIR}/mount-archive.desktop.in \ + ${WRKSRC}/mount-archive.desktop + ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ + ${INSTALL_DATA} ${WRKSRC}/mount-archive.desktop \ + ${PREFIX}/share/applications/ + .include diff --git a/x11/gnome/gvfs/files/mount-archive.desktop.in b/x11/gnome/gvfs/files/mount-archive.desktop.in new file mode 100644 index 00000000000..4e2bf3dfedd --- /dev/null +++ b/x11/gnome/gvfs/files/mount-archive.desktop.in @@ -0,0 +1,14 @@ +[Desktop Entry] +Encoding=UTF-8 +_Name=Archive Mounter +Exec=${TRUEPREFIX}/libexec/gvfsd-archive file=%u +X-Gnome-Vfs-System=gio +MimeType=application/x-cd-image;application/x-bzip-compressed-tar;application/x-compressed-tar;application/x-tar;application/x-cpio;application/x-zip;application/zip;application/x-lzma-compressed-tar;application/x-xz-compressed-tar; +Terminal=false +StartupNotify=false +Type=Application +NoDisplay=true +X-GNOME-Bugzilla-Bugzilla=GNOME +X-GNOME-Bugzilla-Product=gvfs +X-GNOME-Bugzilla-Component=archive-backend +X-GNOME-Bugzilla-Version=${GNOME_VERSION} diff --git a/x11/gnome/gvfs/pkg/PLIST-main b/x11/gnome/gvfs/pkg/PLIST-main index 75642130843..94ec29e9039 100644 --- a/x11/gnome/gvfs/pkg/PLIST-main +++ b/x11/gnome/gvfs/pkg/PLIST-main @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST-main,v 1.6 2009/10/11 13:32:28 ajacoutot Exp $ +@comment $OpenBSD: PLIST-main,v 1.7 2009/10/14 09:01:39 ajacoutot Exp $ @pkgpath ${BASE_PKGPATH} %%SHARED%% @bin bin/gvfs-cat @@ -47,6 +47,8 @@ lib/libgvfscommon.la @bin libexec/gvfsd-network @bin libexec/gvfsd-sftp @bin libexec/gvfsd-trash +share/applications/ +share/applications/mount-archive.desktop share/dbus-1/ share/dbus-1/services/ share/dbus-1/services/gvfs-daemon.service @@ -175,3 +177,5 @@ share/locale/vi/LC_MESSAGES/gvfs.mo share/locale/zh_CN/LC_MESSAGES/gvfs.mo share/locale/zh_HK/LC_MESSAGES/gvfs.mo share/locale/zh_TW/LC_MESSAGES/gvfs.mo +@exec %D/bin/update-desktop-database +@unexec %D/bin/update-desktop-database