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