/[gentoo-x86]/www-client/opera/opera-9.50_alpha1567.ebuild
Gentoo

Diff of /www-client/opera/opera-9.50_alpha1567.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/www-client/opera/Attic/opera-9.50_alpha1567.ebuild,v 1.1 2007/09/05 03:40:26 jer Exp $ 3# $Header: /var/cvsroot/gentoo-x86/www-client/opera/Attic/opera-9.50_alpha1567.ebuild,v 1.2 2007/09/06 16:15:41 jer Exp $
4 4
5GCONF_DEBUG="no" 5GCONF_DEBUG="no"
6 6
7inherit eutils gnome2 7inherit eutils gnome2
8 8
11 11
12SLOT="0" 12SLOT="0"
13LICENSE="OPERA-9.0" 13LICENSE="OPERA-9.0"
14KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" 14KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
15 15
16IUSE="qt-static spell gnome" 16IUSE="qt-static spell gnome elibc_FreeBSD"
17RESTRICT="strip mirror" 17RESTRICT="strip mirror"
18 18
19O_LNG="" 19O_LNG=""
20O_SUFF="1567" 20O_SUFF="1567"
21O_VER="9.50-20070903" 21O_VER="9.50-20070903"
46 x11-libs/libXcursor 46 x11-libs/libXcursor
47 x11-libs/libX11 47 x11-libs/libX11
48 x11-libs/libSM 48 x11-libs/libSM
49 x11-libs/libICE 49 x11-libs/libICE
50 >=media-libs/fontconfig-2.1.94-r1 50 >=media-libs/fontconfig-2.1.94-r1
51 !qt-static? ( =x11-libs/qt-3* )
51 !amd64? ( media-libs/libexif 52 media-libs/libexif
52 spell? ( app-text/aspell ) 53 spell? ( app-text/aspell )
53 x86? ( !qt-static? ( =x11-libs/qt-3* ) )
54 media-libs/jpeg ) 54 media-libs/jpeg
55 x86-fbsd? ( =virtual/libstdc++-3* 55 x86-fbsd? ( =virtual/libstdc++-3* )"
56 !qt-static? ( =x11-libs/qt-3* ) )"
57 56
58S=${WORKDIR}/${A/.tar.bz2/} 57S=${WORKDIR}/${A/.tar.bz2/}
59 58
60src_unpack() { 59src_unpack() {
61 unpack ${A} 60 unpack ${A}
62 cd ${S} 61 cd ${S}
63 62
64 epatch "${FILESDIR}/${PN}-9.00-install.patch" 63 epatch "${FILESDIR}/${PN}-9.00-install.patch"
65 epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch" 64 use elibc_FreeBSD || epatch "${FILESDIR}/${PN}-9.50-pluginpath.patch"
66 65
67 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \ 66 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${D}/etc/\":g" \
68 -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \ 67 -e "s:/usr/share/applnk:${D}/usr/share/applnk:g" \
69 -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \ 68 -e "s:/usr/share/pixmaps:${D}/usr/share/pixmaps:g" \
70 -e "s:/usr/share/icons:${D}/usr/share/icons:g" \ 69 -e "s:/usr/share/icons:${D}/usr/share/icons:g" \
134 133
135 dodir /etc/revdep-rebuild 134 dodir /etc/revdep-rebuild
136 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > ${D}/etc/revdep-rebuild/90opera 135 echo 'SEARCH_DIRS_MASK="/opt/opera/lib/opera/plugins"' > ${D}/etc/revdep-rebuild/90opera
137 136
138 # Change libz.so.3 to libz.so.1 for gentoo/freebsd 137 # Change libz.so.3 to libz.so.1 for gentoo/freebsd
139 if use x86-fbsd; then 138 if use elibc_FreeBSD; then
140 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \ 139 scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${PN}/ | \
141 while read i; do 140 while read i; do
142 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; 141 if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]];
143 then 142 then
144 export SANITY_CHECK_LIBZ_FAILED=1 143 export SANITY_CHECK_LIBZ_FAILED=1
165 elog " http://www.opera.com/download/languagefiles/index.dml" 164 elog " http://www.opera.com/download/languagefiles/index.dml"
166 elog 165 elog
167 elog "To use the spellchecker (USE=spell) for non-English simply do" 166 elog "To use the spellchecker (USE=spell) for non-English simply do"
168 elog "$ emerge app-dicts/aspell-[your language]." 167 elog "$ emerge app-dicts/aspell-[your language]."
169 168
170 if use x86-fbsd; then 169 if use elibc_FreeBSD; then
171 elog 170 elog
172 elog "To improve shared memory usage please set:" 171 elog "To improve shared memory usage please set:"
173 elog "$ sysctl kern.ipc.shm_allow_removed=1" 172 elog "$ sysctl kern.ipc.shm_allow_removed=1"
174 fi 173 fi
175} 174}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20