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