Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/betagarden:master commit in: www-client/chromium-bin-debian/
Date: Sun, 25 Dec 2016 18:08:25
Message-Id: 1482689224.0f809d2142868ac161501db3af5bb2eb31191b07.sping@gentoo
1 commit: 0f809d2142868ac161501db3af5bb2eb31191b07
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 25 18:07:04 2016 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 25 18:07:04 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=0f809d21
7
8 www-client/chromium-bin-debian: 55.0.2883.75_p3
9
10 .../chromium-bin-debian-55.0.2883.75_p3.ebuild | 119 +++++++++++++++++++++
11 1 file changed, 119 insertions(+)
12
13 diff --git a/www-client/chromium-bin-debian/chromium-bin-debian-55.0.2883.75_p3.ebuild b/www-client/chromium-bin-debian/chromium-bin-debian-55.0.2883.75_p3.ebuild
14 new file mode 100644
15 index 0000000..41d31bb
16 --- /dev/null
17 +++ b/www-client/chromium-bin-debian/chromium-bin-debian-55.0.2883.75_p3.ebuild
18 @@ -0,0 +1,119 @@
19 +# Copyright 1999-2016 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI=5
24 +
25 +inherit eutils multilib unpacker
26 +
27 +MY_PV=${PV/_p/-}
28 +MY_PN=${PN%%-bin-debian}
29 +
30 +DESCRIPTION="Chromium build from Debian unstable"
31 +HOMEPAGE="http://packages.debian.org/sid/chromium"
32 +SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN:0:8}-browser/${PN:0:8}_${MY_PV}_amd64.deb
33 + mirror://debian/pool/main/c/crystalhd/libcrystalhd3_0.0~git20110715.fdd2f19-11_amd64.deb
34 + mirror://debian/pool/main/f/ffmpeg/libavcodec57_3.2-2_amd64.deb
35 + mirror://debian/pool/main/f/ffmpeg/libavformat57_3.2-2_amd64.deb
36 + mirror://debian/pool/main/f/ffmpeg/libavutil55_3.2-2_amd64.deb
37 + mirror://debian/pool/main/f/ffmpeg/libswresample2_3.2-2_amd64.deb
38 + mirror://debian/pool/main/i/icu/libicu57_57.1-5_amd64.deb
39 + mirror://debian/pool/main/libe/libevent/libevent-2.0-5_2.0.21-stable-2.1_amd64.deb
40 + mirror://debian/pool/main/libs/libssh/libssh-gcrypt-4_0.7.3-1_amd64.deb
41 + mirror://debian/pool/main/n/numactl/libnuma1_2.0.11-1_amd64.deb
42 + mirror://debian/pool/main/r/re2/libre2-3_20161101+dfsg-2_amd64.deb
43 + mirror://debian/pool/main/s/shine/libshine3_3.1.0-2.1_amd64.deb
44 + "
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +IUSE=""
50 +
51 +DEPEND="app-arch/dpkg"
52 +RDEPEND="
53 + app-accessibility/speech-dispatcher
54 + app-arch/snappy
55 + app-crypt/mit-krb5
56 + dev-libs/atk
57 + dev-libs/expat
58 + dev-libs/glib:2
59 + !dev-libs/icu:0/57
60 + dev-libs/libevent
61 + dev-libs/libxml2
62 + dev-libs/libxslt
63 + dev-libs/nspr
64 + dev-libs/nss
65 + gnome-base/libgnome-keyring
66 + media-libs/alsa-lib
67 + media-libs/flac
68 + media-libs/fontconfig
69 + media-libs/freetype
70 + media-libs/game-music-emu
71 + media-libs/harfbuzz
72 + media-libs/libbluray
73 + >=media-libs/libjpeg-turbo-1.3.1
74 + media-libs/libpng:0/16
75 + media-libs/libvpx:0/4
76 + media-libs/libwebp:0/6
77 + media-libs/openjpeg:0/5
78 + media-libs/schroedinger
79 + media-libs/soxr
80 + media-libs/x265
81 + media-libs/zvbi
82 + >=media-sound/pulseaudio-2.0
83 + media-sound/twolame
84 + media-sound/wavpack
85 + net-print/cups
86 + sys-apps/dbus
87 + >=sys-devel/gcc-4.9:*[cxx]
88 + sys-libs/zlib
89 + x11-libs/cairo
90 + x11-libs/gdk-pixbuf
91 + x11-libs/gtk+
92 + x11-libs/libva
93 + x11-libs/libvdpau
94 + x11-libs/libX11
95 + x11-libs/libXScrnSaver
96 + x11-libs/libxcb
97 + x11-libs/libXcomposite
98 + x11-libs/libXcursor
99 + x11-libs/libXext
100 + x11-libs/libXfixes
101 + x11-libs/libXi
102 + x11-libs/libXrandr
103 + x11-libs/libXrender
104 + x11-libs/libXtst
105 + x11-libs/pango
106 + "
107 +
108 +S=${WORKDIR}
109 +
110 +src_prepare() {
111 + epatch "${FILESDIR}"/${PN}-53.0.2785.143_p1-gentoo.patch
112 +}
113 +
114 +src_install() {
115 + mv usr etc "${D}"/ || die
116 +
117 + local libdir=$(get_libdir)
118 + [[ "${libdir}" != lib ]] && {
119 + mv "${D}"/usr/{lib,"${libdir}"} || die
120 + }
121 +
122 + # Make it find ffmpeg
123 + mv "${D}"/usr/${libdir}/x86_64{-linux-gnu,} || die
124 +
125 + # Link to Flash (not in RDEPEND)
126 + local flash_plugin_dir=/usr/${libdir}/firefox/plugins
127 + dodir "${flash_plugin_dir}"
128 + ln -s ../../nsbrowser/plugins/libflashplayer.so "${D}"/${flash_plugin_dir}/libflashplayer.so || die
129 +
130 + # Otherwise:
131 + # [14345:14345:0708/125539:FATAL:zygote_host_impl_linux.cc(140)]
132 + # The SUID sandbox helper binary was found, but is not configured correctly.
133 + # Rather than run without sandboxing I'm aborting now. You need to make sure
134 + # that /usr/lib/chromium/chromium-sandbox is owned by root and has mode 4755.
135 + # Aborted
136 + chmod 4755 "${D}"/usr/${libdir}/${MY_PN}/chrome-sandbox || die
137 +}