diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-12-11 13:00:58 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-12-11 13:01:24 -0500 |
commit | 5d82a059c595f1b42a4bde5c5a054e0cc05da5c8 (patch) | |
tree | 36f56a48759d69a4535d7e95fb75504d000a0155 /www-client | |
parent | www-client/chromium: dev channel bump (57.0.2946.0) (diff) | |
download | gentoo-5d82a059c595f1b42a4bde5c5a054e0cc05da5c8.tar.gz gentoo-5d82a059c595f1b42a4bde5c5a054e0cc05da5c8.tar.bz2 gentoo-5d82a059c595f1b42a4bde5c5a054e0cc05da5c8.zip |
www-client/chromium: clean up src_install
Remove CHROMIUM_SUFFIX.
Remove extraneous || die.
Package-Manager: portage-2.3.2_p13
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/chromium/chromium-57.0.2946.0.ebuild | 51 |
1 files changed, 19 insertions, 32 deletions
diff --git a/www-client/chromium/chromium-57.0.2946.0.ebuild b/www-client/chromium/chromium-57.0.2946.0.ebuild index 0e4ecb86b433..1da3f4fff666 100644 --- a/www-client/chromium/chromium-57.0.2946.0.ebuild +++ b/www-client/chromium/chromium-57.0.2946.0.ebuild @@ -525,16 +525,16 @@ src_compile() { } src_install() { - local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" + local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" exeinto "${CHROMIUM_HOME}" - doexe out/Release/chrome || die + doexe out/Release/chrome if use suid; then - newexe out/Release/chrome_sandbox chrome-sandbox || die + newexe out/Release/chrome_sandbox chrome-sandbox fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" fi - doexe out/Release/chromedriver || die + doexe out/Release/chromedriver use widevine && doexe out/Release/libwidevinecdmadapter.so # if ! use arm; then @@ -545,45 +545,37 @@ src_install() { # fi local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) - if [[ -n ${CHROMIUM_SUFFIX} ]]; then - sedargs+=( - -e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" - -e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" - -e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" - ) - fi sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die doexe chromium-launcher.sh # It is important that we name the target "chromium-browser", # xdg-utils expect it; bug #355517. - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser # keep the old symlink around for consistency - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die + dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium - dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${CHROMIUM_SUFFIX} || die + dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver # Allow users to override command-line options, bug #357629. - dodir /etc/chromium || die insinto /etc/chromium - newins "${FILESDIR}/chromium.default" "default" || die + newins "${FILESDIR}/chromium.default" "default" pushd out/Release/locales > /dev/null || die chromium_remove_language_paks popd insinto "${CHROMIUM_HOME}" - doins out/Release/*.bin || die - doins out/Release/*.pak || die + doins out/Release/*.bin + doins out/Release/*.pak # Needed by bundled icu doins out/Release/icudtl.dat - doins -r out/Release/locales || die - doins -r out/Release/resources || die + doins -r out/Release/locales + doins -r out/Release/resources - newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die - newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die + newman out/Release/chrome.1 chromium.1 + newman out/Release/chrome.1 chromium-browser.1 # Install icons and desktop entry. local branding size @@ -593,7 +585,7 @@ src_install() { *) branding="chrome/app/theme/chromium" ;; esac newicon -s ${size} "${branding}/product_logo_${size}.png" \ - chromium-browser${CHROMIUM_SUFFIX}.png + chromium-browser.png done local mime_types="text/html;text/xml;application/xhtml+xml;" @@ -601,22 +593,17 @@ src_install() { mime_types+="x-scheme-handler/ftp;" # bug #412185 mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 make_desktop_entry \ - chromium-browser${CHROMIUM_SUFFIX} \ - "Chromium${CHROMIUM_SUFFIX}" \ - chromium-browser${CHROMIUM_SUFFIX} \ + chromium-browser \ + "Chromium" \ + chromium-browser \ "Network;WebBrowser" \ "MimeType=${mime_types}\nStartupWMClass=chromium-browser" sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die # Install GNOME default application entry (bug #303100). if use gnome; then - dodir /usr/share/gnome-control-center/default-apps || die insinto /usr/share/gnome-control-center/default-apps - newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ - "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml - fi + newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml fi readme.gentoo_create_doc |