Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5515 - (show annotations) (download)
Thu Jul 1 09:17:34 2010 UTC (13 years, 10 months ago) by niro
File size: 3457 byte(s)
-fixed SRCDIR
1 # $Id$
2
3 PNAME="opera"
4 PVER="10.60"
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="6386"
32
33 # ftp://opera.ftp.fu-berlin.de/linux
34 SRCFILE_x86="${PNAME}-${PVER}-${BUILD}.i386.linux.tar.bz2"
35 SRCFILE_x86_64="${PNAME}-${PVER}-${BUILD}.x86_64.linux.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}.linux"
39
40 sminclude mtools
41
42 SRC_URI=(
43 ftp://opera.ftp.fu-berlin.de/linux/${PVER/./}/${SRCFILE_x86}
44 ftp://opera.ftp.fu-berlin.de/linux/${PVER/./}/${SRCFILE_x86_64}
45 ftp://opera.ftp.fu-berlin.de/linux/${PVER/./}/final/en/i386/${SRCFILE_x86}
46 ftp://opera.ftp.fu-berlin.de/linux/${PVER/./}/final/en/x86_64/${SRCFILE_x86_64}
47 mirror://${PNAME}/${SRCFILE_x86}
48 mirror://${PNAME}/${SRCFILE_x86_64}
49 )
50
51 src_prepare()
52 {
53 munpack ${SRCFILE} || die
54 cd ${SRCDIR}
55
56 sed -i -e "s:config_dir=\"/etc\":config_dir=\"${BINDIR}/etc/\":g" \
57 -e "s:/usr/share/applnk:${BINDIR}/usr/share/applnk:g" \
58 -e "s:/usr/share/pixmaps:${BINDIR}/usr/share/pixmaps:g" \
59 -e "s:/usr/share/icons:${BINDIR}/usr/share/icons:g" \
60 -e "s:/etc/X11:${BINDIR}/etc/X11:g" \
61 -e "s:/usr/share/gnome:${BINDIR}/usr/share/gnome:g" \
62 -e "s:/opt/kde:${BINDIR}/usr/kde:g" \
63 -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
64 -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
65 -e 's:read str_answer:return 0:' \
66 install.sh || die
67 }
68
69 src_install()
70 {
71 cd ${SRCDIR}
72
73 # prepare installation directories for opera's installer script
74 minstalldir /etc || die
75
76 # run opera's native installer
77 ./install.sh --prefix=${BINDIR}/opt/opera || die
78
79 # java workaround
80 sed -i 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' \
81 ${BINDIR}/opt/opera/bin/opera || die
82
83 #rm ${BINDIR}/opt/opera/share/doc/opera/help || die
84 mlink /opt/opera/share/opera/help /opt/opera/share/doc/opera/help || die
85
86 # fix ${BINDIR}
87 sed -i "s:${BINDIR}::g" ${BINDIR}/opt/opera/bin/opera || die
88 mchmod 0755 /opt/opera/bin/opera || die
89
90 # fix ${BINDIR}
91 sed -i "s:${BINDIR}::g" ${BINDIR}/opt/opera/share/opera/java/opera.policy || die
92 mchmod 0644 /opt/opera/share/opera/java/opera.policy || die
93
94 # install the icons
95 minstallpixmap usr/share/pixmaps/opera.xpm || die
96 local i
97 for i in 16x16 22x22 32x32 48x48
98 do
99 minstalldir /usr/share/icons/hicolor/${i}/apps || die
100 minstallfile usr/share/icons/hicolor/${i}/apps/opera.png \
101 /usr/share/icons/hicolor/${i}/apps || die
102 done
103
104 # install a symlink /usr/bin/opera
105 minstalldir /usr/bin || die
106 mlink /opt/opera/bin/opera /usr/bin/opera || die
107
108 # fix spellcheck.so -> spellcheck.ini
109 echo "Spell Check Engine=/opt/opera/lib/opera/${PVER}/spellcheck.so" \
110 >> ${BINDIR}/opt/opera/share/opera/defaults/spellcheck.ini || die
111
112 # fix libnpp.so -> pluginpath.ini
113 sed -i "s:${BINDIR}/opt/opera/lib/opera/plugins:/opt/opera/lib/opera/plugins:g" \
114 ${BINDIR}/opt/opera/share/opera/defaults/pluginpath.ini || die
115 }

Properties

Name Value
svn:keywords Id