aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2012-05-10 14:34:35 +0000
committerPav Lucistnik <pav@FreeBSD.org>2012-05-10 14:34:35 +0000
commit4a68d8013396f5a347e949d683c55177e31005d6 (patch)
tree39027c0faba2265e13ba4318015993c0940ab105 /x11
parent848c7d8835c844f5f3ae9d0cadb3e2acde1ee461 (diff)
downloadports-4a68d8013396f5a347e949d683c55177e31005d6.tar.gz
ports-4a68d8013396f5a347e949d683c55177e31005d6.zip
Notes
Diffstat (limited to 'x11')
-rw-r--r--x11/yelp/Makefile5
-rw-r--r--x11/yelp/files/patch-yelp.desktop.in.in16
-rw-r--r--x11/yelp/pkg-plist2
3 files changed, 22 insertions, 1 deletions
diff --git a/x11/yelp/Makefile b/x11/yelp/Makefile
index 1cd19df9b729..2588c6cd4597 100644
--- a/x11/yelp/Makefile
+++ b/x11/yelp/Makefile
@@ -8,7 +8,7 @@
PORTNAME= yelp
PORTVERSION= 2.30.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11 gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
@@ -50,4 +50,7 @@ LDFLAGS+= -fstack-protector
post-extract:
${RM} -f ${WRKSRC}/data/yelp.schemas
+post-install:
+ @-update-mime-database ${PREFIX}/share/mime
+
.include <bsd.port.post.mk>
diff --git a/x11/yelp/files/patch-yelp.desktop.in.in b/x11/yelp/files/patch-yelp.desktop.in.in
new file mode 100644
index 000000000000..cd331558d19d
--- /dev/null
+++ b/x11/yelp/files/patch-yelp.desktop.in.in
@@ -0,0 +1,16 @@
+--- yelp.desktop.in.in.orig 2010-08-03 21:41:38.000000000 +0200
++++ yelp.desktop.in.in 2012-05-10 16:20:42.000000000 +0200
+@@ -2,7 +2,7 @@
+ _Name=Help
+ _Comment=Get help with GNOME
+ OnlyShowIn=GNOME;
+-Exec=yelp
++Exec=yelp %u
+ Icon=help-browser
+ StartupNotify=true
+ Terminal=false
+@@ -12,3 +12,4 @@
+ X-GNOME-Bugzilla-Product=Yelp
+ X-GNOME-Bugzilla-Component=general
+ X-GNOME-Bugzilla-Version=@VERSION@
++MimeType=x-scheme-handler/ghelp;x-scheme-handler/help;x-scheme-handler/info;x-scheme-handler/man;
diff --git a/x11/yelp/pkg-plist b/x11/yelp/pkg-plist
index 4321292b2453..8d03cbf55244 100644
--- a/x11/yelp/pkg-plist
+++ b/x11/yelp/pkg-plist
@@ -199,3 +199,5 @@ share/locale/zu/LC_MESSAGES/yelp.mo
@dirrmtry share/locale/ast
@dirrmtry share/locale/as/LC_MESSAGES
@dirrmtry share/locale/as
+@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime > /dev/null || /usr/bin/true