1 |
jer 09/09/10 15:17:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-10.10_pre4609.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2009/09/10/moar-bilds>. |
7 |
(Portage version: 2.2_rc40/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.389 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.389&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.389&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.388&r2=1.389 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.388 |
20 |
retrieving revision 1.389 |
21 |
diff -u -r1.388 -r1.389 |
22 |
--- ChangeLog 8 Sep 2009 08:37:37 -0000 1.388 |
23 |
+++ ChangeLog 10 Sep 2009 15:17:35 -0000 1.389 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for www-client/opera |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.388 2009/09/08 08:37:37 fauli Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.389 2009/09/10 15:17:35 jer Exp $ |
29 |
+ |
30 |
+*opera-10.10_pre4609 (10 Sep 2009) |
31 |
+ |
32 |
+ 10 Sep 2009; Jeroen Roovers <jer@g.o> +opera-10.10_pre4609.ebuild: |
33 |
+ Version bump <http://my.opera.com/desktopteam/blog/2009/09/10/moar-bilds>. |
34 |
|
35 |
08 Sep 2009; Christian Faulhammer <fauli@g.o> opera-10.00.ebuild: |
36 |
stable x86, security bug 283391 |
37 |
|
38 |
|
39 |
|
40 |
1.1 www-client/opera/opera-10.10_pre4609.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10_pre4609.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.10_pre4609.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: opera-10.10_pre4609.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.10_pre4609.ebuild,v 1.1 2009/09/10 15:17:35 jer Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
|
53 |
GCONF_DEBUG="no" |
54 |
|
55 |
inherit eutils gnome2 |
56 |
|
57 |
DESCRIPTION="A standards-compliant graphical Web browser" |
58 |
HOMEPAGE="http://www.opera.com/" |
59 |
|
60 |
SLOT="0" |
61 |
LICENSE="OPERA-10.00" |
62 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
63 |
|
64 |
RESTRICT="mirror strip test" |
65 |
QA_DT_HASH="opt/${PN}/.*" |
66 |
|
67 |
IUSE="elibc_FreeBSD gnome ia32 qt3 qt-static" |
68 |
MY_LINGUAS="be bg cs da de el en-GB es-ES es-LA et fi fr fr-CA fy hi hr hu id it ja ka ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk zh-CN zh-HK zh-TW" |
69 |
|
70 |
for MY_LINGUA in ${MY_LINGUAS}; do |
71 |
IUSE="${IUSE} linguas_${MY_LINGUA/-/_}" |
72 |
done |
73 |
|
74 |
O_U="http://snapshot.opera.com/unix/snapshot-${PV/*_pre}/" |
75 |
|
76 |
# 1) Please check for missing (qt3/qt-static) builds |
77 |
# 2) and only then update the build number manually |
78 |
OPERABUILD="4609" |
79 |
|
80 |
if [ "${PV/*_pre}" = "${OPERABUILD}" ]; then |
81 |
O_P="${P/_pre*/}-${OPERABUILD}" |
82 |
else |
83 |
O_P="SET_OPERABUILD_IN_THE_EBUILD" |
84 |
fi |
85 |
|
86 |
SRC_URI=" |
87 |
amd64? ( |
88 |
!ia32? ( |
89 |
qt-static? ( ${O_U}x86_64-linux/${O_P}.gcc4-bundled-qt4.x86_64.tar.bz2 ) |
90 |
!qt-static? ( |
91 |
qt3? ( ${O_U}x86_64-linux/${O_P}.gcc4-shared-qt3.x86_64.tar.bz2 ) |
92 |
!qt3? ( ${O_U}x86_64-linux/${O_P}.gcc4-qt4.x86_64.tar.bz2 ) |
93 |
) |
94 |
) |
95 |
ia32? ( |
96 |
qt-static? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 ) |
97 |
!qt-static? ( |
98 |
qt3? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
99 |
!qt3? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
100 |
) |
101 |
) |
102 |
) |
103 |
ppc? ( ${O_U}ppc-linux/${O_P}.gcc4-shared-qt3.ppc.tar.bz2 ) |
104 |
x86? ( |
105 |
qt-static? ( ${O_U}intel-linux/${O_P}.gcc4-bundled-qt4.i386.tar.bz2 ) |
106 |
!qt-static? ( |
107 |
qt3? ( ${O_U}intel-linux/${O_P}.gcc4-shared-qt3.i386.tar.bz2 ) |
108 |
!qt3? ( ${O_U}intel-linux/${O_P}.gcc4-qt4.i386.tar.bz2 ) |
109 |
) |
110 |
) |
111 |
x86-fbsd? ( ${O_U}intel-freebsd/${O_P}.freebsd6-shared-qt3.i386.tar.bz2 ) |
112 |
" |
113 |
|
114 |
DEPEND=">=sys-apps/sed-4" |
115 |
|
116 |
RDEPEND=" |
117 |
media-libs/jpeg |
118 |
media-libs/libexif |
119 |
>=media-libs/fontconfig-2.1.94-r1 |
120 |
x11-libs/libXrandr |
121 |
x11-libs/libXp |
122 |
x11-libs/libXmu |
123 |
x11-libs/libXi |
124 |
x11-libs/libXft |
125 |
x11-libs/libXext |
126 |
x11-libs/libXcursor |
127 |
x11-libs/libX11 |
128 |
x11-libs/libSM |
129 |
x11-libs/libICE |
130 |
amd64? ( |
131 |
ia32? ( |
132 |
qt-static? ( media-libs/nas ) |
133 |
!qt-static? ( |
134 |
qt3? ( =x11-libs/qt-3*[-immqt] ) |
135 |
!qt3? ( x11-libs/qt-core x11-libs/qt-gui ) |
136 |
) |
137 |
) |
138 |
!ia32? ( |
139 |
qt-static? ( media-libs/nas ) |
140 |
!qt-static? ( |
141 |
qt3? ( =x11-libs/qt-3*[-immqt] ) |
142 |
!qt3? ( x11-libs/qt-core x11-libs/qt-gui ) |
143 |
) |
144 |
) |
145 |
) |
146 |
x86? ( |
147 |
qt-static? ( media-libs/nas ) |
148 |
!qt-static? ( |
149 |
qt3? ( =x11-libs/qt-3*[-immqt] ) |
150 |
!qt3? ( x11-libs/qt-core x11-libs/qt-gui ) |
151 |
) |
152 |
) |
153 |
ppc? ( =x11-libs/qt-3*[-immqt] ) |
154 |
x86-fbsd? ( =x11-libs/qt-3*[-immqt] ) |
155 |
" |
156 |
|
157 |
opera_linguas() { |
158 |
# Remove unwanted LINGUAS: |
159 |
local LINGUA |
160 |
local LNGDIR="${D}/opt/opera/share/opera/locale" |
161 |
einfo "Keeping these locales: ${LINGUAS}." |
162 |
for LINGUA in ${MY_LINGUAS}; do |
163 |
if ! use linguas_${LINGUA/-/_}; then |
164 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
165 |
rm -r "${LINGUA}" |
166 |
fi |
167 |
done |
168 |
} |
169 |
|
170 |
pkg_setup() { |
171 |
elog "${WARN}If you seek support, please file a bug report at${NORMAL}" |
172 |
elog "${WARN}https://bugs.gentoo.org and post the output of${NORMAL}" |
173 |
elog "${WARN} \`emerge --info =${CATEGORY}/${P}'${NORMAL}" |
174 |
} |
175 |
|
176 |
src_unpack() { |
177 |
unpack ${A} |
178 |
if [[ ! -d ${S} ]]; then |
179 |
cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" |
180 |
S="$(pwd)" |
181 |
einfo "Setting WORKDIR to ${S}" |
182 |
fi |
183 |
} |
184 |
|
185 |
src_prepare() { |
186 |
epatch "${FILESDIR}/${PN}-gentoo.patch" |
187 |
epatch "${FILESDIR}/${PN}-simplify-desktop.patch" |
188 |
epatch "${FILESDIR}/${PN}-freedesktop.patch" |
189 |
|
190 |
# bug #181300: |
191 |
if use elibc_FreeBSD; then |
192 |
epatch "${FILESDIR}/${PN}-10.00-pluginpath-fbsd.patch" |
193 |
else |
194 |
epatch "${FILESDIR}/${PN}-10.00-pluginpath.patch" |
195 |
fi |
196 |
|
197 |
sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ |
198 |
-e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \ |
199 |
-e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \ |
200 |
-e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \ |
201 |
install.sh || die "sed failed" |
202 |
} |
203 |
|
204 |
# These workarounds are sadly needed because gnome2.eclass doesn't check |
205 |
# whether a configure/Makefile script exists. |
206 |
src_configure() { :; } |
207 |
src_compile() { :; } |
208 |
|
209 |
src_install() { |
210 |
# Prepare installation directories for Opera's installer script. |
211 |
dodir /etc |
212 |
|
213 |
# Opera's native installer. |
214 |
./install.sh --prefix="${D}"/opt/opera || die "install.sh failed" |
215 |
|
216 |
einfo "It is safe to ignore warnings about failed checksums" |
217 |
einfo "and about files that would be ignored ..." |
218 |
einfo "Completing the installation where install.sh abandoned us ..." |
219 |
|
220 |
# java workaround |
221 |
sed -i -e 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' "${D}"/opt/opera/bin/opera |
222 |
|
223 |
dosed /opt/opera/bin/opera |
224 |
dosed /opt/opera/share/opera/java/opera.policy |
225 |
|
226 |
# Adapt desktop file to Gnome when needed |
227 |
use gnome && sed -i -e s:"GenericName\[":"Comment\[": "${D}"/usr/share/applications/opera.desktop |
228 |
|
229 |
# Install a symlink /usr/bin/opera |
230 |
dodir /usr/bin |
231 |
dosym /opt/opera/bin/opera /usr/bin/opera |
232 |
|
233 |
dodir /etc/revdep-rebuild |
234 |
echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > "${D}"/etc/revdep-rebuild/90opera |
235 |
|
236 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
237 |
if use elibc_FreeBSD; then |
238 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ |
239 |
while read i; do |
240 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
241 |
then |
242 |
export SANITY_CHECK_LIBZ_FAILED=1 |
243 |
break |
244 |
fi |
245 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
246 |
done |
247 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
248 |
fi |
249 |
|
250 |
# Add the Opera man dir to MANPATH: |
251 |
insinto /etc/env.d |
252 |
echo 'MANPATH="/opt/opera/share/man"' >> "${D}"/etc/env.d/90opera |
253 |
|
254 |
[[ -z MY_LINGUAS ]] || opera_linguas |
255 |
} |
256 |
|
257 |
pkg_postinst() { |
258 |
use gnome && gnome2_pkg_postinst |
259 |
|
260 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
261 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
262 |
elog "file chooser at /opt/opera/share/opera/locale/, then enter the" |
263 |
elog "directory for the language you want and [Open] the .lng file." |
264 |
|
265 |
elog |
266 |
elog "To use the spellchecker (USE=spell) for languages other than English, do:" |
267 |
elog " emerge app-dicts/myspell-[your language]" |
268 |
elog " mkdir \${HOME}/.opera/dictionaries" |
269 |
elog " cd \${HOME}/.opera/dictionaries" |
270 |
elog " ln -s /usr/share/myspell/*.{aff,dic} ." |
271 |
elog "A future release of Opera should remedy this inconvenience." |
272 |
|
273 |
if use elibc_FreeBSD; then |
274 |
elog |
275 |
elog "To improve shared memory usage please set:" |
276 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
277 |
fi |
278 |
|
279 |
elog |
280 |
elog "The current Opera builds may still have issues with plugins, notably" |
281 |
elog "www-plugins/adobe-flash. See also https://bugs.gentoo.org/198162" |
282 |
} |
283 |
|
284 |
pkg_postrm() { |
285 |
use gnome && gnome2_pkg_postrm |
286 |
} |