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