1 |
jer 12/05/10 14:29:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-next-12.00.1406.ebuild |
5 |
Removed: opera-next-12.00.1380.ebuild |
6 |
opera-next-12.00.1386.ebuild |
7 |
opera-next-12.00.1385.ebuild |
8 |
opera-next-12.00.1383.ebuild |
9 |
Log: |
10 |
http://my.opera.com/desktopteam/blog/2012/05/10/mac-sandboxing |
11 |
|
12 |
(Portage version: 2.2.0_alpha103/cvs/Linux x86_64) |
13 |
|
14 |
Revision Changes Path |
15 |
1.81 www-client/opera-next/ChangeLog |
16 |
|
17 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?rev=1.81&view=markup |
18 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?rev=1.81&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/ChangeLog?r1=1.80&r2=1.81 |
20 |
|
21 |
Index: ChangeLog |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v |
24 |
retrieving revision 1.80 |
25 |
retrieving revision 1.81 |
26 |
diff -u -r1.80 -r1.81 |
27 |
--- ChangeLog 25 Apr 2012 15:31:27 -0000 1.80 |
28 |
+++ ChangeLog 10 May 2012 14:29:47 -0000 1.81 |
29 |
@@ -1,6 +1,13 @@ |
30 |
# ChangeLog for www-client/opera-next |
31 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.80 2012/04/25 15:31:27 jer Exp $ |
33 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/ChangeLog,v 1.81 2012/05/10 14:29:47 jer Exp $ |
34 |
+ |
35 |
+*opera-next-12.00.1406 (10 May 2012) |
36 |
+ |
37 |
+ 10 May 2012; Jeroen Roovers <jer@g.o> -opera-next-12.00.1380.ebuild, |
38 |
+ -opera-next-12.00.1383.ebuild, -opera-next-12.00.1385.ebuild, |
39 |
+ -opera-next-12.00.1386.ebuild, +opera-next-12.00.1406.ebuild: |
40 |
+ http://my.opera.com/desktopteam/blog/2012/05/10/mac-sandboxing |
41 |
|
42 |
*opera-next-12.00.1387 (25 Apr 2012) |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
1.1 www-client/opera-next/opera-next-12.00.1406.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-12.00.1406.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/opera-next/opera-next-12.00.1406.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: opera-next-12.00.1406.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2012 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera-next/opera-next-12.00.1406.ebuild,v 1.1 2012/05/10 14:29:47 jer Exp $ |
57 |
|
58 |
EAPI="4" |
59 |
|
60 |
inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator |
61 |
|
62 |
DESCRIPTION="A fast and secure web browser and Internet suite" |
63 |
HOMEPAGE="http://www.opera.com/" |
64 |
|
65 |
SLOT="0" |
66 |
LICENSE="OPERA-11 LGPL-2 LGPL-3" |
67 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
68 |
IUSE="elibc_FreeBSD gtk gtk3 kde +gstreamer" |
69 |
|
70 |
O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00 |
71 |
O_B="$(get_version_component_range 3)" # Build version, i.e. 1156 |
72 |
|
73 |
O_D="328_${O_V}-${O_B}" |
74 |
O_P="${PN}-${O_V}-${O_B}" |
75 |
O_U="http://snapshot.opera.com/unix/" |
76 |
|
77 |
SRC_URI=" |
78 |
amd64? ( ${O_U}${O_D}/${O_P}.x86_64.linux.tar.xz ) |
79 |
x86? ( ${O_U}${O_D}/${O_P}.i386.linux.tar.xz ) |
80 |
x86-fbsd? ( ${O_U}${O_D}/${O_P}.i386.freebsd.tar.xz ) |
81 |
" |
82 |
|
83 |
OPREFIX="/usr/$(get_libdir)" |
84 |
|
85 |
QA_DT_HASH="${OPREFIX}/${PN}/.*" |
86 |
QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" |
87 |
|
88 |
O_LINGUAS=" |
89 |
af ar az be bg bn cs da de el en-GB es-ES es-LA et fa fi fr fr-CA fy gd he |
90 |
hi hr hu id it ja ka ko lt me mk ms nb nl nn pa pl pt pt-BR ro ru sk sr sv |
91 |
sw ta te th tl tr uk ur uz vi zh-CN zh-TW zu |
92 |
" |
93 |
|
94 |
for O_LINGUA in ${O_LINGUAS}; do |
95 |
IUSE="${IUSE} linguas_${O_LINGUA/-/_}" |
96 |
done |
97 |
|
98 |
DEPEND=" |
99 |
>=sys-apps/sed-4 |
100 |
app-arch/xz-utils |
101 |
" |
102 |
GTKRDEPEND=" |
103 |
dev-libs/atk |
104 |
dev-libs/glib:2 |
105 |
x11-libs/cairo |
106 |
x11-libs/gdk-pixbuf |
107 |
gtk? ( x11-libs/gtk+:2 ) |
108 |
gtk3? ( x11-libs/gtk+:3 ) |
109 |
x11-libs/pango |
110 |
x11-libs/pixman |
111 |
" |
112 |
KDERDEPEND=" |
113 |
kde-base/kdelibs |
114 |
x11-libs/qt-core |
115 |
x11-libs/qt-gui |
116 |
" |
117 |
GSTRDEPEND=" |
118 |
dev-libs/glib:2 |
119 |
dev-libs/libxml2 |
120 |
media-libs/gst-plugins-base |
121 |
media-libs/gstreamer |
122 |
media-plugins/gst-plugins-meta |
123 |
" |
124 |
RDEPEND=" |
125 |
media-libs/fontconfig |
126 |
media-libs/freetype |
127 |
sys-apps/util-linux |
128 |
sys-libs/zlib |
129 |
virtual/opengl |
130 |
x11-libs/libICE |
131 |
x11-libs/libSM |
132 |
x11-libs/libX11 |
133 |
x11-libs/libXext |
134 |
x11-libs/libXft |
135 |
x11-libs/libXrender |
136 |
x11-libs/libXt |
137 |
gtk? ( ${GTKRDEPEND} ) |
138 |
gtk3? ( ${GTKRDEPEND} ) |
139 |
kde? ( ${KDERDEPEND} ) |
140 |
gstreamer? ( ${GSTRDEPEND} ) |
141 |
" |
142 |
src_unpack() { |
143 |
unpack ${A} |
144 |
mv -v ${PN}* "${S}" || die |
145 |
} |
146 |
|
147 |
src_prepare() { |
148 |
local LNGDIR="share/${PN}/locale" |
149 |
|
150 |
# Count linguas |
151 |
count() { echo ${#}; } |
152 |
local lingua_count=$(count ${O_LINGUAS} en) |
153 |
local locale_count=$(count ${LNGDIR}/*) |
154 |
[[ ${lingua_count} = ${locale_count} ]] \ |
155 |
|| die "Number of LINGUAS does not match number of locales" |
156 |
unset count |
157 |
|
158 |
# Remove unwanted linguas |
159 |
einfo "Keeping these locales (linguas): ${LINGUAS}." |
160 |
for LINGUA in ${O_LINGUAS}; do |
161 |
if ! use linguas_${LINGUA/-/_}; then |
162 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
163 |
rm -r "${LINGUA}" || die "The list of linguas needs to be fixed" |
164 |
fi |
165 |
done |
166 |
|
167 |
# Remove doc directory but keep the LICENSE under another name (bug #315473) |
168 |
mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt |
169 |
rm -rf share/doc |
170 |
for locale in share/${PN}/locale/*; do |
171 |
rm -f "${locale}/license.txt" |
172 |
ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \ |
173 |
|| die |
174 |
done |
175 |
|
176 |
# Remove package directory |
177 |
rm -rf share/${PN}/package |
178 |
|
179 |
# Optional libraries |
180 |
if ! use gtk; then |
181 |
rm lib/${PN}/liboperagtk2.so || die |
182 |
fi |
183 |
if ! use gtk3; then |
184 |
rm lib/${PN}/liboperagtk3.so || die |
185 |
fi |
186 |
if ! use kde; then |
187 |
rm lib/${PN}/liboperakde4.so || die |
188 |
fi |
189 |
if ! use gstreamer; then |
190 |
rm -r lib/${PN}/gstreamer || die |
191 |
fi |
192 |
|
193 |
# Unzip the man pages before sedding |
194 |
gunzip share/man/man1/* || die |
195 |
|
196 |
local OPERA_SUFFIX= OPERA__SUFFIX= OPERAU_SUFFIX= |
197 |
if [[ ${PN} = opera-next ]]; then |
198 |
OPERA_SUFFIX="-next" |
199 |
OPERA__SUFFIX=" Next" |
200 |
OPERA_USUFFIX="-NEXT" |
201 |
fi |
202 |
|
203 |
# Replace PREFIX, SUFFIX and PN in various files |
204 |
sed -i \ |
205 |
-e "s:@@{PREFIX}:/usr:g" \ |
206 |
-e "s:@@{SUFFIX}:${OPERA_SUFFIX}:g" \ |
207 |
-e "s:@@{_SUFFIX}:${OPERA__SUFFIX}:g" \ |
208 |
-e "s:@@{USUFFIX}:${OPERA_USUFFIX}:g" \ |
209 |
share/man/man1/* \ |
210 |
share/mime/packages/* \ |
211 |
share/applications/${PN}-*.desktop \ |
212 |
|| die |
213 |
|
214 |
# Create /usr/bin/opera wrapper |
215 |
echo '#!/bin/sh' > ${PN} |
216 |
echo 'export OPERA_DIR="/usr/share/'"${PN}"'"' >> ${PN} |
217 |
echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \ |
218 |
>> ${PN} |
219 |
echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN} |
220 |
|
221 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
222 |
if use elibc_FreeBSD; then |
223 |
scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \ |
224 |
while read i; do |
225 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
226 |
then |
227 |
export SANITY_CHECK_LIBZ_FAILED=1 |
228 |
break |
229 |
fi |
230 |
sed -i \ |
231 |
"$i" \ |
232 |
-e 's/libz\.so\.3/libz.so.1/g' |
233 |
done |
234 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die |
235 |
fi |
236 |
} |
237 |
|
238 |
src_install() { |
239 |
# We install into usr instead of opt as Opera does not support the latter |
240 |
dodir /usr |
241 |
mv lib/ "${D}/${OPREFIX}" || die |
242 |
mv share/ "${D}/usr/" || die |
243 |
|
244 |
# Install startup scripts |
245 |
dobin ${PN} |
246 |
|
247 |
# Stop revdep-rebuild from checking opera binaries |
248 |
dodir /etc/revdep-rebuild |
249 |
echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \ |
250 |
> "${D}"/etc/revdep-rebuild/90${PN} |
251 |
|
252 |
# Set PaX markings for hardened/PaX (bug #344267) |
253 |
pax-mark m "${D}"/${OPREFIX}/${PN}/opera* |
254 |
} |
255 |
|
256 |
pkg_preinst() { |
257 |
gnome2_icon_savelist |
258 |
} |
259 |
|
260 |
pkg_postinst() { |
261 |
if use elibc_FreeBSD; then |
262 |
elog |
263 |
elog "To improve shared memory usage please set:" |
264 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
265 |
fi |
266 |
|
267 |
# Update desktop file database and gtk icon cache (bug #334993) |
268 |
gnome2_icon_cache_update |
269 |
fdo-mime_desktop_database_update |
270 |
} |
271 |
|
272 |
pkg_postrm() { |
273 |
# Update desktop file database and gtk icon cache (bug #334993) |
274 |
gnome2_icon_cache_update |
275 |
fdo-mime_desktop_database_update |
276 |
} |