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