version up : libtool 2.4.3.
[slapos.git] / component / firefox / buildout.cfg
1 [buildout]
2 extends =
3   ../alsa/buildout.cfg
4   ../dash/buildout.cfg
5   ../dbus/buildout.cfg
6   ../fontconfig/buildout.cfg
7   ../gtk-2/buildout.cfg
8   ../libffi/buildout.cfg
9   ../libpng/buildout.cfg
10   ../p11-kit/buildout.cfg
11   ../xorg/buildout.cfg
12
13 parts =
14   firefox
15
16 # XXX : Firefox binary tries to find libgnomeui-2.so.0 and it will
17 # fail to run if exists.
18
19 [firefox]
20 recipe = slapos.recipe.build
21 slapos_promise =
22   file:firefox
23   file:firefox-bin
24
25 depends =
26   ${liberation-fonts:location}
27   ${ipaex-fonts:location}
28
29 version = 33.1
30
31 # MD5SUMs are available at :
32 # https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${:version}/MD5SUMS
33 x86 = http://download-installer.cdn.mozilla.net/pub/firefox/releases/${:version}/linux-i686/en-US/firefox-${:version}.tar.bz2 1106b9c56da48a3e5c5ef965fea70078
34 x86-64 = http://download-installer.cdn.mozilla.net/pub/firefox/releases/${:version}/linux-x86_64/en-US/firefox-${:version}.tar.bz2 4201d94f32b6b778456e5681cdcacd76
35
36 script =
37   if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
38   extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum')))
39   workdir = guessworkdir(extract_dir)
40   self.copyTree(workdir, "%(location)s")
41   wrapper_location = os.path.join("%(location)s", "firefox-slapos")
42   wrapper = open(wrapper_location, 'w')
43   wrapper.write("""#!${dash:location}/bin/dash
44   cd %(location)s
45   export LD_LIBRARY_PATH=%(location)s:${alsa:location}/lib:${atk:location}/lib:${bzip2:location}/lib:${cairo:location}/lib:${dbus:location}/lib:${dbus-glib:location}/lib:${fontconfig:location}/lib:${freetype:location}/lib:${gdk-pixbuf:location}/lib:${gettext:location}/lib:${glib:location}/lib:${gtk-2:location}/lib:${harfbuzz:location}/lib:${libICE:location}/lib:${libSM:location}/lib:${libX11:location}/lib:${libXau:location}/lib:${libXcomposite:location}/lib:${libXcursor:location}/lib:${libXext:location}/lib:${libXrender:location}/lib:${libXt:location}/lib:${libffi:location}/lib:${libpng:location}/lib:${libtool:location}/lib:${libuuid:location}/lib:${libxcb:location}/lib:${libxml2:location}/lib:${p11-kit:location}/lib:${pango:location}/lib:${pixman:location}/lib:${xdamage:location}/lib:${xfixes:location}/lib:${zlib:location}/lib
46   export PATH=${fontconfig:location}/bin:$PATH
47   exec %(location)s/firefox $*""")
48   wrapper.close()
49   os.chmod(wrapper_location, 0755)