summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/vinagre/Makefile5
-rw-r--r--net/vinagre/pkg-plist2
2 files changed, 5 insertions, 2 deletions
diff --git a/net/vinagre/Makefile b/net/vinagre/Makefile
index 883c7e7e1ec6..5143efce23c4 100644
--- a/net/vinagre/Makefile
+++ b/net/vinagre/Makefile
@@ -7,7 +7,7 @@
PORTNAME= vinagre
PORTVERSION= 0.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
@@ -32,7 +32,8 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-install:
- @-update-desktop-database
+ @-update-desktop-database > /dev/null
+ @-update-mime-database ${PREFIX}/share/mime > /dev/null
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in AUTHORS COPYING ChangeLog INSTALL MAINTAINERS NEWS README
diff --git a/net/vinagre/pkg-plist b/net/vinagre/pkg-plist
index f19455abb7f0..11d6f2b45350 100644
--- a/net/vinagre/pkg-plist
+++ b/net/vinagre/pkg-plist
@@ -52,6 +52,8 @@ share/vinagre/vinagre.glade
@dirrmtry share/locale/oc/LC_MESSAGES
@dirrmtry share/locale/oc
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
+@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
@dirrmtry share/applications