blob: 57d48ca1a55e4f47eddd2c398e9277c6dafb639d (
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome2 xdg-utils eutils multilib unpacker
MY_PV=${PV/_p/-}
MY_PN=${PN%%-bin-debian}
DESCRIPTION="Chromium build from Debian unstable"
HOMEPAGE="http://packages.debian.org/sid/chromium"
SRC_PREFIX="http://snapshot.debian.org/archive/debian/20171219T035235Z/pool"
SRC_URI="${SRC_PREFIX}/main/${PN:0:1}/${PN:0:8}-browser/${PN:0:8}_${MY_PV}_amd64.deb
${SRC_PREFIX}/main/c/crystalhd/libcrystalhd3_0.0~git20110715.fdd2f19-11_amd64.deb
${SRC_PREFIX}/main/f/ffmpeg/libavcodec57_3.4.1-1_amd64.deb
${SRC_PREFIX}/main/f/ffmpeg/libavformat57_3.4.1-1_amd64.deb
${SRC_PREFIX}/main/f/ffmpeg/libavutil55_3.4.1-1_amd64.deb
${SRC_PREFIX}/main/f/ffmpeg/libswresample2_3.4.1-1_amd64.deb
${SRC_PREFIX}/main/i/icu/libicu57_57.1-8_amd64.deb
${SRC_PREFIX}/main/libb/libbluray/libbluray2_1.0.2-1_amd64.deb
${SRC_PREFIX}/main/libo/libopenmpt/libopenmpt0_0.3.4-1_amd64.deb
${SRC_PREFIX}/main/libs/libssh/libssh-gcrypt-4_0.7.3-2_amd64.deb
${SRC_PREFIX}/main/n/numactl/libnuma1_2.0.11-2.1_amd64.deb
${SRC_PREFIX}/main/r/re2/libre2-3_20170101+dfsg-1_amd64.deb
${SRC_PREFIX}/main/s/shine/libshine3_3.1.0-2.1_amd64.deb
${SRC_PREFIX}/main/x/x265/libx265-95_2.1-2+b2_amd64.deb
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="app-arch/dpkg"
RDEPEND="
app-accessibility/speech-dispatcher
app-arch/snappy
app-crypt/mit-krb5
dev-libs/atk
dev-libs/expat
dev-libs/glib:2
dev-libs/libevent:0/2.1-6
dev-libs/libxml2
dev-libs/libxslt
dev-libs/nspr
dev-libs/nss
gnome-base/libgnome-keyring
media-libs/alsa-lib
media-libs/chromaprint:0/1
media-libs/flac
media-libs/fontconfig
media-libs/freetype
media-libs/game-music-emu
media-libs/harfbuzz
media-libs/lcms
>=media-libs/libjpeg-turbo-1.3.1
media-libs/libpng:0/16
media-libs/libvpx:0/4
media-libs/libwebp:0/7
media-libs/openjpeg:0/5
media-libs/opus
media-libs/schroedinger
media-libs/soxr
media-libs/x265
media-libs/xvid
media-libs/zvbi
>=media-sound/pulseaudio-2.0
media-sound/twolame
media-sound/wavpack
net-print/cups
sys-apps/dbus
>=sys-devel/gcc-4.9:*[cxx]
sys-libs/zlib
x11-libs/cairo
x11-libs/gdk-pixbuf
x11-libs/gtk+:3
x11-libs/libva
x11-libs/libvdpau
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libxcb
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXtst
x11-libs/pango
"
S=${WORKDIR}
src_prepare() {
epatch "${FILESDIR}"/${PN}-53.0.2785.143_p1-gentoo.patch
epatch "${FILESDIR}"/${PN}-56.0.2924.76_p5-enable-remote-extensions.patch
eapply_user
local libdir="$(get_libdir)"
QA_PRESTRIPPED="
usr/${libdir}/chromium/chrome-sandbox
usr/${libdir}/chromium/chromium
usr/${libdir}/chromium/x86_64-linux-gnu/lib.\\+
"
}
src_configure() { :; }
src_install() {
mv usr etc "${D}"/ || die
local libdir="$(get_libdir)"
[[ "${libdir}" != lib ]] && {
mv "${D}"/usr/{lib,"${libdir}"} || die
}
# Make it find Debian libraries, sourced by /usr/bin/chromium
# While at it, we move them somewhere with less risk of collision
mv "${D}"/usr/lib64/{,chromium/}x86_64-linux-gnu/ || die
echo 'export LD_LIBRARY_PATH="/usr/lib64/chromium/x86_64-linux-gnu/${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"' \
> "${D}"/etc/chromium.d/ld-library-path
# Link to Flash (not in RDEPEND)
local flash_plugin_dir=/usr/${libdir}/firefox/plugins
dodir "${flash_plugin_dir}"
ln -s ../../nsbrowser/plugins/libflashplayer.so "${D}"/${flash_plugin_dir}/libflashplayer.so || die
# Otherwise:
# [14345:14345:0708/125539:FATAL:zygote_host_impl_linux.cc(140)]
# The SUID sandbox helper binary was found, but is not configured correctly.
# Rather than run without sandboxing I'm aborting now. You need to make sure
# that /usr/lib/chromium/chromium-sandbox is owned by root and has mode 4755.
# Aborted
chmod 4755 "${D}"/usr/${libdir}/${MY_PN}/chrome-sandbox || die
}
pkg_postinst() {
gnome2_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
gnome2_icon_cache_update
xdg_desktop_database_update
}
|