Magellan Linux

Annotation of /trunk/extras/opera/opera-9.51-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 3409 byte(s)
import repo
1 niro 2 # $Header: /magellan-cvs/smage/opera/opera-9.51-r2.smage2,v 1.1 2008/08/10 09:38:15 niro Exp $
2    
3     PNAME="opera"
4     PVER="9.51"
5     PBUILD="r2"
6    
7     PCATEGORIE="net-www"
8     STATE="unstable"
9    
10     DESCRIPTION="Opera ${PVER} (qt 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/libXp-1
22     >= x11-libs/libXrender-0.9
23     >= x11-libs/libXt-1
24     >= media-libs/fontconfig-2.1.94
25     >= media-libs/libexif-0.5.12
26     >= x11-libs/lesstif-0.93.94
27     >= app-text/aspell-0.5
28     >= x11-libs/qt-3"
29    
30     # .6 uses newer glibc and qt versions
31     BUILD="2061"
32    
33     # ftp://opera.ftp.fu-berlin.de/linux
34     SRCFILE_x86="${PNAME}-${PVER}.gcc4-shared-qt3.i386.tar.bz2"
35     SRCFILE_x86_64="${PNAME}-${PVER}.gcc4-shared-qt3.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-shared-qt3.${ARCH/i*86/i386}"
39    
40     sminclude mtools
41    
42     SRC_URI=(
43     ftp://opera.ftp.fu-berlin.de/linux/${PVER/./}/final/en/i386/shared/${SRCFILE_x86}
44     ftp://opera.ftp.fu-berlin.de/linux/${PVER/./}/final/en/x86_64/${SRCFILE_x86_64}
45     mirror://${PNAME}/${SRCFILE}
46     )
47    
48     src_prepare()
49     {
50     munpack ${SRCFILE} || die
51     cd ${SRCDIR}
52    
53     sed -i -e "s:config_dir=\"/etc\":config_dir=\"${BINDIR}/etc/\":g" \
54     -e "s:/usr/share/applnk:${BINDIR}/usr/share/applnk:g" \
55     -e "s:/usr/share/pixmaps:${BINDIR}/usr/share/pixmaps:g" \
56     -e "s:/usr/share/icons:${BINDIR}/usr/share/icons:g" \
57     -e "s:/etc/X11:${BINDIR}/etc/X11:g" \
58     -e "s:/usr/share/gnome:${BINDIR}/usr/share/gnome:g" \
59     -e "s:/opt/kde:${BINDIR}/usr/kde:g" \
60     -e 's:#\(OPERA_FORCE_JAVA_ENABLED=\):\1:' \
61     -e 's:#\(export LD_PRELOAD OPERA_FORCE_JAVA_ENABLED\):\1:' \
62     -e 's:read str_answer:return 0:' \
63     install.sh || die
64     }
65    
66     src_install()
67     {
68     cd ${SRCDIR}
69    
70     # prepare installation directories for opera's installer script
71     minstalldir /etc || die
72    
73     # run opera's native installer
74     ./install.sh --prefix=${BINDIR}/opt/opera || die
75    
76     # java workaround
77     sed -i 's:LD_PRELOAD="${OPERA_JAVA_DIR}/libawt.so":LD_PRELOAD="$LD_PRELOAD"\:"${OPERA_JAVA_DIR}/libawt.so":' \
78     ${BINDIR}/opt/opera/bin/opera || die
79    
80     #rm ${BINDIR}/opt/opera/share/doc/opera/help || die
81     mlink /opt/opera/share/opera/help /opt/opera/share/doc/opera/help || die
82    
83     # fix ${BINDIR}
84     sed -i "s:${BINDIR}::g" ${BINDIR}/opt/opera/bin/opera || die
85     mchmod 0755 /opt/opera/bin/opera || die
86    
87     # fix ${BINDIR}
88     sed -i "s:${BINDIR}::g" ${BINDIR}/opt/opera/share/opera/java/opera.policy || die
89     mchmod 0644 /opt/opera/share/opera/java/opera.policy || die
90    
91     # install the icons
92     minstallpixmap usr/share/pixmaps/opera.xpm || die
93     local i
94     for i in 16x16 22x22 32x32 48x48
95     do
96     minstalldir /usr/share/icons/hicolor/${i}/apps || die
97     minstallfile usr/share/icons/hicolor/${i}/apps/opera.png \
98     /usr/share/icons/hicolor/${i}/apps || die
99     done
100    
101     # install a symlink /usr/bin/opera
102     minstalldir /usr/bin || die
103     mlink /opt/opera/bin/opera /usr/bin/opera || die
104    
105     # fix spellcheck.so -> spellcheck.ini
106     echo "Spell Check Engine=/opt/opera/lib/opera/${PVER}-${SUBVER}/spellcheck.so" \
107     >> ${BINDIR}/opt/opera/share/opera/ini/spellcheck.ini || die
108    
109     # fix libnpp.so -> pluginpath.ini
110     sed -i "s:${BINDIR}/opt/opera/lib/opera/plugins:/opt/opera/lib/opera/plugins:g" \
111     ${BINDIR}/opt/opera/share/opera/ini/pluginpath.ini || die
112     }

Properties

Name Value
svn:keywords Id