blob: b66abd2c626c400d4fc67260f42adc72f7770fe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-21.0.1155.2_alpha139341.ebuild,v 1.3 2012/06/01 16:05:08 xmw Exp $
EAPI="4"
CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
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
sv sw ta te th tr uk vi zh_CN zh_TW"
inherit chromium eutils multilib pax-utils unpacker
DESCRIPTION="The web browser from Google"
HOMEPAGE="http://www.google.com/chrome"
case ${PV} in
*_alpha*)
SLOT="unstable"
MY_PV=${PV/_alpha/-r}
;;
*_beta*)
SLOT="beta"
MY_PV=${PV/_beta/-r}
;;
*_p*)
SLOT="stable"
MY_PV=${PV/_p/-r}
;;
*)
die "Invalid value for \${PV}: ${PV}"
;;
esac
MY_PN="${PN}-${SLOT}"
MY_P="${MY_PN}_${MY_PV}"
SRC_BASE="http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_"
SRC_URI="amd64? ( ${SRC_BASE}amd64.deb ) x86? ( ${SRC_BASE}i386.deb )"
LICENSE="google-chrome"
KEYWORDS="-* ~amd64 ~x86"
IUSE="+plugins"
RESTRICT="mirror strip"
RDEPEND="
media-libs/alsa-lib
app-arch/bzip2
x11-libs/cairo
net-print/cups
sys-apps/dbus
dev-libs/expat
media-libs/fontconfig
media-libs/freetype
app-misc/ca-certificates
gnome-base/gconf:2
dev-libs/libgcrypt
x11-libs/gdk-pixbuf
x11-libs/gtk+:2
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
x11-libs/pango
media-libs/libpng:1.2
|| ( >=sys-devel/gcc-4.4.0[-nocxx] >=sys-devel/gcc-4.4.0[cxx] )
sys-fs/udev
x11-libs/libX11
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrender
x11-libs/libXScrnSaver
sys-libs/zlib
x11-misc/xdg-utils
net-misc/curl
dev-libs/openssl:0.9.8
"
# Add blockers for the other slots.
for x in 0 beta stable unstable; do
if [[ ${SLOT} != ${x} ]]; then
RDEPEND+=" !${CATEGORY}/${PN}:${x}"
fi
done
QA_PREBUILT="*"
S=${WORKDIR}
pkg_setup() {
chromium_suid_sandbox_check_kernel_config
}
src_install() {
CHROME_HOME="opt/google/chrome/"
pax-mark m ${CHROME_HOME}chrome || die
rm -rf usr/share/menu || die
mv usr/share/doc/${PN} usr/share/doc/${PF} || die
pushd "${CHROME_HOME}locales" > /dev/null || die
chromium_remove_language_paks
popd
mv opt usr "${D}" || die
fperms u+s "/${CHROME_HOME}chrome-sandbox" || die
if use plugins ; then
local args='"$@"'
local plugins="/usr/$(get_libdir)/nsbrowser/plugins"
sed -e "s:${args}:--extra-plugin-dir=\"${plugins}\" \\0:" \
-i "${D}${CHROME_HOME}google-chrome" || die
fi
domenu "${D}${CHROME_HOME}google-chrome.desktop" || die
local size
for size in 16 22 24 32 48 64 128 256 ; do
insinto /usr/share/icons/hicolor/${size}x${size}/apps
newins "${D}${CHROME_HOME}product_logo_${size}.png" google-chrome.png
done
}
pkg_postinst() {
chromium_pkg_postinst
einfo
elog "Please notice the bundled flash player (PepperFlash)."
elog "You can (de)activate all flash plugins via chrome://plugins"
einfo
}
|