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