Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/chrome-binary-plugins: chrome-binary-plugins-31.0.1650.39_beta1.ebuild ChangeLog chrome-binary-plugins-31.0.1650.34_beta1.ebuild
Date: Thu, 31 Oct 2013 16:24:41
Message-Id: 20131031162437.E613020047@flycatcher.gentoo.org
1 floppym 13/10/31 16:24:37
2
3 Modified: ChangeLog
4 Added: chrome-binary-plugins-31.0.1650.39_beta1.ebuild
5 Removed: chrome-binary-plugins-31.0.1650.34_beta1.ebuild
6 Log:
7 Automated update.
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
10
11 Revision Changes Path
12 1.72 www-plugins/chrome-binary-plugins/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog?rev=1.72&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog?rev=1.72&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog?r1=1.71&r2=1.72
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v
21 retrieving revision 1.71
22 retrieving revision 1.72
23 diff -u -r1.71 -r1.72
24 --- ChangeLog 29 Oct 2013 23:33:47 -0000 1.71
25 +++ ChangeLog 31 Oct 2013 16:24:37 -0000 1.72
26 @@ -1,6 +1,13 @@
27 # ChangeLog for www-plugins/chrome-binary-plugins
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v 1.71 2013/10/29 23:33:47 floppym Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v 1.72 2013/10/31 16:24:37 floppym Exp $
31 +
32 +*chrome-binary-plugins-31.0.1650.39_beta1 (31 Oct 2013)
33 +
34 + 31 Oct 2013; Mike Gilbert <floppym@g.o>
35 + +chrome-binary-plugins-31.0.1650.39_beta1.ebuild,
36 + -chrome-binary-plugins-31.0.1650.34_beta1.ebuild:
37 + Automated update.
38
39 *chrome-binary-plugins-32.0.1685.0_alpha1 (29 Oct 2013)
40
41
42
43
44 1.1 www-plugins/chrome-binary-plugins/chrome-binary-plugins-31.0.1650.39_beta1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/chrome-binary-plugins-31.0.1650.39_beta1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/chrome-binary-plugins-31.0.1650.39_beta1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: chrome-binary-plugins-31.0.1650.39_beta1.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/chrome-binary-plugins-31.0.1650.39_beta1.ebuild,v 1.1 2013/10/31 16:24:37 floppym Exp $
54
55 EAPI=4
56
57 inherit multilib unpacker
58
59 DESCRIPTION="Binary plugins -- native API Flash and PDF -- from Google Chrome for use in Chromium."
60 HOMEPAGE="http://www.google.com/chrome"
61
62 case ${PV} in
63 *_alpha*)
64 SLOT="unstable"
65 MY_PV=${PV/_alpha/-}
66 ;;
67 *_beta*)
68 SLOT="beta"
69 MY_PV=${PV/_beta/-}
70 ;;
71 *_p*)
72 SLOT="stable"
73 MY_PV=${PV/_p/-}
74 ;;
75 *)
76 die "Invalid value for \${PV}: ${PV}"
77 ;;
78 esac
79
80 MY_PN="google-chrome-${SLOT}"
81 MY_P="${MY_PN}_${MY_PV}"
82
83 SRC_URI="
84 amd64? (
85 http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb
86 )
87 x86? (
88 http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_i386.deb
89 )
90 "
91
92 LICENSE="google-chrome"
93 KEYWORDS="~amd64 ~x86"
94 IUSE="+flash +pdf"
95 RESTRICT="bindist mirror strip"
96
97 RDEPEND="www-client/chromium"
98
99 for x in 0 beta stable unstable; do
100 if [[ ${SLOT} != ${x} ]]; then
101 RDEPEND+=" !${CATEGORY}/${PN}:${x}"
102 fi
103 done
104
105 S="${WORKDIR}/opt/google/chrome"
106 QA_PREBUILT="*"
107
108 src_install() {
109 local version flapper
110
111 insinto /usr/$(get_libdir)/chromium-browser/
112
113 use pdf && doins libpdf.so
114
115 if use flash; then
116 doins -r PepperFlash
117
118 # Since this is a live ebuild, we're forced to, unfortuantely,
119 # dynamically construct the command line args for Chromium.
120 version=$(sed -n 's/.*"version": "\(.*\)",.*/\1/p' PepperFlash/manifest.json)
121 flapper="${ROOT}usr/$(get_libdir)/chromium-browser/PepperFlash/libpepflashplayer.so"
122 echo -n "CHROMIUM_FLAGS=\"\${CHROMIUM_FLAGS} " > pepper-flash
123 echo -n "--ppapi-flash-path=$flapper " >> pepper-flash
124 echo "--ppapi-flash-version=$version\"" >> pepper-flash
125
126 insinto /etc/chromium/
127 doins pepper-flash
128 fi
129 }
130
131 pkg_postinst() {
132 use flash || return
133
134 einfo
135 einfo "To enable Flash for Chromium, source ${ROOT}etc/chromium/pepper-flash"
136 einfo "inside ${ROOT}etc/chromium/default. You may run this as root:"
137 einfo
138 einfo " # echo . ${ROOT}etc/chromium/pepper-flash >> ${ROOT}etc/chromium/default"
139 einfo
140 }