-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www-client/ungoogled-chromium-bin: 130.0.6723.116
- Loading branch information
1 parent
52df5f9
commit e2a11af
Showing
2 changed files
with
206 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
DIST ungoogled-chromium-bin-129.0.6668.89-x86-64.tar.bz2 128323495 BLAKE2B 9ce84526b188d835e763a3a6b23ff0f55acadfb7c703cb684ed07b2c754007ba74c716cbee839ab7eb65a1838c229135305b067a8dda7d052b0334e5b7d98224 SHA512 ef1248083324a843bbac60ee520854a5d07e5774030b75c6a8f948345179244fafc11ef43e9bb706fb27a38231c9bc2d2be767801909f0b30e022cf2c94ecf2d | ||
DIST ungoogled-chromium-bin-130.0.6723.116-i686.tar.bz2 128670590 BLAKE2B fb6c6089d30d8e8882f9f3810809b9e226c2fd894597fc82b885688197a7926f9c3d63d0c569c6f3e80d34892e3a04ecdd51beb28d0bed90934dae1e68a7bdfc SHA512 60dc7f416a03dc6d56436b937b0e4d7890a105a40c4e5f18140e55277e6cd3c08c3d5bacc53e21f1ec60b10824144b4bee89a8362a0f8557cd09ed45dbc3d895 | ||
DIST ungoogled-chromium-bin-130.0.6723.116-x86-64.tar.bz2 133019210 BLAKE2B 8c9127fbb81fcf6c2e5d19b7d56bab8a7c3daecee292f7767dc1d3e496737b4fb126a5997c2624f887f816c657b2a57cbc696dc77bf044bfa13f5682fcd234de SHA512 2ce34125e15f7f5b714a3d53be6f3792528e990d63ae42f5f16d6f1fe2185d0d7cf73686c4ea7939f411d52233076ba8660aa713edce894ad4e3bada188ff454 | ||
DIST ungoogled-chromium-bin-130.0.6723.58-i686.tar.bz2 128616614 BLAKE2B f9ad1440a8043a84ae993841da77edb5f5e40c98cf0602a5851593ef3f60117717a42db361e1e68e1799404404565e7146d39177f7737ce488e55791ab0fd068 SHA512 ecbad1519a595b106436f85ce2291be76a414734a09b2aa94b0cfdc70cf79f6c63b9e0711446c2083d6e17cf16453f4b4f33102801c3b108cbe0319466562594 | ||
DIST ungoogled-chromium-bin-130.0.6723.58-x86-64.tar.bz2 133056683 BLAKE2B c26540c55e5a438c06825e60ed84e98e1828a6100be4f108d6c61191f61cd76eba74727c3bbf74ea467d684627b5af1a41eb674a57168cf1709348c9f69516af SHA512 badfbd9e1f9c7241359d8627f3be1f17491147b99f06a9fb2eeb9ab55492da954ad904b2bfab2f052f0c3c41127b5ef3f079f831a4cb442f82072a54167c7d59 |
204 changes: 204 additions & 0 deletions
204
www-client/ungoogled-chromium-bin/ungoogled-chromium-bin-130.0.6723.116.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
CHROMIUM_LANGS="af am ar as az be bg bn bs ca cs cy da de el en-GB es es-419 et eu fa fi fil | ||
fr fr-CA gl gu he hi hr hu hy id is it ja ka kk km kn ko ky lo lt lv mk ml mn mr ms my | ||
nb ne nl or pa pl pt-BR pt-PT ro ru si sk sl sq sr sr-Latn sv sw ta te th tr uk ur uz | ||
vi zh-CN zh-HK zh-TW zu" | ||
|
||
inherit chromium-2 desktop readme.gentoo-r1 xdg-utils | ||
|
||
DESCRIPTION="Modifications to Chromium for removing Google integration and enhancing privacy" | ||
HOMEPAGE="https://www.chromium.org/Home https://github.com/ungoogled-software/ungoogled-chromium" | ||
DL_URL="https://github.com/PF4Public/${PN}/releases/download/${PV}" | ||
SRC_URI=" | ||
amd64? ( ${DL_URL}/x86-64.tar.bz2 -> ${PF}-x86-64.tar.bz2 ) | ||
x86? ( ${DL_URL}/i686.tar.bz2 -> ${PF}-i686.tar.bz2 )" | ||
|
||
RESTRICT="mirror" | ||
|
||
LICENSE="BSD" | ||
SLOT="0" | ||
KEYWORDS="amd64 x86" | ||
IUSE="convert-dict widevine" | ||
|
||
REQUIRED_USE=" | ||
x86? ( !widevine )" | ||
|
||
CDEPEND=" | ||
x11-libs/libX11 | ||
x11-libs/libXcomposite | ||
x11-libs/libXcursor | ||
x11-libs/libXdamage | ||
x11-libs/libXext | ||
x11-libs/libXfixes | ||
>=x11-libs/libXi-1.6.0 | ||
x11-libs/libXrandr | ||
x11-libs/libXrender | ||
x11-libs/libXtst | ||
x11-libs/libxcb | ||
media-libs/libva | ||
>=net-print/cups-1.3.11 | ||
dev-libs/expat | ||
dev-libs/glib:2 | ||
>=dev-libs/libxml2-2.9.4-r3[icu] | ||
dev-libs/nspr | ||
>=dev-libs/nss-3.26 | ||
>=media-libs/alsa-lib-1.0.19 | ||
media-libs/fontconfig | ||
media-libs/freetype | ||
media-libs/libjpeg-turbo | ||
media-libs/libpng | ||
sys-apps/dbus | ||
sys-apps/pciutils | ||
virtual/udev | ||
x11-libs/cairo | ||
x11-libs/pango | ||
media-libs/flac | ||
>=media-libs/libwebp-0.4.0 | ||
sys-libs/zlib[minizip] | ||
app-accessibility/at-spi2-core | ||
x11-libs/gtk+:3[X] | ||
media-libs/lcms | ||
dev-libs/libxslt" | ||
|
||
RDEPEND="${CDEPEND} | ||
x11-misc/xdg-utils | ||
virtual/opengl | ||
virtual/ttf-fonts" | ||
|
||
DISABLE_AUTOFORMATTING="yes" | ||
DOC_CONTENTS=" | ||
Some web pages may require additional fonts to display properly. | ||
Try installing some of the following packages if some characters | ||
are not displayed properly: | ||
- media-fonts/arphicfonts | ||
- media-fonts/droid | ||
- media-fonts/ipamonafont | ||
- media-fonts/noto | ||
- media-fonts/noto-emoji | ||
- media-fonts/ja-ipafonts | ||
- media-fonts/takao-fonts | ||
- media-fonts/wqy-microhei | ||
- media-fonts/wqy-zenhei | ||
To fix broken icons on the Downloads page, you should install an icon | ||
theme that covers the appropriate MIME types, and configure this as your | ||
GTK+ icon theme. | ||
For native file dialogs in KDE, install kde-apps/kdialog." | ||
|
||
QA_PREBUILT="*" | ||
S="${WORKDIR}" | ||
|
||
pkg_pretend() { | ||
if ! use widevine; then | ||
ewarn | ||
ewarn "widevine was enabled in this build" | ||
ewarn "If you think this is a mistake let me know in #193" | ||
ewarn | ||
fi | ||
} | ||
|
||
src_install() { | ||
local CHROMIUM_HOME="/opt/chromium-browser" | ||
exeinto "${CHROMIUM_HOME}" | ||
doexe ./usr/$(get_libdir)/chromium-browser/chrome | ||
|
||
if use convert-dict; then | ||
newexe "./usr/$(get_libdir)/chromium-browser/update-dicts.sh" update-dicts.sh | ||
doexe ./usr/$(get_libdir)/chromium-browser/convert_dict | ||
fi | ||
|
||
doexe ./usr/$(get_libdir)/chromium-browser/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-bin | ||
# keep the old symlink around for consistency | ||
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-bin | ||
|
||
if ! has_version "www-client/ungoogled-chromium" && ! has_version "www-client/chromium"; then | ||
# Allow users to override command-line options, bug #357629. | ||
insinto /etc/chromium | ||
doins ./etc/chromium/default | ||
fi | ||
|
||
pushd ./usr/$(get_libdir)/chromium-browser/locales > /dev/null || die | ||
chromium_remove_language_paks | ||
popd | ||
|
||
insinto "${CHROMIUM_HOME}" | ||
doins ./usr/$(get_libdir)/chromium-browser/*.bin | ||
doins ./usr/$(get_libdir)/chromium-browser/*.pak | ||
doins ./usr/$(get_libdir)/chromium-browser/*.so | ||
doins ./usr/$(get_libdir)/chromium-browser/icudtl.dat | ||
|
||
doins -r ./usr/$(get_libdir)/chromium-browser/locales | ||
|
||
# Install vk_swiftshader_icd.json; bug #827861 | ||
doins ./usr/$(get_libdir)/chromium-browser/vk_swiftshader_icd.json | ||
|
||
if [[ -d out/Release/swiftshader ]]; then | ||
insinto "${CHROMIUM_HOME}/swiftshader" | ||
doins ./usr/$(get_libdir)/chromium-browser/swiftshader/*.so | ||
fi | ||
|
||
use widevine && dosym "../../usr/$(get_libdir)/chromium-browser/WidevineCdm" "${CHROMIUM_HOME}/WidevineCdm" | ||
|
||
# Install icons | ||
local branding size | ||
for size in 16 24 32 48 64 128 256 ; do | ||
newicon -s ${size} "./usr/share/icons/hicolor/${size}x${size}/apps/chromium-browser.png" \ | ||
chromium-browser-bin.png | ||
done | ||
|
||
local desktop_entry_name="Chromium" | ||
if has_version "www-client/ungoogled-chromium" || has_version "www-client/chromium"; then | ||
# Differentiate if others installed | ||
desktop_entry_name="Ungoogled" | ||
fi | ||
|
||
local mime_types="text/html;text/xml;application/xhtml+xml;" | ||
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 | ||
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-bin \ | ||
"${desktop_entry_name}" \ | ||
chromium-browser-bin \ | ||
"Network;WebBrowser" \ | ||
"MimeType=${mime_types}\nStartupWMClass=chromium-browser-bin" | ||
sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die | ||
|
||
# Install GNOME default application entry (bug #303100). | ||
insinto /usr/share/gnome-control-center/default-apps | ||
sed -i '/chromium-browser/{s++chromium-browser-bin+;h};${x;/./{x;q0};x;q1}' \ | ||
./usr/share/gnome-control-center/default-apps/chromium-browser.xml || die | ||
newins ./usr/share/gnome-control-center/default-apps/chromium-browser.xml chromium-browser-bin.xml | ||
|
||
readme.gentoo_create_doc | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_icon_cache_update | ||
xdg_desktop_database_update | ||
} | ||
|
||
pkg_postinst() { | ||
elog "VA-API is disabled by default at runtime. You have to enable it" | ||
elog "by adding --enable-features=VaapiVideoDecoder and " | ||
elog "--disable-features=UseChromeOSDirectVideoDecoder to CHROMIUM_FLAGS" | ||
elog "in /etc/chromium/default." | ||
|
||
if use widevine; then | ||
elog "widevine requires binary plugins, which are distributed separately" | ||
elog "Make sure you have www-plugins/chrome-binary-plugins installed" | ||
fi | ||
|
||
xdg_icon_cache_update | ||
xdg_desktop_database_update | ||
readme.gentoo_print_elog | ||
} |