- add a .desktop file for opera

- install a bunch of icons for opera
- add the needed goo (but don't depend on gtk+2, hence the '|| true' part
* add dependency on desktop-file-utils

discussed with an ok ajacoutot@ sturm@ (MAINTAINER)
This commit is contained in:
jasper 2008-12-02 19:54:16 +00:00
parent a231aa6d30
commit 6949ffdb07
3 changed files with 44 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.56 2008/10/30 14:07:33 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.57 2008/12/02 19:54:16 jasper Exp $
ONLY_FOR_ARCHS= i386
@ -7,7 +7,7 @@ COMMENT= fast and customizable WWW browser
V= 9.62
OPERA_BUILD= 2466
DISTNAME= opera-${V}.gcc4-static-qt3.i386
PKGNAME= opera-${V}
PKGNAME= opera-${V}p0
CATEGORIES= www
HOMEPAGE= http://www.opera.com/
@ -34,7 +34,8 @@ MASTER_SITES_OPERA= ftp://ftp.opera.com/pub/opera/ \
MASTER_SITES= ${MASTER_SITES_OPERA:=linux/${V:S/.//}/final/en/i386/static/}
EXTRACT_SUFX= .tar.bz2
RUN_DEPENDS= ::emulators/fedora/base
RUN_DEPENDS= ::devel/desktop-file-utils \
::emulators/fedora/base
NO_BUILD= Yes
NO_REGRESS= Yes
@ -55,5 +56,12 @@ do-install:
${PREFIX}/share/examples/opera/opera6rc
${INSTALL_DATA} ${FILESDIR}/operarc.fixed \
${PREFIX}/share/examples/opera/opera6rc.fixed
${INSTALL_DATA_DIR} ${PREFIX}/share/icons
cd ${WRKSRC}/usr/share/icons/; tar cf - * | tar xf - -C ${PREFIX}/share/icons/
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${SUBST_CMD} -c ${FILESDIR}/opera.desktop \
${PREFIX}/share/applications/opera.desktop
chown ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/share/applications/opera.desktop
.include <bsd.port.mk>

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Opera Web Browser
GenericName=Web Browser
Comment=Browse the web
Exec=opera %u
Icon=${TRUEPREFIX}/share/icons/hicolor/32x32/apps/opera.png
StartupNotify=false
Terminal=false
Type=Application
Categories=Application;Network;
MimeType=text/html;text/xml;application/xhtml+xml;

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.28 2008/10/21 15:32:33 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.29 2008/12/02 19:54:16 jasper Exp $
bin/opera
lib/opera/
lib/opera/plugins/
@ -9,6 +9,7 @@ libexec/operapluginwrapper
libexec/spellcheck.so
libexec/works
@man man/man1/opera.1
share/applications/opera.desktop
share/doc/opera/
share/doc/opera/LGPL
share/doc/opera/LICENSE
@ -17,6 +18,20 @@ share/examples/opera/opera6rc
@sample /etc/opera6rc
share/examples/opera/opera6rc.fixed
@sample /etc/opera6rc.fixed
share/icons/
share/icons/hicolor/
share/icons/hicolor/16x16/
share/icons/hicolor/16x16/apps/
share/icons/hicolor/16x16/apps/opera.png
share/icons/hicolor/22x22/
share/icons/hicolor/22x22/apps/
share/icons/hicolor/22x22/apps/opera.png
share/icons/hicolor/32x32/
share/icons/hicolor/32x32/apps/
share/icons/hicolor/32x32/apps/opera.png
share/icons/hicolor/48x48/
share/icons/hicolor/48x48/apps/
share/icons/hicolor/48x48/apps/opera.png
share/opera/
share/opera/encoding.bin
share/opera/html40_entities.dtd
@ -300,3 +315,7 @@ share/opera/svg-sabd.dat
share/opera/svg-se.dat
share/opera/svg-sebd.dat
@sysctl kern.emul.linux=1
@exec %D/bin/update-desktop-database
@unexec %D/bin/update-desktop-database
@exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true
@unexec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true