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