- Register ghelp: URL handler with the system mime database, fixes

Help->Contents invocations in GNOME apps

PR:		ports/167386
Submitted by:	Jody Caldwell <jody@calinx.com>
Approved by:	kwm (gnome)
This commit is contained in:
Pav Lucistnik 2012-05-10 14:34:35 +00:00
parent 848c7d8835
commit 4a68d80133
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296369
3 changed files with 22 additions and 1 deletions

View file

@ -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>

View file

@ -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;

View file

@ -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