1 |
jer 10/03/30 17:09:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: opera-10.52_pre6273.ebuild |
5 |
Log: |
6 |
Version bump <http://my.opera.com/desktopteam/blog/2010/03/30/hello-is-this-thing-on>. |
7 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.460 www-client/opera/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.460&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.460&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.459&r2=1.460 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v |
19 |
retrieving revision 1.459 |
20 |
retrieving revision 1.460 |
21 |
diff -u -r1.459 -r1.460 |
22 |
--- ChangeLog 28 Mar 2010 17:17:57 -0000 1.459 |
23 |
+++ ChangeLog 30 Mar 2010 17:09:34 -0000 1.460 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for www-client/opera |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.459 2010/03/28 17:17:57 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.460 2010/03/30 17:09:34 jer Exp $ |
29 |
+ |
30 |
+*opera-10.52_pre6273 (30 Mar 2010) |
31 |
+ |
32 |
+ 30 Mar 2010; Jeroen Roovers <jer@g.o> +opera-10.52_pre6273.ebuild: |
33 |
+ Version bump |
34 |
+ <http://my.opera.com/desktopteam/blog/2010/03/30/hello-is-this-thing-on>. |
35 |
|
36 |
*opera-10.52_pre6272-r1 (28 Mar 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/opera/opera-10.52_pre6273.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.52_pre6273.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-10.52_pre6273.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: opera-10.52_pre6273.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-10.52_pre6273.ebuild,v 1.1 2010/03/30 17:09:34 jer Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
OPREFIX="/usr/lib" |
55 |
|
56 |
inherit eutils |
57 |
|
58 |
DESCRIPTION="A standards-compliant graphical Web browser" |
59 |
HOMEPAGE="http://www.opera.com/" |
60 |
|
61 |
SLOT="0" |
62 |
LICENSE="OPERA-10.50 LGPL-2 LGPL-3" |
63 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
64 |
|
65 |
RESTRICT="mirror test" |
66 |
|
67 |
QA_DT_HASH="${OPREFIX}/${PN}/.*" |
68 |
QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" |
69 |
|
70 |
IUSE="elibc_FreeBSD" |
71 |
|
72 |
MY_LINGUAS=" |
73 |
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 |
74 |
ko lt mk nb nl nn pl pt pt-BR ro ru sk sr sv ta te tr uk vi zh-CN zh-HK |
75 |
zh-TW |
76 |
" |
77 |
|
78 |
for MY_LINGUA in ${MY_LINGUAS}; do |
79 |
IUSE="${IUSE} linguas_${MY_LINGUA/-/_}" |
80 |
done |
81 |
|
82 |
O_U="http://snapshot.opera.com/unix/snapshot-${PV/*_pre}/" |
83 |
O_P="${P/_pre/-}" |
84 |
|
85 |
SRC_URI=" |
86 |
amd64? ( ${O_U}${O_P}.x86_64.linux.tar.bz2 ) |
87 |
x86? ( ${O_U}${O_P}.i386.linux.tar.bz2 ) |
88 |
x86-fbsd? ( ${O_U}${O_P}.i386.freebsd.tar.bz2 ) |
89 |
" |
90 |
|
91 |
DEPEND=">=sys-apps/sed-4" |
92 |
|
93 |
RDEPEND=" |
94 |
=x11-libs/gtk+-2* |
95 |
dev-libs/atk |
96 |
dev-libs/expat |
97 |
dev-libs/glib |
98 |
media-libs/fontconfig |
99 |
media-libs/freetype |
100 |
media-libs/glitz |
101 |
media-plugins/gst-plugins-meta |
102 |
media-libs/libpng |
103 |
sys-apps/util-linux |
104 |
sys-libs/zlib |
105 |
virtual/opengl |
106 |
x11-libs/cairo |
107 |
x11-libs/libICE |
108 |
x11-libs/libSM |
109 |
x11-libs/libX11 |
110 |
x11-libs/libXau |
111 |
x11-libs/libXcomposite |
112 |
x11-libs/libXcursor |
113 |
x11-libs/libXdamage |
114 |
x11-libs/libXdmcp |
115 |
x11-libs/libXext |
116 |
x11-libs/libXfixes |
117 |
x11-libs/libXi |
118 |
x11-libs/libXmu |
119 |
x11-libs/libXrandr |
120 |
x11-libs/libXrender |
121 |
x11-libs/libXt |
122 |
x11-libs/libxcb |
123 |
x11-libs/pango |
124 |
x11-libs/pixman |
125 |
x11-libs/xcb-util |
126 |
" |
127 |
|
128 |
opera_linguas() { |
129 |
# Remove unwanted LINGUAS: |
130 |
local LINGUA |
131 |
local LNGDIR="${D}usr/share/${PN}/locale" |
132 |
einfo "Keeping these locales: ${LINGUAS}." |
133 |
for LINGUA in ${MY_LINGUAS}; do |
134 |
if ! use linguas_${LINGUA/-/_}; then |
135 |
LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) |
136 |
rm -r "${LINGUA}" |
137 |
fi |
138 |
done |
139 |
} |
140 |
|
141 |
pkg_setup() { |
142 |
echo -e \ |
143 |
" ${GOOD}****************************************************${NORMAL}" |
144 |
elog "If you seek support, please file a bug report at" |
145 |
elog "https://bugs.gentoo.org and post the output of" |
146 |
elog " \`emerge --info =${CATEGORY}/${P}'" |
147 |
echo -e \ |
148 |
" ${GOOD}****************************************************${NORMAL}" |
149 |
} |
150 |
|
151 |
src_unpack() { |
152 |
unpack ${A} |
153 |
if [[ ! -d ${S} ]]; then |
154 |
cd "${WORKDIR}"/${PN}* || die "failed to enter work directory" |
155 |
S="$(pwd)" |
156 |
einfo "Setting WORKDIR to ${S}" |
157 |
fi |
158 |
} |
159 |
|
160 |
src_install() { |
161 |
# We install into usr instead of opt as Opera does not support the latter |
162 |
dodir /usr |
163 |
mv lib/ share/ "${D}"/usr/ || die "mv lib/ share/ failed" |
164 |
|
165 |
# Unzip the man pages before sedding |
166 |
gunzip "${D}"/usr/share/man/man1/* || die "gunzip failed" |
167 |
|
168 |
# Replace PREFIX and SUFFIX in various files |
169 |
sed -i \ |
170 |
-e "s:@@{PREFIX}:/usr:g" \ |
171 |
-e "s:@@{SUFFIX}::g" \ |
172 |
-e "s:@@{_SUFFIX}::g" \ |
173 |
-e "s:@@{USUFFIX}::g" \ |
174 |
"${D}"/usr/share/mime/packages/opera-widget.xml \ |
175 |
"${D}"/usr/share/man/man1/* \ |
176 |
"${D}"/usr/share/applications/opera-browser.desktop \ |
177 |
"${D}"/usr/share/applications/opera-widget-manager.desktop || die "sed failed" |
178 |
|
179 |
# Install startup script |
180 |
dobin ${PN}-widget-manager "${FILESDIR}"/opera || die "dobin failed" |
181 |
|
182 |
# Stop revdep-rebuild from checking opera binaries |
183 |
dodir /etc/revdep-rebuild |
184 |
echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" > "${D}"/etc/revdep-rebuild/90opera |
185 |
|
186 |
# Change libz.so.3 to libz.so.1 for gentoo/freebsd |
187 |
if use elibc_FreeBSD; then |
188 |
scanelf -qR -N libz.so.3 -F "#N" "${D}"${OPREFIX}/${PN}/ | \ |
189 |
while read i; do |
190 |
if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; |
191 |
then |
192 |
export SANITY_CHECK_LIBZ_FAILED=1 |
193 |
break |
194 |
fi |
195 |
sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i" |
196 |
done |
197 |
[[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1" |
198 |
fi |
199 |
|
200 |
[[ -z MY_LINGUAS ]] || opera_linguas |
201 |
} |
202 |
|
203 |
pkg_postinst() { |
204 |
elog "To change the UI language, choose [Tools] -> [Preferences], open the" |
205 |
elog "[General] tab, click on [Details...] then [Choose...] and point the" |
206 |
elog "file chooser at /usr/share/opera/locale/, then enter the" |
207 |
elog "directory for the language you want and [Open] the .lng file." |
208 |
|
209 |
if use elibc_FreeBSD; then |
210 |
elog |
211 |
elog "To improve shared memory usage please set:" |
212 |
elog "$ sysctl kern.ipc.shm_allow_removed=1" |
213 |
fi |
214 |
} |