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