Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/opera: ChangeLog opera-9.50_alpha1581.ebuild
Date: Sat, 15 Sep 2007 04:24:58
Message-Id: E1IWP62-0003rN-Lq@stork.gentoo.org
1 jer 07/09/15 04:17:30
2
3 Modified: ChangeLog
4 Added: opera-9.50_alpha1581.ebuild
5 Log:
6 Version bump (still a snapshot).
7 (Portage version: 2.1.2.12)
8
9 Revision Changes Path
10 1.136 www-client/opera/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.136&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?rev=1.136&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/ChangeLog?r1=1.135&r2=1.136
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v
19 retrieving revision 1.135
20 retrieving revision 1.136
21 diff -u -r1.135 -r1.136
22 --- ChangeLog 7 Sep 2007 15:12:23 -0000 1.135
23 +++ ChangeLog 15 Sep 2007 04:17:30 -0000 1.136
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-client/opera
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.135 2007/09/07 15:12:23 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.136 2007/09/15 04:17:30 jer Exp $
29 +
30 +*opera-9.50_alpha1581 (15 Sep 2007)
31 +
32 + 15 Sep 2007; Jeroen Roovers <jer@g.o> +opera-9.50_alpha1581.ebuild:
33 + Version bump (still a snapshot).
34
35 07 Sep 2007; Jeroen Roovers <jer@g.o> opera-9.50_alpha1567.ebuild:
36 Remove temporary comment.
37
38
39
40 1.1 www-client/opera/opera-9.50_alpha1581.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_alpha1581.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/opera/opera-9.50_alpha1581.ebuild?rev=1.1&content-type=text/plain
44
45 Index: opera-9.50_alpha1581.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-9.50_alpha1581.ebuild,v 1.1 2007/09/15 04:17:30 jer Exp $
50
51 GCONF_DEBUG="no"
52
53 inherit eutils gnome2
54
55 DESCRIPTION="Opera web browser"
56 HOMEPAGE="http://www.opera.com/"
57
58 SLOT="0"
59 LICENSE="OPERA-9.0"
60 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
61
62 IUSE="qt-static spell gnome"
63 RESTRICT="strip mirror"
64
65 O_LNG=""
66 O_SUFF="1581"
67 O_VER="9.50-20070914"
68
69 # opera-9.50-20070903.1-static-qt.ppc-1567.tar.bz2
70
71 O_URI="http://snapshot.opera.com/unix/snapshot-1581/"
72 SRC_URI="
73 x86? ( qt-static? (
74 ${O_URI}intel-linux/${PN}-${O_VER}.9-static-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) )
75 x86? ( !qt-static? ( ${O_URI}intel-linux/${PN}-${O_VER}.6-shared-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) )
76 amd64? ( !qt-static? ( ${O_URI}x86_64-linux/${PN}-${O_VER}.2-shared-qt.x86_64${O_LNG}-${O_SUFF}.tar.bz2 ) )
77 ppc? ( ${O_URI}ppc-linux/${PN}-${O_VER}.6-shared-qt.ppc${O_LNG}-${O_SUFF}.tar.bz2 )
78 x86-fbsd? ( ${O_URI}/intel-freebsd/${PN}-${O_VER}.5-static-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 )"
79
80 # x86-fbsd? ( !qt-static? ( ${O_URI}intel-freebsd/${PN}-${O_VER}.4-shared-qt.i386.freebsd${O_LNG}-${O_SUFF}.tar.bz2 ) )
81 # amd64? ( qt-static? ( ${O_URI}x86_64-linux/${PN}-${O_VER}.2-static-qt.i386${O_LNG}-${O_SUFF}.tar.bz2 ) )
82 # sparc? ( ${O_URI}sparc-linux/${PN}-${O_VER}.1-static-qt.sparc${O_LNG}-${O_SUFF}.tar.bz2 )
83
84 DEPEND=">=sys-apps/sed-4"
85
86 RDEPEND="x11-libs/libXrandr
87 x11-libs/libXp
88 x11-libs/libXmu
89 x11-libs/libXi
90 x11-libs/libXft
91 x11-libs/libXext
92 x11-libs/libXcursor
93 x11-libs/libX11
94 x11-libs/libSM
95 x11-libs/libICE
96 >=media-libs/fontconfig-2.1.94-r1
97 !amd64? ( media-libs/libexif
98 spell? ( app-text/aspell )
99 x86? ( !qt-static? ( =x11-libs/qt-3* ) )
100 media-libs/jpeg )
101 x86-fbsd? ( =virtual/libstdc++-3*
102 !qt-static? ( =x11-libs/qt-3* ) )"
103
104 S=${WORKDIR}/${A/.tar.bz2/}
105
106 src_unpack() {
107 unpack ${A}
108 cd ${S}
109
110 epatch "${FILESDIR}/${PN}-9.00-install.patch"
111 epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch"
112
113 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
114 -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \
115 -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \
116 -e "s:/usr/share/icons:${D}/usr/share/icons:g" \
117 -e "s:/etc/X11:${D}/etc/X11:g" \
118 -e "s:/usr/share/gnome:${D}/usr/share/gnome:g" \
119 -e "s:/opt/gnome/share:${D}/opt/gnome/share:g" \
120 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
121 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
122 -e 's:read str_answer:return 0:' \
123 -e "s:/opt/kde:${D}/usr/kde:" \
124 -e "s:\(str_localdirplugin=\).*$:\1/opt/opera/lib/opera/plugins:" \
125 install.sh || die "sed failed"
126 }
127
128 src_compile() {
129 # This workaround is sadly needed because gnome2.eclass doesn't check
130 # whether a configure script or Makefile exists.
131 true
132 }
133
134 src_install() {
135 local res
136 # Prepare installation directories for Opera's installer script.
137 dodir /etc
138
139 # Opera's native installer.
140 ./install.sh --prefix="${D}"/opt/opera || die "install.sh failed"
141
142 einfo "It is safe to ignore warnings about failed checksums"
143 einfo "and about files that would be ignored ..."
144 einfo "Completing the installation where install.sh abandoned us ..."
145
146 # java workaround
147 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
148
149 dosed /opt/opera/bin/opera
150 dosed /opt/opera/share/opera/java/opera.policy
151
152 # Install the icons
153 insinto /usr/share/pixmaps
154 doins usr/share/pixmaps/opera.xpm
155 for res in 16x16 22x22 32x32 48x48 ; do
156 insinto /usr/share/icons/hicolor/${res}/apps
157 doins usr/share/icons/hicolor/${res}/apps/opera.png
158 done
159
160 # Install the menu entry
161 insinto /usr/share/applications
162 doins ${FILESDIR}/opera.desktop
163
164 # Install a symlink /usr/bin/opera
165 dodir /usr/bin
166 dosym /opt/opera/bin/opera /usr/bin/opera
167
168 # fix plugin path
169 echo "Plugin Path=/opt/opera/lib/opera/plugins" >> ${D}/etc/opera6rc
170
171 # enable spellcheck
172 if use spell; then
173 if use qt-static; then
174 DIR=$O_VER.1
175 else
176 use sparc && DIR=$O_VER.2 || DIR=$O_VER.5
177 fi
178 echo "Spell Check Engine=/opt/opera/lib/opera/${DIR}/spellcheck.so" >> ${D}/opt/opera/share/opera/ini/spellcheck.ini
179 fi
180
181 dodir /etc/revdep-rebuild
182 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > ${D}/etc/revdep-rebuild/90opera
183
184 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
185 if use x86-fbsd; then
186 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
187 while read i; do
188 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
189 then
190 export SANITY_CHECK_LIBZ_FAILED=1
191 break
192 fi
193 sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
194 done
195 [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
196 fi
197
198 # symlink to libflash-player.so:
199 dosym /opt/netscape/plugins/libflashplayer.so \
200 /opt/opera/lib/opera/plugins/libflashplayer.so
201
202 # Add the Opera man dir to MANPATH:
203 insinto /etc/env.d
204 echo 'MANPATH="/opt/opera/share/man"' >> ${D}/etc/env.d/90opera
205 }
206
207 pkg_postinst() {
208 use gnome && gnome2_pkg_postinst
209
210 elog "For localized language files take a look at:"
211 elog " http://www.opera.com/download/languagefiles/index.dml"
212 elog
213 elog "To use the spellchecker (USE=spell) for non-English simply do"
214 elog "$ emerge app-dicts/aspell-[your language]."
215
216 if use x86-fbsd; then
217 elog
218 elog "To improve shared memory usage please set:"
219 elog "$ sysctl kern.ipc.shm_allow_removed=1"
220 fi
221 }
222
223 pkg_postrm() {
224 use gnome && gnome2_pkg_postrm
225 }
226
227
228
229 --
230 gentoo-commits@g.o mailing list