Diff net-protocol-0.2.2 with a google-chrome-beta-139.0.7258.52

/usr/portage/www-client/google-chrome-beta/google-chrome-beta-139.0.7258.52.ebuild 2025-07-29 16:22:17.956470324 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 2011-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
6 5

  
7
RUBY_FAKEGEM_BINWRAP=""
8
RUBY_FAKEGEM_EXTRADOC="README.md"
9
RUBY_FAKEGEM_GEMSPEC="net-protocol.gemspec"
6
CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
7
	hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
8
	sv sw ta te th tr uk ur vi zh-CN zh-TW"
9

  
10
inherit chromium-2 desktop pax-utils unpacker xdg
11

  
12
DESCRIPTION="The web browser from Google"
13
HOMEPAGE="https://www.google.com/chrome/"
14

  
15
if [[ ${PN} == google-chrome ]]; then
16
	MY_PN=${PN}-stable
17
else
18
	MY_PN=${PN}
19
fi
20

  
21
MY_P="${MY_PN}_${PV}-1"
22
SRC_URI="https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb"
23
S=${WORKDIR}
10 24

  
11
inherit ruby-fakegem
25
LICENSE="google-chrome"
26
SLOT="0"
27
KEYWORDS="-* ~amd64"
12 28

  
13
DESCRIPTION="The abstruct interface for net-* client"
14
HOMEPAGE="https://github.com/ruby/net-protocol"
15
SRC_URI="https://github.com/ruby/net-protocol/archive/v${PV}.tar.gz -> ${P}.tar.gz"
29
IUSE="qt6 selinux"
16 30

  
17
LICENSE="BSD-2"
18
SLOT="0"
19
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
20
IUSE="test"
31
RESTRICT="bindist mirror strip"
21 32

  
22
ruby_add_rdepend "
23
	dev-ruby/timeout
33
RDEPEND="
34
	>=app-accessibility/at-spi2-core-2.46.0:2
35
	app-misc/ca-certificates
36
	dev-libs/expat
37
	dev-libs/glib:2
38
	dev-libs/nspr
39
	>=dev-libs/nss-3.26
40
	media-fonts/liberation-fonts
41
	media-libs/alsa-lib
42
	media-libs/mesa[gbm(+)]
43
	net-misc/curl
44
	net-print/cups
45
	sys-apps/dbus
46
	sys-libs/glibc
47
	sys-libs/libcap
48
	x11-libs/cairo
49
	x11-libs/gdk-pixbuf:2
50
	|| (
51
		x11-libs/gtk+:3[X]
52
		gui-libs/gtk:4[X]
53
	)
54
	x11-libs/libdrm
55
	>=x11-libs/libX11-1.5.0
56
	x11-libs/libXcomposite
57
	x11-libs/libXdamage
58
	x11-libs/libXext
59
	x11-libs/libXfixes
60
	x11-libs/libXrandr
61
	x11-libs/libxcb
62
	x11-libs/libxkbcommon
63
	x11-libs/libxshmfence
64
	x11-libs/pango
65
	x11-misc/xdg-utils
66
	qt6? ( dev-qt/qtbase:6[gui,widgets] )
67
	selinux? ( sec-policy/selinux-chromium )
24 68
"
25 69

  
26
ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )"
70
QA_PREBUILT="*"
71
QA_DESKTOP_FILE="usr/share/applications/google-chrome.*\\.desktop"
72
CHROME_HOME="opt/google/chrome${PN#google-chrome}"
73

  
74
pkg_nofetch() {
75
	eerror "Please wait 24 hours and sync your tree before reporting a bug for google-chrome fetch failures."
76
}
77

  
78
pkg_pretend() {
79
	# Protect against people using autounmask overzealously
80
	use amd64 || die "google-chrome only works on amd64"
81
}
82

  
83
pkg_setup() {
84
	chromium_suid_sandbox_check_kernel_config
85
}
86

  
87
src_unpack() {
88
	:
89
}
90

  
91
src_install() {
92
	dodir /
93
	cd "${ED}" || die
94
	unpacker
95

  
96
	rm -r etc usr/share/menu || die
97
	mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die
98

  
99
	gzip -d usr/share/doc/${PF}/changelog.gz || die
100
	gzip -d usr/share/man/man1/${MY_PN}.1.gz || die
101
	if [[ -L usr/share/man/man1/google-chrome.1.gz ]]; then
102
		rm usr/share/man/man1/google-chrome.1.gz || die
103
		dosym ${MY_PN}.1 usr/share/man/man1/google-chrome.1
104
	fi
105

  
106
	pushd "${CHROME_HOME}/locales" > /dev/null || die
107
	chromium_remove_language_paks
108
	popd > /dev/null || die
109

  
110
	rm "${CHROME_HOME}/libqt5_shim.so" || die
111
	if ! use qt6; then
112
		rm "${CHROME_HOME}/libqt6_shim.so" || die
113
	fi
114

  
115
	local suffix=
116
	[[ ${PN} == google-chrome-beta ]] && suffix=_beta
117
	[[ ${PN} == google-chrome-unstable ]] && suffix=_dev
118

  
119
	local size
120
	for size in 16 24 32 48 64 128 256 ; do
121
		newicon -s ${size} "${CHROME_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
122
	done
27 123

  
28
all_ruby_prepare() {
29
	sed -e 's/__dir__/"."/' \
30
		-e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \
31
		-e 's/git ls-files -z/find * -print0/' \
32
		-i ${RUBY_FAKEGEM_GEMSPEC} || die
124
	pax-mark m "${CHROME_HOME}/chrome"
33 125
}
Thank you!