Skip to content

Commit

Permalink
Generate desktop file with MimeType support. PR 175369
Browse files Browse the repository at this point in the history
  • Loading branch information
rene0 committed May 22, 2013
1 parent 63a7a9a commit 8766703
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
10 changes: 6 additions & 4 deletions www/chromium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,14 @@ RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/a

ONLY_FOR_ARCHS= i386 amd64
USE_XZ= yes
USES= bison pkgconfig
USES= bison pkgconfig desktop-file-utils
USE_GMAKE= yes
USE_PERL5_BUILD= yes
USE_PYTHON_BUILD= 2.6+
USE_XORG= scrnsaverproto x11 xproto xscrnsaver xtst
USE_GNOME= glib20 gtk20 dconf libxslt
MAN1= chrome.1

DESKTOP_ENTRIES="Chromium" "Web browser" "${DATADIR}/product_logo_48.png" \
"chrome %U" "Network;WebBrowser;GTK;" true

ALL_TARGET= chrome

# See build/common.gypi for all the available variables.
Expand All @@ -80,6 +77,10 @@ GYP_DEFINES+= use_cups=1 \
prefix_dir=${LOCALBASE} \
python_ver=${PYTHON_VER}

SUB_FILES= chromium-browser.desktop
SUB_LIST= COMMENT="${COMMENT}" \
DATADIR=${DATADIR}

OPTIONS_DEFINE= CODECS GCONF PULSEAUDIO CLANG DEBUG

CODECS_DESC= Compile and enable patented codecs like H.264
Expand Down Expand Up @@ -198,6 +199,7 @@ do-install:
.endfor
cd ${WRKSRC}/out/${BUILDTYPE} && \
${COPYTREE_SHARE} "locales resources" ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/chromium-browser.desktop ${DESKTOPDIR}
${LN} -sf ${DATADIR}/chrome ${PREFIX}/bin

post-install:
Expand Down
11 changes: 11 additions & 0 deletions www/chromium/files/chromium-browser.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=Chromium
Comment=%%COMMENT%%
Icon=%%DATADIR%%/product_logo_48.png
Exec=chrome %U
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;/x-scheme-handler/https;x-scheme-handler/ftp;
StartupNotify=true
1 change: 1 addition & 0 deletions www/chromium/pkg-plist
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bin/chrome
share/applications/chromium-browser.desktop
%%DATADIR%%/chrome
%%DATADIR%%/chrome-wrapper
%%DATADIR%%/chrome.pak
Expand Down

0 comments on commit 8766703

Please sign in to comment.