Magellan Linux

Contents of /trunk/extras/opera/opera-10.11-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5454 - (show annotations) (download)
Thu Jun 24 20:44:43 2010 UTC (13 years, 10 months ago) by niro
File size: 3339 byte(s)
-ver bump to 10.11-r1; security update
1 # $Id$
2
3 PNAME="opera"
4 PVER="10.11"
5 PBUILD="r1"
6
7 PCATEGORIE="net-www"
8 STATE="unstable"
9
10 DESCRIPTION="Opera ${PVER} (qt4 shared)."
11 HOMEPAGE="http://www.opera.com/"
12
13 DEPEND=">= x11-libs/libICE-1
14 >= x11-libs/libSM-1
15 >= x11-libs/libX11-1
16 >= x11-libs/libXau-1
17 >= x11-libs/libXdmcp-1
18 >= x11-libs/libXext-1
19 >= x11-libs/libXft-2
20 >= x11-libs/libXmu-1
21 >= x11-libs/libXrender-0.9
22 >= x11-libs/libXt-1
23 >= media-libs/fontconfig-2.6
24 >= media-libs/libexif-0.6
25 >= x11-libs/lesstif-0.95
26 >= app-text/aspell-0.6
27 >= x11-libs/qt4-core-4.6
28 >= x11-libs/qt4-gui-4.6"
29
30 # .6 uses newer glibc and qt versions
31 BUILD="4791"
32
33 # ftp://opera.ftp.fu-berlin.de/linux
34 SRCFILE_x86="${PNAME}-${PVER}.gcc4-qt4.i386.tar.bz2"
35 SRCFILE_x86_64="${PNAME}-${PVER}.gcc4-qt4.x86_64.tar.bz2"
36 # decide between x86 and x86_64 arch
37 SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86})"
38 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}-${BUILD}.gcc4-qt4.${ARCH/i*86/i386}"
39
40 sminclude mtools
41
42 SRC_URI=(
43 ftp://opera.ftp.fu-berlin.de/linux/${PVER/./}/final/en/i386/${SRCFILE_x86}
44 ftp://opera.ftp.fu-berlin.de/linux/${PVER/./}/final/en/x86_64/${SRCFILE_x86_64}
45 mirror://${PNAME}/${SRCFILE_x86}
46 mirror://${PNAME}/${SRCFILE_x86_64}
47 )
48
49 src_prepare()
50 {
51 munpack ${SRCFILE} || die
52 cd ${SRCDIR}
53
54 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${BINDIR}/etc/\":g" \
55 -e "s:/usr/share/applnk:${BINDIR}/usr/share/applnk:g" \
56 -e "s:/usr/share/pixmaps:${BINDIR}/usr/share/pixmaps:g" \
57 -e "s:/usr/share/icons:${BINDIR}/usr/share/icons:g" \
58 -e "s:/etc/X11:${BINDIR}/etc/X11:g" \
59 -e "s:/usr/share/gnome:${BINDIR}/usr/share/gnome:g" \
60 -e "s:/opt/kde:${BINDIR}/usr/kde:g" \
61 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
62 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
63 -e 's:read str_answer:return 0:' \
64 install.sh || die
65 }
66
67 src_install()
68 {
69 cd ${SRCDIR}
70
71 # prepare installation directories for opera's installer script
72 minstalldir /etc || die
73
74 # run opera's native installer
75 ./install.sh --prefix=${BINDIR}/opt/opera || die
76
77 # java workaround
78 sed -i 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' \
79 ${BINDIR}/opt/opera/bin/opera || die
80
81 #rm ${BINDIR}/opt/opera/share/doc/opera/help || die
82 mlink /opt/opera/share/opera/help /opt/opera/share/doc/opera/help || die
83
84 # fix ${BINDIR}
85 sed -i "s:${BINDIR}::g" ${BINDIR}/opt/opera/bin/opera || die
86 mchmod 0755 /opt/opera/bin/opera || die
87
88 # fix ${BINDIR}
89 sed -i "s:${BINDIR}::g" ${BINDIR}/opt/opera/share/opera/java/opera.policy || die
90 mchmod 0644 /opt/opera/share/opera/java/opera.policy || die
91
92 # install the icons
93 minstallpixmap usr/share/pixmaps/opera.xpm || die
94 local i
95 for i in 16x16 22x22 32x32 48x48
96 do
97 minstalldir /usr/share/icons/hicolor/${i}/apps || die
98 minstallfile usr/share/icons/hicolor/${i}/apps/opera.png \
99 /usr/share/icons/hicolor/${i}/apps || die
100 done
101
102 # install a symlink /usr/bin/opera
103 minstalldir /usr/bin || die
104 mlink /opt/opera/bin/opera /usr/bin/opera || die
105
106 # fix spellcheck.so -> spellcheck.ini
107 echo "Spell Check Engine=/opt/opera/lib/opera/${PVER}/spellcheck.so" \
108 >> ${BINDIR}/opt/opera/share/opera/defaults/spellcheck.ini || die
109
110 # fix libnpp.so -> pluginpath.ini
111 sed -i "s:${BINDIR}/opt/opera/lib/opera/plugins:/opt/opera/lib/opera/plugins:g" \
112 ${BINDIR}/opt/opera/share/opera/defaults/pluginpath.ini || die
113 }

Properties

Name Value
svn:keywords Id